DCCL v3
Public Types | Public Member Functions | Protected Member Functions | List of all members
dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE > Class Template Reference

Implements FromProtoCppTypeBase for CPPTYPE_MESSAGE using the dynamic google::protobuf::Message as the underlying class. More...

#include <dccl/internal/protobuf_cpp_type_helpers.h>

Inheritance diagram for dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >:
Inheritance graph
[legend]

Public Types

typedef const google::protobuf::Messageconst_type
 
typedef google::protobuf::Messagemutable_type
 

Public Member Functions

std::string as_str ()
 string representation
 
- Public Member Functions inherited from dccl::internal::FromProtoCppTypeBase
boost::any get_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg)
 Get a given field's value from the provided message. More...
 
boost::any get_value (const google::protobuf::Message &msg)
 Get the value of the entire base message (only works for CPPTYPE_MESSAGE)
 
boost::any get_repeated_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg, int index)
 Get the value of a repeated field at a given index. More...
 
void set_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, boost::any value)
 Set a given field's value in the provided message. More...
 
void set_value (google::protobuf::Message *msg, boost::any value)
 Set the value of the entire base message (only works for CPPTYPE_MESSAGE)
 
void add_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, boost::any value)
 Add a new entry for a repeated field to the back. More...
 

Protected Member Functions

virtual boost::any _get_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg)
 
virtual boost::any _get_repeated_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg, int index)
 
virtual void _set_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, boost::any value)
 
virtual void _add_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, boost::any value)
 

Detailed Description

template<>
class dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >

Implements FromProtoCppTypeBase for CPPTYPE_MESSAGE using the dynamic google::protobuf::Message as the underlying class.

Definition at line 392 of file protobuf_cpp_type_helpers.h.


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