![]() |
GM6000 Digital Heater Controller Branch: main
SDX-1330
|
This abstract class defines a interface for a stream line writer. More...
This abstract class defines a interface for a stream line writer.
A line writer allows the client to write lines to a stream. The interface also handles the output of the 'new line' character(s).
#include <LineWriterApi.h>
Public Member Functions | |
virtual bool | print (const char *srcstring)=0 |
Outputs the specified string to the stream. | |
virtual bool | println (const char *srcstring)=0 |
Outputs the specified string to the stream and then appends the newline character(s) to the stream. | |
virtual bool | print (const char *srcstring, int numbytes)=0 |
Outputs the first 'numbytes' bytes of the specified string to the stream. | |
virtual bool | println (const char *srcstring, int numbytes)=0 |
Outputs the first 'numbytes' bytes of the specified string to the stream and then appends the newline character(s) to the stream. | |
virtual bool | println ()=0 |
Outputs the newline character(s) to the stream. | |
virtual bool | print (Cpl::Text::String &formatBuffer, const char *format,...)=0 |
Formatted output to the stream. | |
virtual bool | println (Cpl::Text::String &formatBuffer, const char *format,...)=0 |
Same as above, except newline character(s) are appended to the end of the formatted output. | |
virtual bool | vprint (Cpl::Text::String &formatBuffer, const char *format, va_list ap)=0 |
Same as print( String& formatBuffer, const char* format,...), except that it is called with a va_list instead of a variable number of arguments. | |
virtual bool | vprintln (Cpl::Text::String &formatBuffer, const char *format, va_list ap)=0 |
Same as println( String& formatBuffer, const char* format,...), except that it is called with a va_list instead of a variable number of arguments. | |
virtual void | flush ()=0 |
Forces all buffered data (if any) to be written to the stream media. | |
virtual void | close ()=0 |
Closes the writer and the underlying output stream. | |
virtual | ~LineWriterApi () |
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. | |
Additional Inherited Members | |
![]() | |
static void | remove_ (Item *itemPtr) noexcept |
Helper method to do the proper 'clean-up' for the multiple-containers-error-trap when removing an item from a container. | |
![]() | |
void * | m_nextPtr_ |
The link field. | |
void * | m_inListPtr_ |
Debug field. | |
![]() | |
Item () | |
Constructor. | |
Item (const char *) | |
Constructor used ONLY with the child class MapItem: -->special constructor to allow a Map to be statically allocated. | |
|
inlinevirtual |
Lets the make the destructor virtual.
|
pure virtual |
Closes the writer and the underlying output stream.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Forces all buffered data (if any) to be written to the stream media.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Outputs the specified string to the stream.
No newline character(s) are written. Returns true if successful, or false if End-of-Stream was encountered.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Outputs the first 'numbytes' bytes of the specified string to the stream.
No newline character(s) are written. Returns true if successful, or false if End-of-Stream was encountered.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Formatted output to the stream.
The formatting syntax/semantics is the same as printf(). The number of characters actually outputted to stream is limited by the size of 'formatBuffer'. No newline character(s) are written to the stream. Returns true if successful, or false if End-of-Stream was encountered.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Outputs the newline character(s) to the stream.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Outputs the specified string to the stream and then appends the newline character(s) to the stream.
Returns true if successful, or false if End-of-Stream was encountered.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Outputs the first 'numbytes' bytes of the specified string to the stream and then appends the newline character(s) to the stream.
Returns true if successful, or false if End-of-Stream was encountered.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Same as above, except newline character(s) are appended to the end of the formatted output.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Same as print( String& formatBuffer, const char* format,...), except that it is called with a va_list instead of a variable number of arguments.
Implemented in Cpl::Io::LineWriter.
|
pure virtual |
Same as println( String& formatBuffer, const char* format,...), except that it is called with a va_list instead of a variable number of arguments.
Implemented in Cpl::Io::LineWriter.