Goby v2
Public Member Functions | Static Public Member Functions | Friends | List of all members
goby::acomms::DCCLCodec Class Reference

Public Member Functions

boost::shared_ptr< dccl::Codec > codec ()
 Return the underlying dccl::Codec that is used by this wrapper.
 
void set_cfg (const protobuf::DCCLConfig &cfg)
 
void merge_cfg (const protobuf::DCCLConfig &cfg)
 
void load_shared_library_codecs (void *dl_handle)
 
template<typename ProtobufMessage >
void validate ()
 
template<typename ProtobufMessage >
void info (std::ostream *os) const
 
void info_all (std::ostream *os) const
 
template<typename ProtobufMessage >
unsigned id () const
 
unsigned size (const google::protobuf::Message &msg)
 
void encode (std::string *bytes, const google::protobuf::Message &msg, bool header_only=false)
 
void decode (const std::string &bytes, google::protobuf::Message *msg, bool header_only=false)
 
unsigned id_from_encoded (const std::string &bytes)
 
void validate (const google::protobuf::Descriptor *desc)
 
void validate_repeated (const std::list< const google::protobuf::Descriptor * > &descs)
 
void info (const google::protobuf::Descriptor *desc, std::ostream *os) const
 
void info_repeated (const std::list< const google::protobuf::Descriptor * > &desc, std::ostream *os) const
 
unsigned id (const google::protobuf::Descriptor *desc) const
 
template<typename GoogleProtobufMessagePointer >
unsigned size_repeated (const std::list< GoogleProtobufMessagePointer > &msgs)
 
template<typename GoogleProtobufMessagePointer >
GoogleProtobufMessagePointer decode (const std::string &bytes, bool header_only=false)
 
template<typename GoogleProtobufMessagePointer >
std::string encode_repeated (const std::list< GoogleProtobufMessagePointer > &msgs)
 
template<typename GoogleProtobufMessagePointer >
std::list< GoogleProtobufMessagePointer > decode_repeated (const std::string &orig_bytes)
 
template<typename DCCLTypedFieldCodecUint32 >
void add_id_codec (const std::string &identifier)
 
void set_id_codec (const std::string &identifier)
 
void reset_id_codec ()
 

Static Public Member Functions

static DCCLCodecget ()
 DCCLCodec is a singleton class; use this to get a pointer to the class.
 
static const std::string & glog_encode_group ()
 
static const std::string & glog_decode_group ()
 

Friends

template<typename T >
void boost::checked_delete (T *)
 

Detailed Description

Examples:
acomms/chat/chat.cpp.

Definition at line 120 of file dccl.h.


The documentation for this class was generated from the following files: