Goby3
3.1.4
2024.02.22
|
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) More... | |
static std::string | type_name (const google::protobuf::Message &d) |
Full protobuf name from message instantiation, including package (if one is defined). More... | |
static std::string | type_name (const google::protobuf::Descriptor *desc) |
Full protobuf name from descriptor, including package (if one is defined). More... | |
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. More... | |
Specialization for runtime introspection using google::protobuf::Message base class (works for publish and subscribe_type_regex only)
Definition at line 84 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 119 of file protobuf.h.
|
inlinestatic |
Serialize Protobuf message (standard Protobuf encoding)
Definition at line 87 of file protobuf.h.
|
inlinestatic |
Full protobuf name from descriptor, including package (if one is defined).
desc | Protobuf descriptor |
Definition at line 105 of file protobuf.h.
|
inlinestatic |
Full protobuf name from message instantiation, including package (if one is defined).
d | Protobuf message |
Definition at line 97 of file protobuf.h.