Public Member Functions | Protected Member Functions | Protected Attributes

val_FileNamePattern Class Reference
[Parser for config files; validation]

#include <val.h>

Inheritance diagram for val_FileNamePattern:
Inheritance graph
Collaboration diagram for val_FileNamePattern:
Collaboration graph

List of all members.

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


Detailed Description

Definition at line 1089 of file val.h.

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 1091 of file val.h.

    : val_Path(a_name, a_limits, a_minNumOfVal, a_maxNumOfVal) {
        // Empty

Member Function Documentation

string val_FileNamePattern::Validate ( const string &  a_strVal  )  [protected, virtual]
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 1338 of file val.cpp.

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

    if (cmn_IsPatternValid(a_strVal) == false) {
        ostringstream oss;
        oss << "Invalid file name pattern format. Variable:" << m_name
            << " = " << a_strVal;
        throw ivd_Error(ie_NOT_VALID, oss.str());
    return a_strVal;

Here is the call graph for this function:

Member Data Documentation

Reimplemented from val_Path.

Definition at line 1103 of file val.h.

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