Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NlohmannParser Class Reference

#include <nlohmann_parsers.h>

Inheritance diagram for NlohmannParser:
Inheritance graph
[legend]

Public Member Functions

 NlohmannParser (const std::string &topic_name, PlotDataMapRef &data, bool use_msg_stamp, const std::string &stamp_fieldname)
 
- Public Member Functions inherited from PJ::MessageParser
bool clampLargeArray () const
 
virtual void enableEmbeddedTimestamp (bool enable)
 
unsigned maxArraySize () const
 
 MessageParser (const std::string &topic_name, PlotDataMapRef &plot_data)
 
virtual bool parseMessage (const MessageRef serialized_msg, double &timestamp)=0
 
virtual void setLargeArraysPolicy (bool clamp, unsigned max_size)
 
virtual bool useEmbeddedTimestamp () const
 
virtual ~MessageParser ()=default
 

Protected Member Functions

bool parseMessageImpl (double &timestamp)
 
- Protected Member Functions inherited from PJ::MessageParser
PlotDatagetSeries (const std::string &key)
 
StringSeriesgetStringSeries (const std::string &key)
 

Protected Attributes

nlohmann::json _json
 
std::string _stamp_fieldname
 
bool _use_message_stamp
 
- Protected Attributes inherited from PJ::MessageParser
PlotDataMapRef_plot_data
 
std::string _topic_name
 

Detailed Description

Definition at line 17 of file nlohmann_parsers.h.

Constructor & Destructor Documentation

◆ NlohmannParser()

NlohmannParser::NlohmannParser ( const std::string &  topic_name,
PlotDataMapRef data,
bool  use_msg_stamp,
const std::string &  stamp_fieldname 
)
inline

Definition at line 20 of file nlohmann_parsers.h.

Member Function Documentation

◆ parseMessageImpl()

bool NlohmannParser::parseMessageImpl ( double &  timestamp)
protected

Definition at line 11 of file nlohmann_parsers.cpp.

Member Data Documentation

◆ _json

nlohmann::json NlohmannParser::_json
protected

Definition at line 31 of file nlohmann_parsers.h.

◆ _stamp_fieldname

std::string NlohmannParser::_stamp_fieldname
protected

Definition at line 33 of file nlohmann_parsers.h.

◆ _use_message_stamp

bool NlohmannParser::_use_message_stamp
protected

Definition at line 32 of file nlohmann_parsers.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:29