Specialization for runtime introspection of DCCL messages using google::protobuf::Message base class (works for publish and subscribe_regex only)
More...
#include <goby/middleware/marshalling/dccl.h>
|
static std::vector< char > | serialize (const google::protobuf::Message &msg) |
| Serialize DCCL/Protobuf message (using DCCL 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 DCCL/Protobuf message (using DCCL decoding) given the Protobuf type name and assuming the message descriptor is loaded into dccl::DynamicProtobufManage.
|
|
static unsigned | id (const google::protobuf::Descriptor *desc) |
| Returns the DCCL ID given a Protobuf Descriptor.
|
|
static unsigned | id (const google::protobuf::Message &d) |
| Returns the DCCL ID given an instantiated message.
|
|
template<typename CharIterator > |
static unsigned | id (CharIterator begin, CharIterator end) |
|
static unsigned | id (const std::string &full_name) |
|
static void | load_metadata (const goby::middleware::protobuf::SerializerProtobufMetadata &meta) |
|
static goby::middleware::intervehicle::protobuf::DCCLForwardedData | unpack (const std::string &bytes) |
|
static void | load_library (const std::string &library) |
|
static void | setup_dlog () |
| Enable dlog output to glog using same verbosity settings as glog.
|
|
Specialization for runtime introspection of DCCL messages using google::protobuf::Message base class (works for publish and subscribe_regex only)
Definition at line 108 of file dccl.h.
◆ id() [1/2]
Returns the DCCL ID given a Protobuf Descriptor.
Definition at line 161 of file dccl.h.
◆ id() [2/2]
Returns the DCCL ID given an instantiated message.
Definition at line 169 of file dccl.h.
◆ parse()
template<typename CharIterator >
Parse DCCL/Protobuf message (using DCCL decoding) given the Protobuf type name and assuming the message descriptor is loaded into dccl::DynamicProtobufManage.
- Template Parameters
-
CharIterator | an iterator to a container of bytes (char), e.g. std::vector<char>::iterator, or std::string::iterator |
- Parameters
-
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. Useful for concatenated messages as you can pass "actual_end" of one call into "bytes_begin" of the next |
- Returns
- Parsed Protobuf message
Definition at line 147 of file dccl.h.
◆ serialize()
Serialize DCCL/Protobuf message (using DCCL encoding)
Definition at line 113 of file dccl.h.
◆ type_name() [1/2]
Full protobuf name from descriptor, including package (if one is defined).
- Parameters
-
Definition at line 133 of file dccl.h.
◆ type_name() [2/2]
Full protobuf name from message instantiation, including package (if one is defined).
- Parameters
-
Definition at line 125 of file dccl.h.
The documentation for this struct was generated from the following file:
- goby/middleware/marshalling/dccl.h