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>
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