#include <CIntConfigParam.h>
Inheritance diagram for CIntConfigParam:
Public Member Functions | |
CIntConfigParam (const string &rName, int nDefault=0) | |
CIntConfigParam (const string &rName, int nLow, int nHigh, int nDefault=0) | |
virtual | ~CIntConfigParam () |
CIntConfigParam (const CIntConfigParam &aCIntConfigParam) | |
CIntConfigParam & | operator= (const CIntConfigParam &aCIntConfigParam) |
int | operator== (const CIntConfigParam &aCIntConfigParam) const |
int | operator!= (const CIntConfigParam &rhs) const |
bool | getCheckrange () const |
int | getLow () const |
int | getHigh () const |
int | getOptionValue () |
Parameter value as int. | |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pValue) |
Parse/validate. | |
virtual string | GetParameterFormat () |
void | setRange (int nLo, int nHi) |
CIntConfigParam (const string &rName, int nDefault=0) | |
CIntConfigParam (const string &rName, int nLow, int nHigh, int nDefault=0) | |
virtual | ~CIntConfigParam () |
CIntConfigParam (const CIntConfigParam &aCIntConfigParam) | |
CIntConfigParam & | operator= (const CIntConfigParam &aCIntConfigParam) |
int | operator== (const CIntConfigParam &aCIntConfigParam) const |
int | operator!= (const CIntConfigParam &rhs) const |
bool | getCheckrange () const |
int | getLow () const |
int | getHigh () const |
int | getOptionValue () |
Parameter value as int. | |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pValue) |
Parse/validate. | |
virtual string | GetParameterFormat () |
void | setRange (int nLo, int nHi) |
Protected Member Functions | |
void | setCheckrange (const bool am_fCheckrange) |
void | setLow (const int am_nLow) |
void | setHigh (const int am_nHigh) |
void | setCheckrange (const bool am_fCheckrange) |
void | setLow (const int am_nLow) |
void | setHigh (const int am_nHigh) |
Private Attributes | |
bool | m_fCheckrange |
True if value has range limits. | |
int | m_nLow |
Lowest allowed value for parameter. | |
int | m_nHigh |
Highest allowed value for parameter. | |
int | m_nValue |
Current parameter value as int. |
-vsn 5
Definition at line 300 of file CIntConfigParam.h.
|
Constructor. Creates an integer configuration parameter. This version of the constructor creates a parameter that is not range checked.
Definition at line 306 of file CIntConfigParam.cpp. References CConfigurationParameter::setValue(). |
|
Constructor: This version of the construtor creates a range checked parameter. Range checked parameters refuse to set themselves outside of the range [m_nLow, m_nHigh].
Definition at line 331 of file CIntConfigParam.cpp. |
|
Destructor Definition at line 345 of file CIntConfigParam.cpp. |
|
Copy constructor. Definition at line 353 of file CIntConfigParam.cpp. |
|
|
|
|
|
|
|
|
|
Definition at line 337 of file include/CIntConfigParam.h. References m_fCheckrange. |
|
Definition at line 337 of file CIntConfigParam.h. References m_fCheckrange. |
|
Definition at line 345 of file include/CIntConfigParam.h. References m_nHigh. |
|
Definition at line 345 of file CIntConfigParam.h. References m_nHigh. |
|
Definition at line 341 of file include/CIntConfigParam.h. References m_nLow. |
|
Definition at line 341 of file CIntConfigParam.h. References m_nLow. |
|
Parameter value as int.
|
|
Parameter value as int. Returns the integer value of the parameter. Note that construction will establish a well defined default parameter value.
Definition at line 411 of file CIntConfigParam.cpp. References m_nValue. Referenced by CReadOrder::Initialize(), CCAENV830Module::Initialize(), CCAENV792::Initialize(), CCAENV775::Initialize(), and CCAENModule::Initialize(). |
|
Implements CConfigurationParameter. |
|
Implements CConfigurationParameter. Definition at line 479 of file CIntConfigParam.cpp. |
|
Definition at line 330 of file include/CIntConfigParam.h. References operator==(). |
|
Definition at line 330 of file CIntConfigParam.h. References operator==(). |
|
|
|
Definition at line 370 of file CIntConfigParam.cpp. References m_fCheckrange, m_nHigh, m_nLow, m_nValue, and CConfigurationParameter::operator=(). |
|
|
|
Equality comparison. Objects are equal iff all members are equal.
Definition at line 391 of file CIntConfigParam.cpp. References m_fCheckrange, m_nHigh, m_nLow, m_nValue, and CConfigurationParameter::operator==(). Referenced by operator!=(). |
|
Definition at line 355 of file include/CIntConfigParam.h. References m_fCheckrange. |
|
Definition at line 355 of file CIntConfigParam.h. References m_fCheckrange. |
|
Definition at line 363 of file include/CIntConfigParam.h. References m_nHigh. |
|
Definition at line 363 of file CIntConfigParam.h. References m_nHigh. |
|
Definition at line 359 of file include/CIntConfigParam.h. References m_nLow. |
|
Definition at line 359 of file CIntConfigParam.h. References m_nLow. |
|
Definition at line 378 of file include/CIntConfigParam.h. References m_fCheckrange, m_nHigh, and m_nLow. |
|
Definition at line 378 of file CIntConfigParam.h. References m_fCheckrange, m_nHigh, and m_nLow. Referenced by CCAENModule::CCAENModule(), CCAENV775::CCAENV775(), CCAENV792::CCAENV792(), CCAENV830Module::CCAENV830Module(), and CReadOrder::CReadOrder(). |
|
Parse/validate.
Implements CConfigurationParameter. |
|
Parse/validate. Sets the parameter value according to the next parameter on the command line. Errors can result if:
Implements CConfigurationParameter. Definition at line 439 of file CIntConfigParam.cpp. References CConfigurationParameter::getSwitch(), m_fCheckrange, m_nHigh, m_nLow, and m_nValue. |
|
True if value has range limits.
Definition at line 305 of file include/CIntConfigParam.h. Referenced by getCheckrange(), operator=(), operator==(), setCheckrange(), setRange(), and SetValue(). |
|
Highest allowed value for parameter.
Definition at line 307 of file include/CIntConfigParam.h. Referenced by getHigh(), operator=(), operator==(), setHigh(), setRange(), and SetValue(). |
|
Lowest allowed value for parameter.
Definition at line 306 of file include/CIntConfigParam.h. Referenced by getLow(), operator=(), operator==(), setLow(), setRange(), and SetValue(). |
|
Current parameter value as int.
Definition at line 308 of file include/CIntConfigParam.h. Referenced by getOptionValue(), operator=(), operator==(), and SetValue(). |