Public Member Functions | Protected Attributes | List of all members
PJ::CompositeParser Class Reference

#include <parser_configuration.h>

Public Member Functions

void addParser (const std::string &topic_name, std::shared_ptr< PJ::MessageParser > parser)
 
void clear ()
 
const RosParserConfiggetConfig ()
 
bool hasParser (const std::string &topic_name)
 
bool parseMessage (const std::string &topic_name, MessageRef serialized_msg, double &timestamp)
 
void setConfig (const RosParserConfig &config)
 

Protected Attributes

RosParserConfig _config
 
std::unordered_map< std::string, std::shared_ptr< PJ::MessageParser > > _parsers
 

Detailed Description

Definition at line 32 of file parser_configuration.h.

Member Function Documentation

◆ addParser()

void PJ::CompositeParser::addParser ( const std::string &  topic_name,
std::shared_ptr< PJ::MessageParser parser 
)

Definition at line 78 of file parser_configuration.cpp.

◆ clear()

void PJ::CompositeParser::clear ( )
inline

Definition at line 44 of file parser_configuration.h.

◆ getConfig()

const RosParserConfig & PJ::CompositeParser::getConfig ( )

Definition at line 85 of file parser_configuration.cpp.

◆ hasParser()

bool PJ::CompositeParser::hasParser ( const std::string &  topic_name)
inline

Definition at line 46 of file parser_configuration.h.

◆ parseMessage()

bool PJ::CompositeParser::parseMessage ( const std::string &  topic_name,
MessageRef  serialized_msg,
double &  timestamp 
)

Definition at line 102 of file parser_configuration.cpp.

◆ setConfig()

void PJ::CompositeParser::setConfig ( const RosParserConfig config)

Definition at line 90 of file parser_configuration.cpp.

Member Data Documentation

◆ _config

RosParserConfig PJ::CompositeParser::_config
protected

Definition at line 51 of file parser_configuration.h.

◆ _parsers

std::unordered_map<std::string, std::shared_ptr<PJ::MessageParser> > PJ::CompositeParser::_parsers
protected

Definition at line 50 of file parser_configuration.h.


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


plotjuggler_ros
Author(s): Davide Faconti
autogenerated on Sat May 24 2025 02:24:01