class InputStream
Inherited by: MemoryInputStream and StdStreamInputStream.
Required header: <Eclog/InputStream.h>
The InputStream abstract class represents an input stream of characters.
Name | Description |
---|---|
state | Checks whether the stream is in good state. |
eof | Checks whether EOF is reached. |
read | Extracts characters from the stream. |
virtual bool state() const;
Checks whether the stream is in good state; the good state does not affect by EOF.
bool
true if the stream is good, false otherwise.
virtual bool eof() const;
Checks whether EOF is reached.
bool
true if EOF is reached, false otherwise.
virtual size_t read(char* buffer, size_t size);
Extracts characters from the stream and stores them into the buffer.
char*
buffer The buffer to store the characters to.
size_t
size Maximum number of characters to read.
size_t
The number of characters actually extracted.