IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Macros
PythonMacros.h File Reference

Macros allowing to handle ipsdk to python wrapping. More...

#include <Python/PyIPSDKBase/PythonEnumMacros.h>
#include <Python/PyIPSDKBase/PythonUtils.h>
#include <boost/python/def.hpp>
#include <boost/python/return_value_policy.hpp>
#include <boost/python/copy_const_reference.hpp>
#include <boost/python/return_internal_reference.hpp>
#include <boost/python/class.hpp>
#include <boost/python/init.hpp>
#include <boost/python/self.hpp>
#include <boost/python/operators.hpp>
#include <boost/python/register_ptr_to_python.hpp>
#include <boost/python/overloads.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/preprocessor/cat.hpp>

Go to the source code of this file.

Macros

#define IPSDK_PYTHON_MODULE_WRAPPER_REGISTRATOR(registratorName)
 macro allowing to define an IPSDK python module wrapper registrator More...
 

Detailed Description

Macros allowing to handle ipsdk to python wrapping.

Author
E. Noirfalise
Date
2015/11/23

Macro Definition Documentation

◆ IPSDK_PYTHON_MODULE_WRAPPER_REGISTRATOR

#define IPSDK_PYTHON_MODULE_WRAPPER_REGISTRATOR (   registratorName)
Value:
static void registratorName(); \
static bool BOOST_PP_CAT(add, registratorName)() { \
ipsdk::python::addPyWrapper(BOOST_PP_STRINGIZE(IPSDK_PROJECT_NAME), \
BOOST_PP_STRINGIZE(registratorName), \
registratorName); \
return true; \
} \
static bool BOOST_PP_CAT(g_bAdded, registratorName) = \
BOOST_PP_CAT(add, registratorName)(); \
static void registratorName() {
PYIPSDKBASE_API void addPyWrapper(const std::string &libraryFullName, const std::string &registratorName, const PyWrapperRegistrator &registrator)

macro allowing to define an IPSDK python module wrapper registrator