Public Member Functions | Private Attributes

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.

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

Detailed Description

Definition at line 856 of file val.h.


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 1271 of file val.cpp.

  : val_StrictString( a_name, a_limits, a_minNumOfVal, a_maxNumOfVal,  a_defaultStr ){

}

val_DbgLevel::~val_DbgLevel (  )  [virtual]

Definition at line 1281 of file val.cpp.

                           {
}


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 1284 of file val.cpp.

References ie_NOT_VALID, ivd_Error, and log_FUNC_m.

                                                   {
    log_FUNC_m(Validate);
    //check just one char val_DbgLevel should be 1
    if (a_strVal.size() != 1){
        throw ivd_Error(ie_NOT_VALID,
            string("Invalid Debug Level. Possible dbgLevels are: N, L, D and A "));
    }
    if (    a_strVal.compare(0,1,"N") != 0 &&
            a_strVal.compare(0,1,"L") != 0 &&
            a_strVal.compare(0,1,"D") != 0 &&
            a_strVal.compare(0,1,"A") != 0 ){
        throw ivd_Error(ie_NOT_VALID,
                    string("Invalid Debug Level. Possible dbgLevels are: N, L, D and A "));

    }
    return a_strVal;
}


Member Data Documentation

Reimplemented from val_StrictString.

Definition at line 869 of file val.h.


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