Public Member Functions | Private Attributes

val_DbgFlags Class Reference
[Parser for config files; validation]

#include <val.h>

Inheritance diagram for val_DbgFlags:
Inheritance graph
[legend]
Collaboration diagram for val_DbgFlags:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 val_DbgFlags (const string &a_name, const val_Limit a_limits, const UInt32_t a_minNumOfVal=1, const UInt32_t a_maxNumOfVal=6, const string &a_defaultStr="")
virtual ~val_DbgFlags ()
virtual string Validate (const string &a_strVal)

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 872 of file val.h.


Constructor & Destructor Documentation

val_DbgFlags::val_DbgFlags ( const string &  a_name,
const val_Limit  a_limits,
const UInt32_t  a_minNumOfVal = 1,
const UInt32_t  a_maxNumOfVal = 6,
const string &  a_defaultStr = "" 
)

Definition at line 1303 of file val.cpp.

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

}

val_DbgFlags::~val_DbgFlags (  )  [virtual]

Definition at line 1313 of file val.cpp.

                           {
}


Member Function Documentation

string val_DbgFlags::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 1316 of file val.cpp.

References ie_NOT_VALID, ivd_Error, and log_FUNC_m.

                                                   {
    log_FUNC_m(Validate);
    for (UInt32_t i(0); i < a_strVal.size(); i++){
        if ('I' != a_strVal[i] &&
            'N' != a_strVal[i] &&
            'C' != a_strVal[i] &&
            'T' != a_strVal[i] &&
            'E' != a_strVal[i] &&
            'V' != a_strVal[i] &&
            'S' != a_strVal[i] &&
            'O' != a_strVal[i] ){
                throw ivd_Error(ie_NOT_VALID,
                    string("Invalid Debug Flags. "\
                            "Possible dbgFlags are: I,N,C,T,E,V,O and S."));
            }
    }
    return a_strVal;
}


Member Data Documentation

Reimplemented from val_StrictString.

Definition at line 885 of file val.h.


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