IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
PythonMacros.h
Go to the documentation of this file.
1 // PythonMacros.h:
3 // ---------------
4 //
14 
15 #ifndef __PYIPSDKBASE_PYTHONMACROS_H__
16 #define __PYIPSDKBASE_PYTHONMACROS_H__
17 
20 #include <boost/python/def.hpp>
21 #include <boost/python/return_value_policy.hpp>
22 #include <boost/python/copy_const_reference.hpp>
23 #include <boost/python/return_internal_reference.hpp>
24 #include <boost/python/class.hpp>
25 #include <boost/python/init.hpp>
26 #include <boost/python/self.hpp>
27 #include <boost/python/operators.hpp>
28 #include <boost/python/register_ptr_to_python.hpp>
29 #include <boost/python/overloads.hpp>
30 #include <boost/preprocessor/stringize.hpp>
31 #include <boost/preprocessor/cat.hpp>
32 
35 
38 #define IPSDK_PYTHON_MODULE_WRAPPER_REGISTRATOR(registratorName) \
39  static void registratorName(); \
40  static bool BOOST_PP_CAT(add, registratorName)() { \
41  ipsdk::python::addPyWrapper(BOOST_PP_STRINGIZE(IPSDK_PROJECT_NAME), \
42  BOOST_PP_STRINGIZE(registratorName), \
43  registratorName); \
44  return true; \
45  } \
46  static bool BOOST_PP_CAT(g_bAdded, registratorName) = \
47  BOOST_PP_CAT(add, registratorName)(); \
48  static void registratorName() {
49 
52 
53 #endif // __PYIPSDKBASE_PYTHONMACROS_H__
Macros allowing to handle ipsdk enumerate to python wrapping.
Utility functions for IPSDK python wrapping.