Public Member Functions | Static Protected Member Functions | List of all members
MessageParser Class Referenceabstract

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>

Inheritance diagram for MessageParser:
Inheritance graph
[legend]

Public Member Functions

virtual void extractData (PlotDataMapRef &destination, const std::string &prefix)=0
 
virtual const std::unordered_set< std::string > & getCompatibleKeys () const =0
 
virtual void pushMessageRef (const std::string &key, const MessageRef &msg, double timestamp)=0
 
virtual ~MessageParser ()
 

Static Protected Member Functions

static void appendData (PlotDataMapRef &destination_plot_map, const std::string &field_name, PlotData &in_data)
 

Detailed Description

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 44 of file messageparser_base.h.

Constructor & Destructor Documentation

virtual MessageParser::~MessageParser ( )
inlinevirtual

Definition at line 48 of file messageparser_base.h.

Member Function Documentation

static void MessageParser::appendData ( PlotDataMapRef destination_plot_map,
const std::string &  field_name,
PlotData in_data 
)
inlinestaticprotected

Definition at line 61 of file messageparser_base.h.

virtual void MessageParser::extractData ( PlotDataMapRef destination,
const std::string &  prefix 
)
pure virtual
virtual const std::unordered_set<std::string>& MessageParser::getCompatibleKeys ( ) const
pure virtual
virtual void MessageParser::pushMessageRef ( const std::string &  key,
const MessageRef msg,
double  timestamp 
)
pure virtual

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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18