NRP Core  1.4.1
proto_field_ops.cpp File Reference

Namespaces

 proto_field_ops
 Implement single field Get/Set operations using field descriptor and reflection interface.
 

Functions

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...
 
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...