#include <parser_configuration.h>
Public Member Functions | |
void | addParser (const std::string &topic_name, std::shared_ptr< PJ::MessageParser > parser) |
void | clear () |
const RosParserConfig & | getConfig () |
bool | hasParser (const std::string &topic_name) |
bool | parseMessage (const std::string &topic_name, MessageRef serialized_msg, double ×tamp) |
void | setConfig (const RosParserConfig &config) |
Protected Attributes | |
RosParserConfig | _config |
std::unordered_map< std::string, std::shared_ptr< PJ::MessageParser > > | _parsers |
Definition at line 32 of file parser_configuration.h.
void PJ::CompositeParser::addParser | ( | const std::string & | topic_name, |
std::shared_ptr< PJ::MessageParser > | parser | ||
) |
Definition at line 78 of file parser_configuration.cpp.
|
inline |
Definition at line 44 of file parser_configuration.h.
const RosParserConfig & PJ::CompositeParser::getConfig | ( | ) |
Definition at line 85 of file parser_configuration.cpp.
|
inline |
Definition at line 46 of file parser_configuration.h.
bool PJ::CompositeParser::parseMessage | ( | const std::string & | topic_name, |
MessageRef | serialized_msg, | ||
double & | timestamp | ||
) |
Definition at line 102 of file parser_configuration.cpp.
void PJ::CompositeParser::setConfig | ( | const RosParserConfig & | config | ) |
Definition at line 90 of file parser_configuration.cpp.
|
protected |
Definition at line 51 of file parser_configuration.h.
|
protected |
Definition at line 50 of file parser_configuration.h.