This concrete class implements a NULL InputOutputApi File that all of its input operations return 'End-of-File' (i.e.
return false) and all output is dropped in the proverbial bit-bucket and goes no where! Note: The write() methods always return true (i.e. no error).
|
| | Null () |
| | Constructor.
|
| |
| | ~Null () |
| | Destructor.
|
| |
| bool | read (void *buffer, int numBytes, int &bytesRead) |
| | See Cpl::Io::Input.
|
| |
| bool | available () |
| | See Cpl::Io::Input.
|
| |
| bool | write (const void *buffer, int maxBytes, int &bytesWritten) |
| | See Cpl::Io::Output.
|
| |
| void | flush () |
| | See Cpl::Io::Output.
|
| |
| bool | isEos () |
| | See Cpl::Io::IsEos (is equivalent to isEof())
|
| |
| void | close () |
| | See Cpl::Io::Close. Note: Once closed() has been called, all of the write() and ObjecApi methods will return false.
|
| |
| bool | isEof () |
| | See Cpl::Io::File::ObjectApi.
|
| |
| bool | length (unsigned long &len) |
| | See Cpl::Io::File::ObjectApi.
|
| |
| bool | currentPos (unsigned long &curPos) |
| | See Cpl::Io::File::ObjectApi.
|
| |
| bool | setRelativePos (long deltaOffset) |
| | See Cpl::Io::File::ObjectApi.
|
| |
| bool | setAbsolutePos (unsigned long newoffset) |
| | See Cpl::Io::File::ObjectApi.
|
| |
| bool | setToEof () |
| | See Cpl::Io::File::ObjectApi.
|
| |
| virtual Cpl::Io::InputOutput & | getStream ()=0 |
| | Returns a 'stream proxy' for the File instance that is of type: Cpl::Io::InputOutput.
|
| |
| virtual bool | read (char &c) |
| | Reads a single byte from the stream.
|
| |
| virtual bool | read (Cpl::Text::String &destString) |
| | Reads N bytes into the String's internal buffer.
|
| |
| virtual | ~Input () |
| | Lets the make the destructor virtual.
|
| |
| virtual | ~Close () |
| | Lets the make the destructor virtual.
|
| |
| bool | insert_ (void *newContainerPtr) |
| | Helper method to trap when inserting an item in multiple containers.
|
| |
| bool | isInContainer_ (const void *containerPtr) const noexcept |
| | Returns 'true' if the instance is in the specified container.
|
| |
| virtual | ~IsEos () |
| | Lets the make the destructor virtual.
|
| |
| virtual | ~ObjectApi () |
| | Virtual destructor.
|
| |
| virtual bool | write (char c) |
| | Writes a single byte to the stream.
|
| |
| virtual bool | write (const char *string) |
| | Writes a string to the stream.
|
| |
| virtual bool | write (const Cpl::Text::String &string) |
| | Writes a string to the stream.
|
| |
| virtual bool | write (Cpl::Text::String &formatBuffer, const char *format,...) |
| | Formatted write to the stream.
|
| |
| virtual bool | vwrite (Cpl::Text::String &formatBuffer, const char *format, va_list ap) |
| | Same as write( String& formatBuffer, const char* format,...), except that it is called with a va_list instead of a variable number of arguments.
|
| |
| virtual bool | write (const void *buffer, int numBytes) |
| | Writes the content of the buffer to the stream.
|
| |
| virtual | ~Output () |
| | Lets the make the destructor virtual.
|
| |