Class Monitor
Defined in File monitor.hpp
Inheritance Relationships
Derived Types
public FromHostMonitor
(Class FromHostMonitor)public ToHostMonitor
(Class ToHostMonitor)
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()
-
std::string get_serialized_message()
- Returns:
serialised json std::string.
-
void write_message()
write serialised message in fifo.
Protected Attributes
-
nlohmann::json m_message
-
explicit Monitor(std::string &fifoname)