Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
hpi Namespace Reference

Classes

class  python_interface
 a class which encapsulates the python interface. More...
 
class  python_arglist
 helper class to generated PyObject from C/C++/hugin classes More...
 

Functions

int callhpi (const char *plugin_name, int argc,...)
 simplified call interface to the Python Plugin facility. More...
 

Variables

static python_interface hpi_instance
 this is where we keep the single instance of class python_interface More...
 

Function Documentation

hsi_IMPEX int hpi::callhpi ( const char *  plugin_name,
int  argc,
  ... 
)

simplified call interface to the Python Plugin facility.

Parameters
plugin_namethe name of the plugin. This must name a python file which is in PYTHONPATH, without path and extension.
argcthe number of arguments to the plugin, not the number of argument to this function.

for each argument, two more values has to be given:

  • a string containing the name of the type (this may need to be fully qualified, like 'HuginBase::Panorama*'
  • a void* to the actual hugin object

Definition at line 55 of file hpi.cpp.

References hpi::python_interface::activate(), hpi::python_arglist::add(), hpi::python_interface::call_hpi(), hpi_instance, hpi::python_arglist::make_hsi_object(), and hpi::python_arglist::yield().

Variable Documentation

python_interface hpi::hpi_instance
static

this is where we keep the single instance of class python_interface

Definition at line 53 of file hpi.cpp.

Referenced by callhpi().