This class represents the stream to write out.
More...
This class represents the stream to write out.
◆ IOStreamBase()
The class constructor with the formatter.
- Parameters
-
formatter | [in] The formatter to use. |
◆ ~IOStreamBase()
IOStreamBase::~IOStreamBase |
( |
| ) |
|
|
virtual |
The class destructor, virtual.
◆ close()
bool IOStreamBase::close |
( |
| ) |
|
|
virtual |
Will close the stream.
- Returns
- true, if the stream was closed successfully, false if not.
◆ isOpen()
bool IOStreamBase::isOpen |
( |
| ) |
const |
|
virtual |
Returns true, if the stream is open.
- Returns
- true, if the stream is open, false if not.
◆ open()
bool IOStreamBase::open |
( |
const std::string & |
name | ) |
|
|
virtual |
Will open the stream.
- Parameters
-
name | [in] The name for the stream. |
- Returns
- true, if the stream was opened successfully, false if not.
◆ read()
size_t IOStreamBase::read |
( |
size_t |
sizeToRead, |
|
|
std::string & |
statement |
|
) |
| |
|
virtual |
Will read a string from the stream.
- Parameters
-
sizeToRead | [in] The size to read in bytes. |
statement | [out] The read statements. |
- Returns
- The bytes read from the stream.
◆ write()
size_t IOStreamBase::write |
( |
const std::string & |
statement | ) |
|
|
virtual |
Will write a string into the stream.
- Parameters
-
statement | [in] The string to write. |
- Returns
- The bytes written into the stream.
The documentation for this class was generated from the following files: