#include "google/protobuf/message.h"
#include <boost/python.hpp>
#include "nrp_general_library/utils/nrp_exceptions.h"
Go to the source code of this file.
|
| | proto_field_ops |
| | Implement single field Get/Set operations using field descriptor and reflection interface.
|
| |
|
| bpy::object | proto_field_ops::GetScalarField (gpb::Message &m, const gpb::FieldDescriptor *field) |
| | Get scalar field. Returns a copy of the field value. More...
|
| |
| std::string | proto_field_ops::GetScalarFieldAsString (const gpb::Message &m, const gpb::FieldDescriptor *field) |
| | Get scalar field value as a string. More...
|
| |
| bpy::object | proto_field_ops::GetRepeatedScalarField (gpb::Message &m, const gpb::FieldDescriptor *field, int index) |
| | Get repeated scalar field. Returns a copy of the field value. More...
|
| |
| template<class MSG , class ... REMAINING_MSGS> |
| bpy::object | proto_field_ops::GetMessageField (gpb::Message &m, const gpb::FieldDescriptor *field) |
| | Get message field. Returns a reference of the field value. More...
|
| |
| void | proto_field_ops::SetScalarField (gpb::Message &m, const gpb::FieldDescriptor *field, const bpy::object &value) |
| | Set scalar field. More...
|
| |
| void | proto_field_ops::SetRepeatedScalarField (gpb::Message &m, const gpb::FieldDescriptor *field, const bpy::object &value, int index) |
| | Set repeated scalar field. More...
|
| |
| void | proto_field_ops::AddRepeatedScalarField (gpb::Message &m, const gpb::FieldDescriptor *field, const bpy::object &value) |
| | Append repeated scalar field. More...
|
| |