Class Monitor

Inheritance Relationships

Derived Types

Class Documentation

class Monitor

Generic class to write json strings containing monitoring information in UNIX fifos.

Subclassed by FromHostMonitor, ToHostMonitor

Public Functions

explicit Monitor(std::string &fifoname)

Monitor constructor.

Parameters:

fifoname -- file name of the UNIX fifo.

~Monitor()
Monitor(Monitor&&) = delete
Monitor &operator=(Monitor&&) = delete
std::string get_serialized_message()
Returns:

serialised json std::string.

void write_message()

write serialised message in fifo.

Protected Attributes

nlohmann::json m_message