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.


Detailed Description

Definition at line 858 of file val.h.


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

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

01295   : val_StrictString( a_name, a_limits, a_minNumOfVal, a_maxNumOfVal,  a_defaultStr ) {
01296 
01297 }

val_DbgFlags::~val_DbgFlags (  )  [virtual]

Definition at line 1299 of file val.cpp.

01299                            {
01300 }


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

References ie_NOT_VALID, ivd_Error, and log_FUNC_m.

01302                                                    {
01303     log_FUNC_m(Validate);
01304     for (UInt32_t i(0); i < a_strVal.size(); i++){
01305         if ('I' != a_strVal[i] &&
01306             'N' != a_strVal[i] &&
01307             'C' != a_strVal[i] &&
01308             'T' != a_strVal[i] &&
01309             'E' != a_strVal[i] &&
01310             'V' != a_strVal[i] &&
01311             'S' != a_strVal[i] &&
01312             'O' != a_strVal[i] ){
01313                 throw ivd_Error(ie_NOT_VALID,
01314                     string("Invalid Debug Flags. "\
01315                             "Possible dbgFlags are: I,N,C,T,E,V,O and S."));
01316             }
01317     }
01318     return a_strVal;
01319 }


Member Data Documentation

Reimplemented from val_StrictString.

Definition at line 871 of file val.h.


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

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