MADARA  3.4.1
madara::knowledge::BaseStreamer Class Referenceabstract

Interface for knowledge update streaming. More...

#include <BaseStreamer.h>

Inheritance diagram for madara::knowledge::BaseStreamer:
madara::knowledge::CheckpointStreamer

Public Member Functions

virtual ~BaseStreamer ()=default
 
virtual void enqueue (std::string name, KnowledgeRecord record)=0
 When attached to a KnowledgeBase, this will be called every time a KnowledgeRecord held within is modified. More...
 

Detailed Description

Interface for knowledge update streaming.

Objects which implement this interface can be attachecd to a KnowledgeBase with the attach_streamer method to receive copies of every modification of knowledge.

Definition at line 23 of file BaseStreamer.h.

Constructor & Destructor Documentation

◆ ~BaseStreamer()

virtual madara::knowledge::BaseStreamer::~BaseStreamer ( )
virtualdefault

Member Function Documentation

◆ enqueue()

virtual void madara::knowledge::BaseStreamer::enqueue ( std::string  name,
KnowledgeRecord  record 
)
pure virtual

When attached to a KnowledgeBase, this will be called every time a KnowledgeRecord held within is modified.

Parameters
namethe variable name of the KnowledgeRecord
recorda copy of the new value

Implemented in madara::knowledge::CheckpointStreamer.


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