41 template<
typename DATA_TYPE>
42 void registerParameter(
const std::string&
string);
48 virtual int processArguments(
int argc,
char** argv);
53 virtual bool processParameters(
const std::map<std::string, std::string>& parameterValuePairs);
57 virtual bool hasParameter(
const std::string& parameterName)
const;
60 virtual bool isParameterSet(
const std::string& parameterName)
const;
64 virtual bool loadParameters(
const std::string& fileName);
68 virtual bool saveParameters(
const std::string& filename)
const;
71 template<
typename DATA_TYPE>
72 void setParameter(
const std::string& parameterName, DATA_TYPE parameterValue);
75 template<
typename DATA_TYPE>
76 DATA_TYPE parameter(
const std::string& parameterName)
const;
80 template<
typename DATA_TYPE>
81 DATA_TYPE parameterOr(
const std::string& parameterName, DATA_TYPE defaultValue)
const;
85 virtual void setUnitMultiplier(
const std::string& parameterName,
float multiplier);
88 virtual float unitMultiplier(
const std::string& parameterName)
const;
90 virtual std::string helpString()
const;
102 template<
typename DATA_TYPE>
105 if (hasParameter(parameterName))
107 return parameter<DATA_TYPE>(parameterName);
UInt64 ConfigHandle
Definition: configuration.h:19
DATA_TYPE parameterOr(const std::string ¶meterName, DATA_TYPE defaultValue) const
Get the parameter value with the given name as the expected type Supplied default value is used if pa...
Definition: configuration.h:103
unsigned long long UInt64
Definition: dataTypes.h:46
ConfigHandle handle() const
Definition: configuration.h:92
The configuration object parses the command line and loads a configuration file to provide the user c...
Definition: configuration.h:23
ConfigHandle myHandle
Definition: configuration.h:95