Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PJ::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 PJ::MessageParser:
Inheritance graph
[legend]

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

PlotDatagetSeries (const std::string &key)
 

Protected Attributes

PlotDataMapRef_plot_data
 
std::string _topic_name
 

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

Constructor & Destructor Documentation

PJ::MessageParser::MessageParser ( const std::string &  topic_name,
PlotDataMapRef plot_data 
)
inline

Definition at line 67 of file messageparser_base.h.

virtual PJ::MessageParser::~MessageParser ( )
virtualdefault

Member Function Documentation

PlotData& PJ::MessageParser::getSeries ( const std::string &  key)
inlineprotected

Definition at line 79 of file messageparser_base.h.

virtual bool PJ::MessageParser::parseMessage ( const MessageRef  serialized_msg,
double  timestamp 
)
pure virtual

Member Data Documentation

PlotDataMapRef& PJ::MessageParser::_plot_data
protected

Definition at line 76 of file messageparser_base.h.

std::string PJ::MessageParser::_topic_name
protected

Definition at line 77 of file messageparser_base.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:52