33 #ifdef MAC_SELF_CONTAINED_BUNDLE
34 #include <Python27/Python.h>
37 #endif // MAC_SELF_CONTAINED_BUNDLE
38 #include "swigpyrun.h"
83 int call_hpi (
const char* hpi_func ,
121 bool add ( PyObject* python_arg );
127 bool add (
const char* str );
bool activated
flag, true if activated
PyObject * hsi_module
pointer to loaded hsi module
python_interface()
constructor
python_arglist(int _argc)
the constructor is called with the number of arguments the argument list is meant to contain...
PyObject * make_hsi_object(const char *hsi_type, void *hugin_value)
general function to make a Python object from a hugin object.
bool activate()
: loads the necessary modules hsi and hpi.
a class which encapsulates the python interface.
PyObject * yield()
returns the generated PyObject Note that this will only succeed if the argument count is correct...
~python_arglist()
destructor, does cleanup
PyObject * load_module(const char *name)
general module-loading function
PyObject * hpi_module
pointer to loaded hpi module
bool add(PyObject *python_arg)
add a python object to the argument list.
helper class to generated PyObject from C/C++/hugin classes
int call_hpi(const char *hpi_func, PyObject *pArgs)
call a routine in the hsi module with a bunch of parameters.