Class Writer

Inheritance Relationships

Derived Types

Class Documentation

class Writer

Abstract base class for writing messages.

This class provides an interface for writing messages in JSON format.

Subclassed by FIFOWriter, PrometheusWriter, WebISWriter

Public Functions

virtual ~Writer() = default

Virtual destructor for proper cleanup in derived classes.

This ensures that when a derived class object is deleted through a pointer to Writer, the derived class's destructor is also called.

virtual void write_message(const nlohmann::json &message) = 0

Pure virtual function to write a message.

This function must be implemented by derived classes to handle writing messages in JSON format.

Parameters:

message -- The JSON message to be written.