![]() |
GM6000 Digital Heater Controller Build: 20 (Branch = develop)
SDX-1330
|
This concrete class represents the C-library 'stderr' stream. More...
This concrete class represents the C-library 'stderr' stream.
NOTE: Many instances of this class may be created - even though there is only ONE stderr. This is OK because all instance reference the systems/platform 'stderr'
#include <StdErr.h>
Public Member Functions | |
| StdErr () | |
| Constructor. | |
| void | close () |
| Overriding inherited behavior so as to NOT close the actual native stream. | |
Public Member Functions inherited from Cpl::Io::Stdio::Output_ | |
| Output_ (int fd) | |
| Constructor. | |
| Output_ (void *handle) | |
| Constructor. | |
| Output_ (Cpl::Io::Descriptor streamfd) | |
| Constructor. | |
| Output_ (void) | |
| Constructor. | |
| ~Output_ (void) | |
| Destructor. | |
| void | activate (int fd) |
| Activates and/or resets the underlying 'fd' for the stream. | |
| void | activate (void *handle) |
| Activates and/or resets the underlying 'handle' for the stream. | |
| void | activate (Cpl::Io::Descriptor streamfd) |
| Activates and/or resets the underlying 'streamfd' for the stream. | |
| bool | isOpened () |
| This method returns true if the file was successfully open and/or is still opened (i.e. | |
| 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. | |
Public Member Functions inherited from Cpl::Io::Output | |
| 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. | |
Public Member Functions inherited from Cpl::Io::Close | |
| virtual | ~Close () |
| Lets the make the destructor virtual. | |
Public Member Functions inherited from Cpl::Container::Item | |
| 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. | |
Public Member Functions inherited from Cpl::Io::IsEos | |
| virtual | ~IsEos () |
| Lets the make the destructor virtual. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Cpl::Container::Item | |
| 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. | |
Public Attributes inherited from Cpl::Container::Item | |
| void * | m_nextPtr_ |
| The link field. | |
| void * | m_inListPtr_ |
| Debug field. | |
Protected Member Functions inherited from Cpl::Container::Item | |
| Item () | |
| Constructor. | |
| Item (const char *) | |
| Constructor used ONLY with the child class MapItem: -->special constructor to allow a Map to be statically allocated. | |
Protected Attributes inherited from Cpl::Io::Stdio::Output_ | |
| Cpl::Io::Descriptor | m_outFd |
| Stream Handle. | |
| bool | m_outEos |
| Cache end-of-stream status. | |
| Cpl::Io::Stdio::StdErr::StdErr | ( | ) |
Constructor.
|
virtual |
Overriding inherited behavior so as to NOT close the actual native stream.
In general closing stdin/stdout/stderr is bad thing.
Reimplemented from Cpl::Io::Stdio::Output_.