val_DbgLevel Class Reference
[Parser for config files; validation]

#include <val.h>

Inheritance diagram for val_DbgLevel:

Inheritance graph
[legend]
Collaboration diagram for val_DbgLevel:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

Constructor & Destructor Documentation

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 }

val_DbgLevel::~val_DbgLevel (  )  [virtual]

Definition at line 1267 of file val.cpp.

01267                            {
01268 }


Member Function Documentation

string val_DbgLevel::Validate ( const string &  a_strVal  )  [virtual]

Warning:
Validate() must return a string which is then used in Assign(). By default the argument is just returned.

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 }


Member Data Documentation

Reimplemented from val_StrictString.

Definition at line 855 of file val.h.


The documentation for this class was generated from the following files:

Generated on Mon Feb 27 19:51:29 2012 for OPENARCHIVE by  doxygen 1.5.6