The MessageParser is the base class to create plugins that are able to parse one or multiple Message types. Each message type is uniquely identified by a MessageKey (128 bits, sufficiently large to hold a MD5Sum identifier). More...
#include <messageparser_base.h>
Public Member Functions | |
MessageParser (const std::string &topic_name, PlotDataMapRef &plot_data) | |
virtual bool | parseMessage (const MessageRef serialized_msg, double timestamp)=0 |
virtual | ~MessageParser ()=default |
Protected Member Functions | |
PlotData & | getSeries (const std::string &key) |
Protected Attributes | |
PlotDataMapRef & | _plot_data |
std::string | _topic_name |
The MessageParser is the base class to create plugins that are able to parse one or multiple Message types. Each message type is uniquely identified by a MessageKey (128 bits, sufficiently large to hold a MD5Sum identifier).
You push one or more raw messages using the method pushMessageRef() Once you have done, the result can be copied using plotData()
Definition at line 64 of file messageparser_base.h.
|
inline |
Definition at line 67 of file messageparser_base.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 79 of file messageparser_base.h.
|
pure virtual |
Implemented in MessagePack_Parser, BSON_Parser, CBOR_Parser, and JSON_Parser.
|
protected |
Definition at line 76 of file messageparser_base.h.
|
protected |
Definition at line 77 of file messageparser_base.h.