TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::events::Sink Class Referenceabstract

#include <core/events.hpp>

Inheritance diagram for tmk::events::Sink:
tmk::events::NullSink tmk::server::ViewerServer

Public Member Functions

virtual ~Sink ()=default
virtual void publish (std::string json)=0
 One JSON object per message (see the protocol document for the message types).
virtual bool wants_transient () const
 Transient, droppable messages (search frontiers, ghosts). Return false to let producers skip building them.

Detailed Description

Definition at line 11 of file events.hpp.

Constructor & Destructor Documentation

◆ ~Sink()

virtual tmk::events::Sink::~Sink ( )
virtualdefault

Member Function Documentation

◆ publish()

virtual void tmk::events::Sink::publish ( std::string json)
pure virtual

One JSON object per message (see the protocol document for the message types).

Implemented in tmk::events::NullSink, and tmk::server::ViewerServer.

◆ wants_transient()

virtual bool tmk::events::Sink::wants_transient ( ) const
inlinevirtual

Transient, droppable messages (search frontiers, ghosts). Return false to let producers skip building them.

Reimplemented in tmk::events::NullSink, and tmk::server::ViewerServer.

Definition at line 17 of file events.hpp.


The documentation for this class was generated from the following file: