.. _program_listing_file_monitor.hpp: Program Listing for File monitor.hpp ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``monitor.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef FELIX_MONITOR_H_ #define FELIX_MONITOR_H_ #include #include #include #include #include #include #include #include class Monitor { public: explicit Monitor(std::string& fifoname); ~Monitor(); Monitor(Monitor&&) = delete; Monitor& operator=(Monitor&&) = delete; std::string get_serialized_message(); void write_message(); protected: nlohmann::json m_message; private: int m_fifo_fd; bool is_fifo(const char *filename); }; #endif /* FELIX_MONITOR_H_ */