7 #include <google/protobuf/descriptor.h> 8 #include <google/protobuf/dynamic_message.h> 9 #include <google/protobuf/reflection.h> 10 #include <google/protobuf/io/zero_copy_stream_impl.h> 11 #include <google/protobuf/compiler/parser.h> 22 const google::protobuf::Descriptor* descriptor,
25 , _proto_pool(&_proto_database)
26 , _msg_descriptor(descriptor)
32 const google::protobuf::FileDescriptorSet& descriptor_set,
35 bool parseMessage(
const MessageRef serialized_msg,
double& timestamp)
override;
43 const google::protobuf::Descriptor* _msg_descriptor =
nullptr;
ProtobufParser(const std::string &topic_name, const google::protobuf::Descriptor *descriptor, PlotDataMapRef &data)
google::protobuf::DynamicMessageFactory _msg_factory
std::string type_name(lua_State *L, type t)
google::protobuf::SimpleDescriptorDatabase _proto_database
google::protobuf::DescriptorPool _proto_pool
The MessageParser is the base class used to parse a message with a specific encoding+schema.