Provides various representations of a google::protobuf::FieldDescriptor::CppType enumeration, and ways to access the google::protobuf::Reflection object for a given type.
More...
#include <dccl/internal/protobuf_cpp_type_helpers.h>
|
| virtual std::string | as_str () |
| | string representation
|
| |
| dccl::any | get_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg) |
| | Get a given field's value from the provided message.
|
| |
| dccl::any | get_value (const google::protobuf::Message &msg) |
| | Get the value of the entire base message (only works for CPPTYPE_MESSAGE)
|
| |
| dccl::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.
|
| |
| void | set_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, dccl::any value) |
| | Set a given field's value in the provided message.
|
| |
| void | set_value (google::protobuf::Message *msg, dccl::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, dccl::any value) |
| | Add a new entry for a repeated field to the back.
|
| |
| virtual void | _set_value (const google::protobuf::FieldDescriptor *, google::protobuf::Message *, dccl::any) |
| |
| virtual void | _add_value (const google::protobuf::FieldDescriptor *, google::protobuf::Message *, dccl::any) |
| |
| virtual dccl::any | _get_repeated_value (const google::protobuf::FieldDescriptor *, const google::protobuf::Message &, int) |
| |
| virtual dccl::any | _get_value (const google::protobuf::FieldDescriptor *, const google::protobuf::Message &) |
| |
Provides various representations of a google::protobuf::FieldDescriptor::CppType enumeration, and ways to access the google::protobuf::Reflection object for a given type.
Definition at line 57 of file protobuf_cpp_type_helpers.h.
◆ _add_value()
| virtual void dccl::internal::FromProtoCppTypeBase::_add_value |
( |
const google::protobuf::FieldDescriptor * |
, |
|
|
google::protobuf::Message * |
, |
|
|
dccl::any |
|
|
) |
| |
|
inlinevirtual |
◆ _get_repeated_value()
| virtual dccl::any dccl::internal::FromProtoCppTypeBase::_get_repeated_value |
( |
const google::protobuf::FieldDescriptor * |
, |
|
|
const google::protobuf::Message & |
, |
|
|
int |
|
|
) |
| |
|
inlinevirtual |
◆ _get_value()
| virtual dccl::any dccl::internal::FromProtoCppTypeBase::_get_value |
( |
const google::protobuf::FieldDescriptor * |
, |
|
|
const google::protobuf::Message & |
|
|
) |
| |
|
inlinevirtual |
◆ _set_value()
| virtual void dccl::internal::FromProtoCppTypeBase::_set_value |
( |
const google::protobuf::FieldDescriptor * |
, |
|
|
google::protobuf::Message * |
, |
|
|
dccl::any |
|
|
) |
| |
|
inlinevirtual |
◆ add_value()
| void dccl::internal::FromProtoCppTypeBase::add_value |
( |
const google::protobuf::FieldDescriptor * |
field, |
|
|
google::protobuf::Message * |
msg, |
|
|
dccl::any |
value |
|
) |
| |
|
inline |
Add a new entry for a repeated field to the back.
- Parameters
-
| field | Field to add value to. |
| msg | Message to which this field belongs. |
| value | Value to add. |
Definition at line 122 of file protobuf_cpp_type_helpers.h.
◆ as_str()
| virtual std::string dccl::internal::FromProtoCppTypeBase::as_str |
( |
| ) |
|
|
inlinevirtual |
◆ get_repeated_value()
| dccl::any dccl::internal::FromProtoCppTypeBase::get_repeated_value |
( |
const google::protobuf::FieldDescriptor * |
field, |
|
|
const google::protobuf::Message & |
msg, |
|
|
int |
index |
|
) |
| |
|
inline |
◆ get_value() [1/2]
| dccl::any dccl::internal::FromProtoCppTypeBase::get_value |
( |
const google::protobuf::FieldDescriptor * |
field, |
|
|
const google::protobuf::Message & |
msg |
|
) |
| |
|
inline |
◆ get_value() [2/2]
| dccl::any dccl::internal::FromProtoCppTypeBase::get_value |
( |
const google::protobuf::Message & |
msg | ) |
|
|
inline |
◆ set_value() [1/2]
| void dccl::internal::FromProtoCppTypeBase::set_value |
( |
const google::protobuf::FieldDescriptor * |
field, |
|
|
google::protobuf::Message * |
msg, |
|
|
dccl::any |
value |
|
) |
| |
|
inline |
◆ set_value() [2/2]
| void dccl::internal::FromProtoCppTypeBase::set_value |
( |
google::protobuf::Message * |
msg, |
|
|
dccl::any |
value |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: