ROSE 0.11.145.192
Public Member Functions | Public Attributes | List of all members
Sawyer::Message::MesgProps Struct Reference

Description

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.

Definition at line 426 of file Message.h.

#include <Sawyer/Message.h>

Collaboration diagram for Sawyer::Message::MesgProps:
Collaboration graph
[legend]

Public Member Functions

MesgProps merge (const MesgProps &) const
 Merge the specified properties into this object and return new properties.
 
void print (std::ostream &) const
 Print the values for all properties.
 

Public Attributes

Optional< std::string > facilityName
 The name of the logging facility that produced this message.
 
Optional< Importanceimportance
 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.
 

Constructor & Destructor Documentation

◆ MesgProps()

Sawyer::Message::MesgProps::MesgProps ( )
inline

Definition at line 438 of file Message.h.

Member Function Documentation

◆ merge()

MesgProps Sawyer::Message::MesgProps::merge ( const MesgProps ) const

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).

◆ print()

void Sawyer::Message::MesgProps::print ( std::ostream &  ) const

Print the values for all properties.

This is used mainly for debugging.

Member Data Documentation

◆ facilityName

Optional<std::string> Sawyer::Message::MesgProps::facilityName

The name of the logging facility that produced this message.

Definition at line 428 of file Message.h.

Referenced by Sawyer::Message::Mesg::Mesg(), and Sawyer::Message::Mesg::Mesg().

◆ importance

Optional<Importance> Sawyer::Message::MesgProps::importance

The message importance level.

Definition at line 429 of file Message.h.

Referenced by Sawyer::Message::Mesg::Mesg(), and Sawyer::Message::Mesg::Mesg().

◆ isBuffered

boost::tribool Sawyer::Message::MesgProps::isBuffered

Whether the output buffered and emitted on a per-message basis.

Definition at line 430 of file Message.h.

◆ completionStr

Optional<std::string> Sawyer::Message::MesgProps::completionStr

String to append to the end of each complete message.

Definition at line 431 of file Message.h.

◆ interruptionStr

Optional<std::string> Sawyer::Message::MesgProps::interruptionStr

String to append when a partial message is interrupted.

Definition at line 432 of file Message.h.

◆ cancelationStr

Optional<std::string> Sawyer::Message::MesgProps::cancelationStr

String to append to a partial message when it is destroyed.

Definition at line 433 of file Message.h.

◆ lineTermination

Optional<std::string> Sawyer::Message::MesgProps::lineTermination

Line termination for completion, interruption, and cancelation.

Definition at line 434 of file Message.h.

◆ useColor

boost::tribool Sawyer::Message::MesgProps::useColor

Whether to use ANSI escape sequences to colorize output.

Definition at line 435 of file Message.h.


The documentation for this struct was generated from the following file: