Class FIFOWriter

Inheritance Relationships

Base Type

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.