Belle II Software  release-05-02-19
ModuleParamInfoPython.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Andreas Moll *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <boost/python/class.hpp>
12 
13 #include <framework/core/ModuleParamInfoPython.h>
14 
15 using namespace std;
16 using namespace Belle2;
17 using namespace boost::python;
18 
19 void ModuleParamInfoPython::exposePythonAPI()
20 {
21  //Python class definition
22  boost::python::class_<ModuleParamInfoPython>("ModuleParamInfo",
23  "Read only class to provide information about a module parameter")
24  .def_readonly("name", &ModuleParamInfoPython::m_name,
25  "Name of the Parameter")
26  .def_readonly("type", &ModuleParamInfoPython::m_typeName,
27  "Type of the Parameter as string")
28  .def_readonly("default", &ModuleParamInfoPython::m_defaultValues,
29  "Default value of the parameter")
30  .def_readonly("values", &ModuleParamInfoPython::m_values,
31  "Currently set value")
32  .def_readonly("description", &ModuleParamInfoPython::m_description,
33  "Description of the parameter")
34  .def_readonly("forceInSteering", &ModuleParamInfoPython::m_forceInSteering,
35  "If True this parameter has to be set for the module to work")
36  .def_readonly("setInSteering", &ModuleParamInfoPython::m_setInSteering,
37  "If True this parameter has been set to a specific value")
38  ;
39 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19