val_FileNamePattern Class Reference
[Parser for config files; validation]

#include <val.h>

Inheritance diagram for val_FileNamePattern:

Inheritance graph
[legend]
Collaboration diagram for val_FileNamePattern:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 1075 of file val.h.


Public Member Functions

 val_FileNamePattern (const string &a_name, const val_Limit a_limits, const UInt32_t a_minNumOfVal=1, const UInt32_t a_maxNumOfVal=cfg_INFINITE)

Protected Member Functions

virtual string Validate (const string &a_strVal)

Protected Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

val_FileNamePattern::val_FileNamePattern ( const string &  a_name,
const val_Limit  a_limits,
const UInt32_t  a_minNumOfVal = 1,
const UInt32_t  a_maxNumOfVal = cfg_INFINITE 
) [inline]

Definition at line 1077 of file val.h.

01082     : val_Path(a_name, a_limits, a_minNumOfVal, a_maxNumOfVal) {
01083         // Empty
01084     };


Member Function Documentation

string val_FileNamePattern::Validate ( const string &  a_strVal  )  [protected, virtual]

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

Reimplemented from val_Path.

Definition at line 1324 of file val.cpp.

References cmn_IsPatternValid(), ie_NOT_VALID, ivd_Error, and val_Value::m_name.

01324                                                            {
01325     if (cmn_IsPatternValid(a_strVal) == false) {
01326         ostringstream oss;
01327         oss << "Invalid file name pattern format. Variable:" << m_name
01328             << " = " << a_strVal;
01329         throw ivd_Error(ie_NOT_VALID, oss.str());
01330     }
01331     return a_strVal;
01332 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from val_Path.

Definition at line 1089 of file val.h.


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

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