#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include "CondCore/DBCommon/interface/ClassID.h"
Go to the source code of this file.
Namespaces | |
namespace | boost::python |
namespace | condPython |
Defines | |
#define | PYTHON_WRAPPER(_class, _name) |
Functions | |
template<typename Wrapper> | |
void | define () |
template<typename T> | |
void | condPython::defineWhat () |
#define PYTHON_WRAPPER | ( | _class, | |||
_name | ) |
Value:
namespace { typedef cond::PayLoadInspector< _class > PythonWrapper;} \ BOOST_PYTHON_MODULE(plugin ## _name ## PyInterface) { define<PythonWrapper>(); } \ namespace { const char * pluginName_="plugin" #_name "PyInterface"; }\ PYTHON_ID(PythonWrapper::Class, pluginName_)
Definition at line 43 of file InspectorPythonWrapper.h.
void @1883::define | ( | ) | [inline, static] |
Definition at line 20 of file InspectorPythonWrapper.h.
References dump(), extract(), root::plot(), summary, and values.
00020 { 00021 typedef typename Wrapper::Extractor Extractor; 00022 typedef typename Extractor::What What; 00023 00024 condPython::defineWhat<typename Extractor::Class>(); 00025 00026 class_<Extractor>("Extractor", init<>()) 00027 .def(init<What>()) 00028 .def("what",Extractor::what) 00029 .def("values",&Extractor::values, return_value_policy<copy_const_reference>()) 00030 ; 00031 00032 class_<Wrapper>("Object",init<>()) 00033 .def(init<cond::IOVElement>()) 00034 .def("dump",&Wrapper::dump) 00035 .def("plot",&Wrapper::plot) 00036 .def("summary",&Wrapper::summary) 00037 .def("extract",&Wrapper::extract) 00038 ; 00039 }