Define an interface for getting parameter settings.
More...
#include <Defaults.h>
|
| Defaults () |
|
virtual bool | exists (std::string name) const =0 |
|
virtual bool | get_bool (std::string name) const =0 |
|
virtual double | get_float (std::string name) const =0 |
|
virtual int | get_int (std::string name) const =0 |
|
virtual std::string | get_string (std::string name) const =0 |
|
virtual | ~Defaults () |
|
Define an interface for getting parameter settings.
Definition at line 61 of file Defaults.h.
hitfit::Defaults::Defaults |
( |
| ) |
|
|
inline |
virtual hitfit::Defaults::~Defaults |
( |
| ) |
|
|
inlinevirtual |
virtual bool hitfit::Defaults::exists |
( |
std::string |
name | ) |
const |
|
pure virtual |
Test to see if parameter name exists.
- Parameters
-
name | The parameter name to be checked. |
- Return:
- The parameter value.
Implemented in hitfit::Defaults_Text.
virtual bool hitfit::Defaults::get_bool |
( |
std::string |
name | ) |
const |
|
pure virtual |
Get the value of name as boolean.
- Parameters
-
- Return:
- The parameter value.
Implemented in hitfit::Defaults_Text.
virtual double hitfit::Defaults::get_float |
( |
std::string |
name | ) |
const |
|
pure virtual |
Get the value of name as a floating-point of type double.
- Parameters
-
- Return:
- The parameter value.
Implemented in hitfit::Defaults_Text.
virtual int hitfit::Defaults::get_int |
( |
std::string |
name | ) |
const |
|
pure virtual |
Get the value of name as integer.
- Parameters
-
- Return:
- The parameter value.
Implemented in hitfit::Defaults_Text.
virtual std::string hitfit::Defaults::get_string |
( |
std::string |
name | ) |
const |
|
pure virtual |
Get the value of name as a string.
- Parameters
-
- Return:
- The parameter value.
Implemented in hitfit::Defaults_Text.