#include <hpi_classes.h>
Public Member Functions | |
| PyObject * | make_hsi_object (const char *hsi_type, void *hugin_value) |
| general function to make a Python object from a hugin object. | |
| python_arglist (int _argc) | |
| the constructor is called with the number of arguments the argument list is meant to contain. | |
| ~python_arglist () | |
| destructor, does cleanup | |
| bool | add (PyObject *python_arg) |
| add a python object to the argument list. | |
| bool | add (const char *str) |
| add a string to the argument list after converting it to an acceptable Python object. | |
| PyObject * | yield () |
| returns the generated PyObject Note that this will only succeed if the argument count is correct. | |
Private Attributes | |
| PyObject * | pArgs |
| int | argc |
| int | have |
Definition at line 84 of file hpi_classes.h.
|
|
the constructor is called with the number of arguments the argument list is meant to contain. Note that you must add precisely this amount of arguments. Definition at line 150 of file hpi_classes.cpp. |
|
|
destructor, does cleanup
Definition at line 155 of file hpi_classes.cpp. References pArgs. |
|
|
add a string to the argument list after converting it to an acceptable Python object. This function can easily be copied and modified to apply to other data types, just pick the proper PyXXX_From_YYY Python API function. Definition at line 170 of file hpi_classes.cpp. References add(). |
|
|
add a python object to the argument list. This will only succeed if there is still space in the tuple. Note that you must have the Python object already to use this method. Definition at line 160 of file hpi_classes.cpp. Referenced by add(), and hpi::callhpi(). |
|
||||||||||||
|
general function to make a Python object from a hugin object.
Definition at line 127 of file hpi_classes.cpp. Referenced by hpi::callhpi(). |
|
|
returns the generated PyObject Note that this will only succeed if the argument count is correct.
Definition at line 183 of file hpi_classes.cpp. References argc. Referenced by hpi::callhpi(). |
|
|
Definition at line 89 of file hpi_classes.h. Referenced by python_arglist(), and yield(). |
|
|
Definition at line 90 of file hpi_classes.h. Referenced by add(). |
|
|
Definition at line 88 of file hpi_classes.h. Referenced by add(), python_arglist(), and ~python_arglist(). |
1.3.9.1