#include <nulloutputstream.h>
Public Member Functions | |
NullOutputStream () | |
Constructor. | |
virtual | ~NullOutputStream () |
void | open () |
void | close () |
void | write (const char *str) |
void | writeln (const char *str) |
bool | isWriteable () |
void | flush () |
Represents a null (none) output stream.
Definition at line 48 of file nulloutputstream.h.
NullOutputStream::NullOutputStream | ( | ) |
NullOutputStream::~NullOutputStream | ( | ) | [virtual] |
void NullOutputStream::close | ( | ) | [virtual] |
Closes the corresponding output stream.
Closes the corresponding output stream.
void |
Implements OutputStream.
Definition at line 49 of file nulloutputstream.cpp.
Referenced by ~NullOutputStream().
void NullOutputStream::flush | ( | ) | [virtual] |
Flushes the corresponding output stream.
Flushes the corresponding output stream.
void |
Implements OutputStream.
Definition at line 65 of file nulloutputstream.cpp.
bool NullOutputStream::isWriteable | ( | ) | [virtual] |
Returns/Verifies if the corresponding output stream is writeable.
Returns/Verifies if the corresponding output stream is writeable.
bool | true if the corresponding output stream is writeable, false otherwise. |
Implements OutputStream.
Definition at line 61 of file nulloutputstream.cpp.
void NullOutputStream::open | ( | ) | [virtual] |
Opens the corresponding output stream.
Opens the corresponding output stream.
void |
IOStreamException | If an error occured (e.g. if it is not possible to open a file) |
Implements OutputStream.
Definition at line 45 of file nulloutputstream.cpp.
void NullOutputStream::write | ( | const char * | str | ) | [virtual] |
Writes a string to the corresponding output stream.
Writes a string to the corresponding output stream.
[in] | str | Pointer to a char object (string to be written). |
void |
Implements OutputStream.
Definition at line 53 of file nulloutputstream.cpp.
void NullOutputStream::writeln | ( | const char * | str | ) | [virtual] |
Writes a string with an ending newline character to the corresponding output stream.
Writes a string with an ending newline character to the corresponding output stream.
[in] | str | Pointer to a char object (string to be written). |
void |
Implements OutputStream.
Definition at line 57 of file nulloutputstream.cpp.