Logo
Reference manual - version ored_version
EventMessage Class Reference
Inheritance diagram for EventMessage:

Public Member Functions

 EventMessage (const std::string &msg, const std::string &msgKey, const std::map< std::string, QuantLib::ext::any > data={})
std::string msg () const override
 return a std::string for the log file
Public Member Functions inherited from JSONMessage
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)

Static Public Attributes

static constexpr const char * name = "EventMessage"

Protected Member Functions

void emitLog () const override
 generate Boost log record to pass to corresponding sinks

Additional Inherited Members

Static Protected Member Functions inherited from JSONMessage
static std::string jsonify (const QuantLib::ext::any &)
 generate Boost log record - this method is called by log()
Protected Attributes inherited from JSONMessage
std::map< std::string, QuantLib::ext::any > data_
bool logged_ = false

Member Function Documentation

◆ msg()

std::string msg ( ) const
overridevirtual

return a std::string for the log file

Implements JSONMessage.

◆ emitLog()

void emitLog ( ) const
overrideprotectedvirtual

generate Boost log record to pass to corresponding sinks

Implements JSONMessage.