CMS 3D CMS Logo

List of all members | Public Member Functions
hitfit::Defaults Class Referenceabstract

Define an interface for getting parameter settings. More...

#include <Defaults.h>

Inheritance diagram for hitfit::Defaults:
hitfit::Defaults_Text

Public Member Functions

 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 ()
 

Detailed Description

Define an interface for getting parameter settings.

Definition at line 61 of file Defaults.h.

Constructor & Destructor Documentation

hitfit::Defaults::Defaults ( )
inline

Constructor.

Definition at line 72 of file Defaults.h.

72 {}
virtual hitfit::Defaults::~Defaults ( )
inlinevirtual

Destructor

Definition at line 77 of file Defaults.h.

References exists(), get_bool(), get_float(), get_int(), get_string(), dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.

77 {}

Member Function Documentation

virtual bool hitfit::Defaults::exists ( std::string  name) const
pure virtual

Test to see if parameter name exists.

Parameters
nameThe parameter name to be checked.
Return:
The parameter value.

Implemented in hitfit::Defaults_Text.

Referenced by ~Defaults().

virtual bool hitfit::Defaults::get_bool ( std::string  name) const
pure virtual

Get the value of name as boolean.

Parameters
nameThe parameter name.
Return:
The parameter value.

Implemented in hitfit::Defaults_Text.

Referenced by hitfit::Chisq_Constrainer_Args::Chisq_Constrainer_Args(), and ~Defaults().

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
nameThe parameter name.
Return:
The parameter value.

Implemented in hitfit::Defaults_Text.

Referenced by hitfit::Chisq_Constrainer_Args::Chisq_Constrainer_Args(), and ~Defaults().

virtual int hitfit::Defaults::get_int ( std::string  name) const
pure virtual

Get the value of name as integer.

Parameters
nameThe parameter name.
Return:
The parameter value.

Implemented in hitfit::Defaults_Text.

Referenced by hitfit::Chisq_Constrainer_Args::Chisq_Constrainer_Args(), and ~Defaults().

virtual std::string hitfit::Defaults::get_string ( std::string  name) const
pure virtual

Get the value of name as a string.

Parameters
nameThe parameter name.
Return:
The parameter value.

Implemented in hitfit::Defaults_Text.

Referenced by ~Defaults().