Logo
Reference manual - version ored_version
JSONMessage Class Referenceabstract
Inheritance diagram for JSONMessage:

Public Member Functions

virtual std::string msg () const =0
 return a std::string for the log file
void log () const
 generate Boost log record to pass to corresponding sinks
const std::string json () const
 create JSON-like output from the data
void set (const std::string &key, const QuantLib::ext::any &value)
virtual void emitLog () const =0

Static Protected Member Functions

static std::string jsonify (const QuantLib::ext::any &)
 generate Boost log record - this method is called by log()

Protected Attributes

std::map< std::string, QuantLib::ext::any > data_
bool logged_ = false

Member Function Documentation

◆ msg()

virtual std::string msg ( ) const
pure virtual

return a std::string for the log file

Implemented in EventMessage, ProgressMessage, and StructuredMessage.

◆ emitLog()

virtual void emitLog ( ) const
pure virtual