Class implementing python wrappers for protobuf Message types.
More...
#include <proto_python_bindings.h>
template<class MSG_TYPE, class ... FIELD_MSG_TYPES>
class proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >
Class implementing python wrappers for protobuf Message types.
The main access point is "create", which effectively creates bindings for a MSG_TYPE class. The generated Python class resembles the original Protobuf Python API as described here:
with the next limitations:
◆ proto_python_bindings()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
◆ ClearField()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
static void proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >::ClearField |
( |
MSG_TYPE & |
m, |
|
|
char const * |
name |
|
) |
| |
|
inlinestatic |
◆ create()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
Creates bindings for Protobuf Message type MSG_TYPE.
◆ GetAttribute()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
static bpy::object proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >::GetAttribute |
( |
MSG_TYPE & |
m, |
|
|
char const * |
name |
|
) |
| |
|
inlinestatic |
◆ GetFieldNames()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
◆ GetFieldTypeName()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
static bpy::str proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >::GetFieldTypeName |
( |
MSG_TYPE & |
m, |
|
|
char const * |
name |
|
) |
| |
|
inlinestatic |
◆ HasField()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
static bool proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >::HasField |
( |
MSG_TYPE & |
m, |
|
|
char const * |
name |
|
) |
| |
|
inlinestatic |
◆ SetAttribute()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
static void proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >::SetAttribute |
( |
MSG_TYPE & |
m, |
|
|
char const * |
name, |
|
|
const bpy::object & |
value |
|
) |
| |
|
inlinestatic |
◆ throw_python_error()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
static void proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >::throw_python_error |
( |
PyObject * |
error, |
|
|
std::string |
msg |
|
) |
| |
|
inlinestatic |
◆ WhichOneof()
template<class MSG_TYPE , class ... FIELD_MSG_TYPES>
static bpy::object proto_python_bindings< MSG_TYPE, FIELD_MSG_TYPES >::WhichOneof |
( |
MSG_TYPE & |
m, |
|
|
char const * |
name |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: