cfg_PMFileExpiration Class Reference
[Parser for config files; validation]

#include <cfg_pm.h>

Inheritance diagram for cfg_PMFileExpiration:

Inheritance graph
[legend]
Collaboration diagram for cfg_PMFileExpiration:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class is member of cfg_pmCfg.

Definition at line 93 of file cfg_pm.h.


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

Constructor & Destructor Documentation

cfg_PMFileExpiration::cfg_PMFileExpiration (  )  [inline]

Definition at line 96 of file cfg_pm.h.

00096                            {
00097     };

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

Definition at line 98 of file cfg_pm.h.

00098                                     {
00099     };

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

Definition at line 699 of file cfg_pm.cpp.

References val_RuleVec::Add(), val_Duration::Bind(), 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.

00699                                                                                         {
00700     static const string c_path("Path");
00701 
00702     this->name = a_name;
00703     val_RuleVec  rules;
00704     val_Duration converter("",
00705                            val_Limit( cfg_MIN_EXPIRATIONAGE, cfg_MAX_EXPIRATIONAGE ),
00706                            1,
00707                            1,
00708                            cfg_DEF_EXPIRATIONAGE);
00709     converter.Bind(this->m_fileAge);
00710     try {
00711         converter.Conv(a_name);
00712     }
00713     catch (ivd_Error e) {
00714         throw ivd_Error(ie_NOT_VALID,
00715                         string("Invalid file expiration age value: ") + name);
00716     }
00717     rules.Add(
00718         new val_PathList( c_path,
00719                           val_Limit( 0, cfg_MAX_PATHNAME ),
00720                           0),
00721         this->m_pathList
00722     );
00723 
00724     Convert(a_group, rules);
00725     CheckMandatory(rules);
00726 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 103 of file cfg_pm.h.

Referenced by cfg_PMFileExpiration().

Definition at line 104 of file cfg_pm.h.

Referenced by cfg_PMFileExpiration().

Reimplemented from cfg_Base.

Definition at line 108 of file cfg_pm.h.


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

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