MADARA  3.4.1
BaseStreamer.h
Go to the documentation of this file.
1 #ifndef MADARA_KNOWLEDGE_BASE_STREAMER_H_
2 #define MADARA_KNOWLEDGE_BASE_STREAMER_H_
3 
4 #include "madara/MadaraExport.h"
5 
14 namespace madara
15 {
16 namespace knowledge
17 {
23 class MADARA_EXPORT BaseStreamer
24 {
25 public:
26  virtual ~BaseStreamer() = default;
27 
35  virtual void enqueue(std::string name, KnowledgeRecord record) = 0;
36 };
37 }
38 } // namespace madara::knowledge
39 
40 #endif // MADARA_KNOWLEDGE_BASE_STREAMER_H_
Interface for knowledge update streaming.
Definition: BaseStreamer.h:24
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 mod...
This class encapsulates an entry in a KnowledgeBase.
constexpr string_t string
Provides functions and classes for the distributed knowledge base.
Copyright(c) 2020 Galois.