Parent class for text stream functionality. More...
#include <base_text_stream.hpp>
Public Member Functions | |
BaseTextStream () | |
Device & | device () |
Provides access to the underlying output device. More... | |
const ecl::Error & | errorStatus () const |
Enumeration indicating the exit status of the last read operation. More... | |
bool | fail () const |
Denotes the status of the last device operation. More... | |
virtual | ~BaseTextStream () |
Protected Attributes | |
ecl::Error | error |
Device | io_device |
Parent class for text stream functionality.
This brings the common io functionality together for both input and output text streams, namely the device and its handlers.
Device | : the underlying device type. |
Definition at line 43 of file base_text_stream.hpp.
|
inline |
Definition at line 45 of file base_text_stream.hpp.
|
inlinevirtual |
Definition at line 46 of file base_text_stream.hpp.
Device & ecl::interfaces::BaseTextStream< Device >::device | ( | ) |
Provides access to the underlying output device.
Provides access to the underlying output device.
Definition at line 66 of file base_text_stream.hpp.
const ecl::Error & ecl::interfaces::BaseTextStream< Device >::errorStatus | ( | ) | const |
Enumeration indicating the exit status of the last read operation.
This returns an enumeration that indicates the exit status of the last read operation.
Definition at line 94 of file base_text_stream.hpp.
bool ecl::interfaces::BaseTextStream< Device >::fail | ( | ) | const |
Denotes the status of the last device operation.
This returns true if the last (read/write) operation failed. This can be due to the input being incorrect (e.g. letters in a value when reading a digit), or because it tried to read past the end of the stream, or the stream is in a bad state. return bool : true if the last stream operation failed, false otherwise.
Definition at line 78 of file base_text_stream.hpp.
|
protected |
Definition at line 52 of file base_text_stream.hpp.
|
protected |
Definition at line 53 of file base_text_stream.hpp.