This is a wrapper for already-opened std::istream input streams.
|ChStreamIstreamWrapper (std::istream *mfile)|
|Creates a wrapper for an already existing, already opened, istream, given the pointer to that istream. More...|
|Deleting this stream wrapper does not delete nor closes the wrapped istream! |
|virtual void||Read (char *data, size_t n)|
|Reads from stream, up to n chars. More...|
|virtual bool||End_of_stream ()|
|Returns true if end of stream reached. |
|std::istream *||GetIstream ()|
|Reference to istream encapsulated here. |
Constructor & Destructor Documentation
Creates a wrapper for an already existing, already opened, istream, given the pointer to that istream.
Member Function Documentation
Reads from stream, up to n chars.
If does not succeed, throws exception.