39 #include <OpenMS/OpenMSConfig.h>
45 class MetaInfoInterface;
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
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:166
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:183
Param defaults_
Container for default parameters. This member should be filled in the constructor of derived classes!
Definition: DefaultParamHandler.h:173
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:192
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:200
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:180
const Param & getDefaults() const
Non-mutable access to the default parameters.
virtual DefaultParamHandler & operator=(const DefaultParamHandler &rhs)
Assignment operator.
DefaultParamHandler(const String &name)
Constructor with name that is displayed in error messages.
Management and storage of parameters / INI files.
Definition: Param.h:70
A more convenient string class.
Definition: String.h:60
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47