#include <CConfigurationParameter.h>
Inheritance diagram for CConfigurationParameter:
Public Member Functions | |
CConfigurationParameter (const string &keyword) | |
Value of parameter in string form. | |
virtual | ~CConfigurationParameter () |
CConfigurationParameter (const CConfigurationParameter &rhs) | |
CConfigurationParameter & | operator= (const CConfigurationParameter &rhs) |
int | operator== (const CConfigurationParameter &rhs) const |
int | operator!= (const CConfigurationParameter &rhs) const |
string | getSwitch () const |
string | getValue () const |
bool | Match (const string &rSwitch) |
virtual int | operator() (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *parameter) |
string | getOptionString () const |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pvalue)=0 |
virtual string | GetParameterFormat ()=0 |
CConfigurationParameter (const string &keyword) | |
Value of parameter in string form. | |
virtual | ~CConfigurationParameter () |
CConfigurationParameter (const CConfigurationParameter &rhs) | |
CConfigurationParameter & | operator= (const CConfigurationParameter &rhs) |
int | operator== (const CConfigurationParameter &rhs) const |
int | operator!= (const CConfigurationParameter &rhs) const |
string | getSwitch () const |
string | getValue () const |
bool | Match (const string &rSwitch) |
virtual int | operator() (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *parameter) |
string | getOptionString () const |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pvalue)=0 |
virtual string | GetParameterFormat ()=0 |
Protected Member Functions | |
void | setSwitch (const string am_sSwitch) |
void | setValue (const string am_sValue) |
void | setSwitch (const string am_sSwitch) |
void | setValue (const string am_sValue) |
Private Attributes | |
string | m_sSwitch |
string | m_sValue |
Switch keyword. e.g. -pedestal. |
Definition at line 315 of file CConfigurationParameter.h.
|
Value of parameter in string form. Constructor. The configuration parameter is constructed by assigning a keyword to the object. This keyword will be recognized by the Match member function. At this time we cannot define a default for the value since that needs to be correlated with any internal representation maintained by the derive classes, and virtual functions essentially don't work virtually in constructors. Definition at line 315 of file CConfigurationParameter.cpp. |
|
Destructor. No action is required. Since derived classes may need class specific destruction, we provide a virtual base class destructor as a placeholder to support destructor virtualization. Definition at line 329 of file CConfigurationParameter.cpp. |
|
Copy constructor. This constructor is used by the compiler to create temporaries (e.g. in pass by value to function situtations.
Definition at line 342 of file CConfigurationParameter.cpp. |
|
Value of parameter in string form.
|
|
|
|
|
|
|
|
Function: Returns the current value of the parameter value as a string. We delegate to getValue. Definition at line 452 of file CConfigurationParameter.cpp. References getValue(). |
|
Implemented in CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, CStringConfigParam, CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, and CStringConfigParam. |
|
Implemented in CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, CStringConfigParam, CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, and CStringConfigParam. |
|
Definition at line 341 of file include/CConfigurationParameter.h. References m_sSwitch. |
|
Definition at line 341 of file CConfigurationParameter.h. References m_sSwitch. Referenced by CStringArrayparam::SetValue(), CIntConfigParam::SetValue(), CIntArrayParam::SetValue(), and CBoolConfigParam::SetValue(). |
|
Reimplemented in CBoolConfigParam, and CBoolConfigParam. Definition at line 346 of file include/CConfigurationParameter.h. References m_sValue. |
|
Reimplemented in CBoolConfigParam, and CBoolConfigParam. Definition at line 346 of file CConfigurationParameter.h. References m_sValue. Referenced by getOptionString(), and CStringConfigParam::getOptionValue(). |
|
|
|
Function: Returns true if the input string matches m_sSwitch. typically intended to be used in detecting which of several configuration parameters should be parsed.
Definition at line 404 of file CConfigurationParameter.cpp. References m_sSwitch. Referenced by CDigitizerModule::Find(), and CConfigurableObject::Find(). |
|
Definition at line 333 of file include/CConfigurationParameter.h. References operator==(). |
|
Definition at line 333 of file CConfigurationParameter.h. References operator==(). |
|
|
|
Function: Called when our keyword matches an option keyword. The new value of the parameter is saved. This is a virtual member function. The action is as follows:
Definition at line 432 of file CConfigurationParameter.cpp. References m_sValue, SetValue(), and setValue(). |
|
|
|
Definition at line 364 of file CConfigurationParameter.cpp. References m_sSwitch, and m_sValue. Referenced by CStringConfigParam::operator=(), CIntConfigParam::operator=(), and CBoolConfigParam::operator=(). |
|
|
|
Determins if this is functionally equivalent to the rhs parameter. This will be true if all member data are equal.
Definition at line 385 of file CConfigurationParameter.cpp. References m_sSwitch, and m_sValue. Referenced by operator!=(), CStringConfigParam::operator==(), CStringArrayparam::operator==(), CIntConfigParam::operator==(), CIntArrayParam::operator==(), and CBoolConfigParam::operator==(). |
|
Definition at line 355 of file include/CConfigurationParameter.h. References m_sSwitch. |
|
Definition at line 355 of file CConfigurationParameter.h. References m_sSwitch. |
|
Implemented in CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, CStringConfigParam, CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, and CStringConfigParam. |
|
Definition at line 359 of file include/CConfigurationParameter.h. References m_sValue. |
|
Implemented in CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, CStringConfigParam, CBoolConfigParam, CIntArrayParam, CIntConfigParam, CStringArrayparam, and CStringConfigParam. Referenced by operator()(). |
|
Definition at line 359 of file CConfigurationParameter.h. References m_sValue. Referenced by CBoolConfigParam::CBoolConfigParam(), CIntConfigParam::CIntConfigParam(), operator()(), and CIntArrayParam::SetupStringValue(). |
|
Definition at line 320 of file include/CConfigurationParameter.h. Referenced by getSwitch(), Match(), operator=(), operator==(), and setSwitch(). |
|
Switch keyword. e.g. -pedestal.
Definition at line 321 of file include/CConfigurationParameter.h. Referenced by getValue(), operator()(), operator=(), operator==(), and setValue(). |