4 #include <QApplication> 6 #include <unordered_map> 7 #include <unordered_set> 38 const uint8_t*
data()
const {
68 PlotDataMapRef& plot_data): _plot_data(plot_data), _topic_name(topic_name)
72 virtual bool parseMessage(
const MessageRef serialized_msg,
81 auto plot_pair = _plot_data.
numeric.find(key);
82 if (plot_pair == _plot_data.
numeric.end())
86 return plot_pair->second;
107 #define MessageParserCreator_iid "facontidavide.PlotJuggler3.MessageParserCreator" std::map< QString, std::shared_ptr< MessageParserCreator >> MessageParserFactory
MessageParser(const std::string &topic_name, PlotDataMapRef &plot_data)
const uint8_t * data() const
MessageRef(uint8_t *first_ptr, size_t size)
PlotDataMapRef & _plot_data
std::unordered_map< std::string, PlotData > numeric
MessageRef(std::vector< uint8_t > &vect)
std::shared_ptr< MessageParser > MessageParserPtr
#define MessageParserCreator_iid
std::unordered_map< std::string, PlotData >::iterator addNumeric(const std::string &name)
The MessageParser is the base class to create plugins that are able to parse one or multiple Message ...
PlotData & getSeries(const std::string &key)