ROSE
0.11.96.11
|
Properties for messages.
Each message property is optional. When a message is sent through the plumbing, each node of the plumbing lattice may provide default values for properties that are not set, or may override properties that are set.
Thread safety: This object uses no global state, but is otherwise not thread-safe except where noted.
#include <Message.h>
Public Member Functions | |
MesgProps | merge (const MesgProps &) const |
Merge the specified properties into this object and return new properties. More... | |
void | print (std::ostream &) const |
Print the values for all properties. More... | |
Public Attributes | |
Optional< std::string > | facilityName |
The name of the logging facility that produced this message. | |
Optional< Importance > | importance |
The message importance level. | |
boost::tribool | isBuffered |
Whether the output buffered and emitted on a per-message basis. | |
Optional< std::string > | completionStr |
String to append to the end of each complete message. | |
Optional< std::string > | interruptionStr |
String to append when a partial message is interrupted. | |
Optional< std::string > | cancelationStr |
String to append to a partial message when it is destroyed. | |
Optional< std::string > | lineTermination |
Line termination for completion, interruption, and cancelation. | |
boost::tribool | useColor |
Whether to use ANSI escape sequences to colorize output. | |
Merge the specified properties into this object and return new properties.
Each property of the return value will be the value from this object, except when this object's property is missing, in which case the property value from the argument is used (which may also be missing).
void Sawyer::Message::MesgProps::print | ( | std::ostream & | ) | const |
Print the values for all properties.
This is used mainly for debugging.