Class FIFOWriter
Defined in File fifo_writer.hpp
Inheritance Relationships
Base Type
public Writer(Class Writer)
Class Documentation
-
class FIFOWriter : public Writer
A class to write messages to a FIFO.
Public Functions
-
explicit FIFOWriter(const std::string &fifoname)
Constructor to initialize FIFOWriter with a FIFO name. The FIFO has to exist.
- Parameters:
fifoname -- The name of the FIFO.
-
~FIFOWriter()
Destructor to close the FIFO.
-
virtual void write_message(const nlohmann::json &message) override
Writes a JSON message to the FIFO.
- Parameters:
message -- The JSON message to write.
-
explicit FIFOWriter(const std::string &fifoname)