Go to the documentation of this file. 1 #include <boost/python.hpp> 3 #define PPCAT_NX(A, B) A ## B 4 #define PPCAT(A, B) PPCAT_NX(A, B) 5 #define STRINGIZE_NX(A) #A 6 #define STRINGIZE(A) STRINGIZE_NX(A) 8 #define PAYLOAD_INSPECTOR_MODULE( PAYLOAD_TYPENAME )\ 9 BOOST_PYTHON_MODULE( plugin ## PAYLOAD_TYPENAME ## _PayloadInspector ) 11 #define PAYLOAD_INSPECTOR_CLASS( CLASS_NAME ) \ 12 boost::python::class_< CLASS_NAME, boost::python::bases<cond::payloadInspector::PlotBase> >( STRINGIZE(PPCAT(plot_,CLASS_NAME)), boost::python::init<>()) \ 13 .def("process",&cond::payloadInspector::PlotBase::process ) \ 14 .def("payloadType",&cond::payloadInspector::PlotBase::payloadType ) \ 15 .def("title",&cond::payloadInspector::PlotBase::title ) \ 16 .def("isSingleIov",&cond::payloadInspector::PlotBase::isSingleIov ) \ 17 .def("data",&cond::payloadInspector::PlotBase::data ) \