hpi Namespace Reference


Classes

class  hpi::python_interface
 a class which encapsulates the python interface. More...
class  hpi::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.

Variables

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


Function Documentation

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

simplified call interface to the Python Plugin facility.

Parameters:
plugin_name the name of the plugin. This must name a python file which is in PYTHONPATH, without path and extension.
argc the 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().


Generated on Mon Sep 22 01:25:56 2014 for Hugintrunk by  doxygen 1.3.9.1