13 #include <OpenMS/OpenMSConfig.h>
18 class MetaInfoInterface;
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
virtual ~DefaultParamHandler()
Destructor.
virtual bool operator==(const DefaultParamHandler &rhs) const
Equality operator.
const Param & getParameters() const
Non-mutable access to the parameters.
void defaultsToParam_()
Updates the parameters after the defaults have been set in the constructor.
Param param_
Container for current parameters.
Definition: DefaultParamHandler.h:139
const std::vector< String > & getSubsections() const
Non-mutable access to the registered subsections.
String error_name_
Name that is displayed in error messages during the parameter checking.
Definition: DefaultParamHandler.h:156
DefaultParamHandler & operator=(const DefaultParamHandler &rhs)
Assignment operator.
Param defaults_
Container for default parameters. This member should be filled in the constructor of derived classes!
Definition: DefaultParamHandler.h:146
virtual void updateMembers_()
This method is used to update extra member variables at the end of the setParameters() method.
void setName(const String &name)
Mutable access to the name.
DefaultParamHandler()
Hidden default C'tor (class name parameter is required!)
bool check_defaults_
If this member is set to false no checking if parameters in done;.
Definition: DefaultParamHandler.h:165
static void writeParametersToMetaValues(const Param &write_this, MetaInfoInterface &write_here, const String &key_prefix="")
Writes all parameters to meta values.
DefaultParamHandler(const DefaultParamHandler &rhs)
Copy constructor.
const String & getName() const
Non-mutable access to the name.
bool warn_empty_defaults_
If this member is set to false no warning is emitted when defaults are empty;.
Definition: DefaultParamHandler.h:173
void setParameters(const Param ¶m)
Sets the parameters.
std::vector< String > subsections_
Container for registered subsections. This member should be filled in the constructor of derived clas...
Definition: DefaultParamHandler.h:153
const Param & getDefaults() const
Non-mutable access to the default parameters.
DefaultParamHandler(const String &name)
Constructor with name that is displayed in error messages.
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19