Goby3
3.1.4
2024.02.22
|
Specialization for DCCL message types that are fully qualified Protobuf message types (static), e.g. DataType == Foo for "message Foo". More...
#include <goby/middleware/marshalling/dccl.h>
Static Public Member Functions | |
static std::vector< char > | serialize (const DataType &msg) |
Serialize message using DCCL encoding. More... | |
static std::string | type_name (const DataType &d=DataType()) |
Full protobuf Message name (identical to Protobuf specialization) More... | |
template<typename CharIterator > | |
static std::shared_ptr< DataType > | parse (CharIterator bytes_begin, CharIterator bytes_end, CharIterator &actual_end, const std::string &type=type_name()) |
Parse one DCCL message. More... | |
static unsigned | id () |
Returns the DCCL ID. More... | |
static unsigned | id (const google::protobuf::Message &d) |
Static Public Member Functions inherited from goby::middleware::detail::DCCLSerializerParserHelperBase | |
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. More... | |
Additional Inherited Members | |
Public Member Functions inherited from goby::middleware::detail::DCCLSerializerParserHelperBase | |
DCCLSerializerParserHelperBase ()=default | |
virtual | ~DCCLSerializerParserHelperBase ()=default |
Static Public Attributes inherited from goby::middleware::detail::DCCLSerializerParserHelperBase | |
constexpr static int | INVALID_DCCL_ID {0} |
Static Protected Member Functions inherited from goby::middleware::detail::DCCLSerializerParserHelperBase | |
template<typename DataType > | |
static void | check_load () |
static void | check_load (const google::protobuf::Descriptor *desc) |
static dccl::Codec & | codec () |
static dccl::Codec & | set_codec (dccl::Codec *new_codec) |
Static Protected Attributes inherited from goby::middleware::detail::DCCLSerializerParserHelperBase | |
static std::mutex | dccl_mutex_ |
static std::unordered_map< const google::protobuf::Descriptor *, std::unique_ptr< LoaderBase > > | loader_map_ |
static std::set< std::string > | loaded_proto_files_ |
Specialization for DCCL message types that are fully qualified Protobuf message types (static), e.g. DataType == Foo for "message Foo".
DCCL is defined as distinct from the PROTOBUF Marshalling scheme if the DataTYpe has the DCCLParameters enumeration, as output by the protoc-gen-dccl
plugin to protoc
. If this plugin isn't used when compiling your .proto files, DCCL types will be identified as Protobuf types.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |