A charraystream provides an input stream on an existing array of characters (which is not copied). More...
#include <charraystream.h>

Public Member Functions | |
| charraystream (const char *begin, size_t size) | |
| Constructor. | |
| std::streambuf * | rdbuf () const |
| We refuse to divulge the streambuf. | |
Private Attributes | |
| charraystreambuf | buf |
A charraystream provides an input stream on an existing array of characters (which is not copied).
Example usage:
const char* p = "abc def 123"; Dv::Util::charraystream is(p, strlen(p)); std::string s; while (is >> s) ;
Definition at line 38 of file charraystream.h.
| Dv::Util::charraystream::charraystream | ( | const char * | begin, | |
| size_t | size | |||
| ) | [inline] |
Constructor.
| begin | pointer to the first character in the array | |
| size | of the array |
Definition at line 44 of file charraystream.h.
| std::streambuf* Dv::Util::charraystream::rdbuf | ( | ) | const [inline] |
We refuse to divulge the streambuf.
Note that this definition will also block rdbuf(streambuf*).
Definition at line 50 of file charraystream.h.
References buf.
Referenced by charraystream().
charraystreambuf Dv::Util::charraystream::buf [private] |
Definition at line 52 of file charraystream.h.
Referenced by charraystream(), and rdbuf().
| dvutil-1.0.10 | [ 5 December, 2009] |