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

#include <protobuf_parser.h>

Inheritance diagram for ProtobufParser:
Inheritance graph
[legend]

Public Member Functions

bool parseMessage (const MessageRef serialized_msg, double &timestamp) override
 
 ProtobufParser (const std::string &topic_name, const google::protobuf::Descriptor *descriptor, PlotDataMapRef &data)
 
 ProtobufParser (const std::string &topic_name, const std::string type_name, const google::protobuf::FileDescriptorSet &descriptor_set, PlotDataMapRef &data)
 
- 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 void setLargeArraysPolicy (bool clamp, unsigned max_size)
 
virtual bool useEmbeddedTimestamp () const
 
virtual ~MessageParser ()=default
 

Protected Attributes

const google::protobuf::Descriptor * _msg_descriptor = nullptr
 
google::protobuf::DynamicMessageFactory _msg_factory
 
google::protobuf::SimpleDescriptorDatabase _proto_database
 
google::protobuf::DescriptorPool _proto_pool
 
- Protected Attributes inherited from PJ::MessageParser
PlotDataMapRef_plot_data
 
std::string _topic_name
 

Additional Inherited Members

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

Detailed Description

Definition at line 17 of file protobuf_parser.h.

Constructor & Destructor Documentation

◆ ProtobufParser() [1/2]

ProtobufParser::ProtobufParser ( const std::string &  topic_name,
const google::protobuf::Descriptor *  descriptor,
PlotDataMapRef data 
)
inline

Definition at line 20 of file protobuf_parser.h.

◆ ProtobufParser() [2/2]

ProtobufParser::ProtobufParser ( const std::string &  topic_name,
const std::string  type_name,
const google::protobuf::FileDescriptorSet &  descriptor_set,
PlotDataMapRef data 
)

Member Function Documentation

◆ parseMessage()

bool ProtobufParser::parseMessage ( const MessageRef  serialized_msg,
double &  timestamp 
)
overridevirtual

Implements PJ::MessageParser.

Definition at line 36 of file protobuf_parser.cpp.

Member Data Documentation

◆ _msg_descriptor

const google::protobuf::Descriptor* ProtobufParser::_msg_descriptor = nullptr
protected

Definition at line 39 of file protobuf_parser.h.

◆ _msg_factory

google::protobuf::DynamicMessageFactory ProtobufParser::_msg_factory
protected

Definition at line 38 of file protobuf_parser.h.

◆ _proto_database

google::protobuf::SimpleDescriptorDatabase ProtobufParser::_proto_database
protected

Definition at line 35 of file protobuf_parser.h.

◆ _proto_pool

google::protobuf::DescriptorPool ProtobufParser::_proto_pool
protected

Definition at line 36 of file protobuf_parser.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50