Public Member Functions | Public Attributes | Private Attributes

cfg_PMFileExpiration Class Reference
[Parser for config files; validation]

This class is member of cfg_pmCfg. More...

#include <cfg_pm.h>

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

List of all members.

Public Member Functions

 cfg_PMFileExpiration ()
virtual ~cfg_PMFileExpiration ()
 cfg_PMFileExpiration (const string &a_name, const pf_Group &a_group)

Public Attributes

string name
UInt32_t m_fileAge
vector< val_Element< string > > m_pathList

Private Attributes

 log_CLASSID_m

Detailed Description

This class is member of cfg_pmCfg.

Definition at line 113 of file cfg_pm.h.


Constructor & Destructor Documentation

cfg_PMFileExpiration::cfg_PMFileExpiration (  )  [inline]

Definition at line 116 of file cfg_pm.h.

                           {
    };

virtual cfg_PMFileExpiration::~cfg_PMFileExpiration (  )  [inline, virtual]

Definition at line 118 of file cfg_pm.h.

                                    {
    };

cfg_PMFileExpiration::cfg_PMFileExpiration ( const string &  a_name,
const pf_Group a_group 
)

Definition at line 751 of file cfg_pm.cpp.

References val_RuleVec::Add(), val_Duration::Bind(), c_path(), cfg_DEF_EXPIRATIONAGE, cfg_MAX_EXPIRATIONAGE, cfg_MAX_PATHNAME, cfg_MIN_EXPIRATIONAGE, cfg_Base::CheckMandatory(), val_Value::Conv(), cfg_Base::Convert(), ie_NOT_VALID, ivd_Error, m_fileAge, m_pathList, and name.

                                                                                        {
    static const string c_path("Path");

    this->name = a_name;
    val_RuleVec  rules;
    val_Duration converter("",
                           val_Limit( cfg_MIN_EXPIRATIONAGE, cfg_MAX_EXPIRATIONAGE ),
                           1,
                           1,
                           cfg_DEF_EXPIRATIONAGE);
    converter.Bind(this->m_fileAge);
    try {
        converter.Conv(a_name);
    }
    catch (ivd_Error e) {
        throw ivd_Error(ie_NOT_VALID,
                        string("Invalid file expiration age value: ") + name);
    }
    rules.Add(
        new val_PathList( c_path,
                          val_Limit( 0, cfg_MAX_PATHNAME ),
                          0),
        this->m_pathList
    );

    Convert(a_group, rules);
    CheckMandatory(rules);
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from cfg_Base.

Definition at line 128 of file cfg_pm.h.

Definition at line 124 of file cfg_pm.h.

Referenced by cfg_PMFileExpiration().

Definition at line 123 of file cfg_pm.h.

Referenced by cfg_PMFileExpiration().


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