Belle II Software development
ModuleParamBase.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#include <framework/core/ModuleParamBase.h>
9
10#include <string>
11#include <utility>
12
13using namespace Belle2 ;
14
15ModuleParamBase::ModuleParamBase(std::string typeInfo, std::string description, bool force)
16 : m_typeInfo(std::move(typeInfo))
17 , m_description(std::move(description))
18 , m_forceInSteering(force)
19 , m_setInSteering(false)
20{
21}
22
24
25const std::string& ModuleParamBase::getTypeInfo() const
26{
27 return m_typeInfo;
28}
29
30const std::string& ModuleParamBase::getDescription() const
31{
32 return m_description;
33}
34
36{
37 return m_setInSteering;
38}
39
41{
42 return m_forceInSteering;
43}
ModuleParamBase(std::string typeInfo, std::string description, bool force)
Constructor.
const std::string & getDescription() const
Returns the description of the parameter.
virtual ~ModuleParamBase()
Destructor.
const std::string & getTypeInfo() const
Returns the type identifier of the parameter as string.
bool isForcedInSteering() const
Returns true if the parameter has to be set by the user in the steering file.
bool m_forceInSteering
If true the parameter has to be set by the user in the steering file.
std::string m_typeInfo
The type of the parameter stored as string.
bool m_setInSteering
True, if the parameter value was changed in the steering file.
std::string m_description
The (optional) description of the parameter.
bool isSetInSteering() const
Returns true if the parameter was set in the steering file.
Abstract base class for different kinds of events.
STL namespace.