|
Goby3 3.5.1
2026.06.04
|
Specialization for runtime introspection using google::protobuf::Message base class (works for publish and subscribe_type_regex only). More...
#include <goby/middleware/marshalling/protobuf.h>
Static Public Member Functions | |
| static std::vector< char > | serialize (const google::protobuf::Message &msg) |
| Serialize Protobuf message (standard Protobuf encoding). | |
| static std::string | type_name (const google::protobuf::Message &d) |
| Full protobuf name from message instantiation, including package (if one is defined). | |
| static std::string | type_name (const google::protobuf::Descriptor *desc) |
| Full protobuf name from descriptor, including package (if one is defined). | |
| template<typename CharIterator> | |
| static std::shared_ptr< google::protobuf::Message > | parse (CharIterator bytes_begin, CharIterator bytes_end, CharIterator &actual_end, const std::string &type, bool user_pool_first=false) |
| Parse Protobuf message (using standard Protobuf decoding) given the Protobuf type name and assuming the message descriptor is loaded into dccl::DynamicProtobufManage. | |
Specialization for runtime introspection using google::protobuf::Message base class (works for publish and subscribe_type_regex only).
Definition at line 85 of file protobuf.h.
|
inlinestatic |
Parse Protobuf message (using standard Protobuf decoding) given the Protobuf type name and assuming the message descriptor is loaded into dccl::DynamicProtobufManage.
| CharIterator | an iterator to a container of bytes (char), e.g. std::vector<char>::iterator, or std::string::iterator |
| bytes_begin | Iterator to the beginning of a container of bytes |
| bytes_end | Iterator to the end of a container of bytes |
| actual_end | Will be set to the actual end of parsing. |
Definition at line 120 of file protobuf.h.
|
inlinestatic |
Serialize Protobuf message (standard Protobuf encoding).
Definition at line 88 of file protobuf.h.
|
inlinestatic |
Full protobuf name from descriptor, including package (if one is defined).
| desc | Protobuf descriptor |
Definition at line 106 of file protobuf.h.
|
inlinestatic |
Full protobuf name from message instantiation, including package (if one is defined).
| d | Protobuf message |
Definition at line 98 of file protobuf.h.