#include <val.h>


Definition at line 842 of file val.h.
Public Member Functions | |
| val_DbgLevel (const string &a_name, const val_Limit a_limits, const UInt32_t a_minNumOfVal=1, const UInt32_t a_maxNumOfVal=1, const string &a_defaultStr="N") | |
| virtual | ~val_DbgLevel () |
| virtual string | Validate (const string &a_strVal) |
Private Attributes | |
| log_CLASSID_m | |
| val_DbgLevel::val_DbgLevel | ( | const string & | a_name, | |
| const val_Limit | a_limits, | |||
| const UInt32_t | a_minNumOfVal = 1, |
|||
| const UInt32_t | a_maxNumOfVal = 1, |
|||
| const string & | a_defaultStr = "N" | |||
| ) |
Definition at line 1257 of file val.cpp.
01263 : val_StrictString( a_name, a_limits, a_minNumOfVal, a_maxNumOfVal, a_defaultStr ){ 01264 01265 }
| string val_DbgLevel::Validate | ( | const string & | a_strVal | ) | [virtual] |
Reimplemented from val_Value.
Definition at line 1270 of file val.cpp.
References ie_NOT_VALID, ivd_Error, and log_FUNC_m.
01270 { 01271 log_FUNC_m(Validate); 01272 //check just one char val_DbgLevel should be 1 01273 if (a_strVal.size() != 1){ 01274 throw ivd_Error(ie_NOT_VALID, 01275 string("Invalid Debug Level. Possible dbgLevels are: N, L, D and A ")); 01276 } 01277 if ( a_strVal.compare(0,1,"N") != 0 && 01278 a_strVal.compare(0,1,"L") != 0 && 01279 a_strVal.compare(0,1,"D") != 0 && 01280 a_strVal.compare(0,1,"A") != 0 ){ 01281 throw ivd_Error(ie_NOT_VALID, 01282 string("Invalid Debug Level. Possible dbgLevels are: N, L, D and A ")); 01283 01284 } 01285 return a_strVal; 01286 }
val_DbgLevel::log_CLASSID_m [private] |
1.5.6