|
| void | setStream (std::ostream *s) |
| | Set the stream to use as output.
|
| |
| void | setStream (std::shared_ptr< std::ostream > s) |
| | Set the stream to use as output.
|
| |
| void | setStream (std::string name) |
| | Set the stream to use as output, as string.
|
| |
| void | setUseAnsiColor (bool on) |
| | Activate or deactivate the use of ANSI color escape characters to emphasize error and warning messages.
|
| |
| void | output (Message msg) |
| | Outputs the provided message to the implementation specific channel.
|
| |
| void | setLevel (int l) |
| | Set the level of messages to output.
|
| |
| virtual void | initialize () override |
| | Called to initialize the MessageSink.
|
| |
| void | setShowTime (bool on) |
| | Activate or deactivate the output of the time of each message.
|
| |
| | Object () |
| | Initializes internal data.
|
| |
| virtual | ~Object () |
| | Cleaning up internal data.
|
| |
| virtual void | accept (Visitor *visitor) |
| | Calls the visitors apply method with this as argument.
|
| |
| virtual void | traverse (Visitor *visitor) |
| | Calls the child Object's accept method, if such exist.
|
| |
| virtual std::string | getDefaultKey () |
| | Returns the default key for the Object when automatically instantiated in a Configuration, i.e.
|
| |
| bool | isInitialized () |
| | Returns true if the Object is initialized.
|
| |
|
| void | outputMetadata (std::ostream &out, Message msg) |
| | Write metadata from the specified message to the specified stream.
|
| |
◆ output()
| void gramods::gmCore::OStreamMessageSink::output |
( |
Message |
msg | ) |
|
|
virtual |
Outputs the provided message to the implementation specific channel.
This method may be called concurrently from multiple thread and must therefore be thread safe.
Implements gramods::gmCore::MessageSink.
◆ setLevel()
Set the level of messages to output.
This is an integer typically following the level of importance in ConsoleLevel, inclusive.
XML-attribute: level
◆ setStream() [1/3]
| void gramods::gmCore::OStreamMessageSink::setStream |
( |
std::ostream * |
s | ) |
|
|
inline |
Set the stream to use as output.
Use this if you do not want smart memory management, for example if your output stream is std::cout.
◆ setStream() [2/3]
| void gramods::gmCore::OStreamMessageSink::setStream |
( |
std::shared_ptr< std::ostream > |
s | ) |
|
|
inline |
Set the stream to use as output.
Use this if you do want smart memory management, for example if the output stream is shared between objects and is not memory managed by the operating system.
◆ setStream() [3/3]
| void gramods::gmCore::OStreamMessageSink::setStream |
( |
std::string |
name | ) |
|
Set the stream to use as output, as string.
Valid values are "out" and "err".
XML-attribute: stream
◆ setUseAnsiColor()
| void gramods::gmCore::OStreamMessageSink::setUseAnsiColor |
( |
bool |
on | ) |
|
Activate or deactivate the use of ANSI color escape characters to emphasize error and warning messages.
XML-attribute: useAnsiColor
The documentation for this class was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmCore/include/gmCore/OStreamMessageSink.hh
- /home/karlu/private/program/gramods/modules/gmCore/src/OStreamMessageSink.cpp