Belle II Software  release-08-01-10
ModuleParamInfoPython.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #include <boost/python/class.hpp>
10 
11 #include <framework/core/ModuleParamInfoPython.h>
12 
13 using namespace std;
14 using namespace Belle2;
15 using namespace boost::python;
16 
17 void ModuleParamInfoPython::exposePythonAPI()
18 {
19  //Python class definition
20  boost::python::class_<ModuleParamInfoPython>("ModuleParamInfo",
21  "Read only class to provide information about a module parameter")
22  .def_readonly("name", &ModuleParamInfoPython::m_name,
23  "Name of the Parameter")
24  .def_readonly("type", &ModuleParamInfoPython::m_typeName,
25  "Type of the Parameter as string")
26  .def_readonly("default", &ModuleParamInfoPython::m_defaultValues,
27  "Default value of the parameter")
28  .def_readonly("values", &ModuleParamInfoPython::m_values,
29  "Currently set value")
30  .def_readonly("description", &ModuleParamInfoPython::m_description,
31  "Description of the parameter")
32  .def_readonly("forceInSteering", &ModuleParamInfoPython::m_forceInSteering,
33  "If True this parameter has to be set for the module to work")
34  .def_readonly("setInSteering", &ModuleParamInfoPython::m_setInSteering,
35  "If True this parameter has been set to a specific value")
36  ;
37 }
Abstract base class for different kinds of events.