cfg_DriveType Class Reference
[Parser for config files; validation]

#include <cfg_drive.h>

Inheritance diagram for cfg_DriveType:

Inheritance graph
[legend]
Collaboration diagram for cfg_DriveType:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 24 of file cfg_drive.h.


Public Member Functions

 cfg_DriveType ()
virtual ~cfg_DriveType ()
 cfg_DriveType (const string &a_type, const pf_Group &a_group)

Public Attributes

ivd_MediaType_e m_type
UInt64_t m_threshold

Static Public Attributes

static const string m_threshold_c

Private Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

cfg_DriveType::cfg_DriveType (  ) 

Definition at line 41 of file cfg_drive.cpp.

00041                              {
00042     // Empty
00043 }

cfg_DriveType::~cfg_DriveType (  )  [virtual]

Definition at line 47 of file cfg_drive.cpp.

References log_FUNC_m.

00047                               {
00048     log_FUNC_m(~cfg_DriveType);
00049 }

cfg_DriveType::cfg_DriveType ( const string &  a_type,
const pf_Group a_group 
)

Definition at line 53 of file cfg_drive.cpp.

References val_RuleVec::Add(), cfg_KILOBYTE, cfg_TERABYTE, cfg_Base::Convert(), ivd_MediaType(), log_FUNC_A_m, m_threshold, m_threshold_c, and m_type.

00054   : m_threshold(0) {
00055 
00056     log_FUNC_A_m(cfg_DriveType, "type: \'" << a_type);
00057 
00058     // Converting medium type string to number
00059     m_type = ivd_MediaType(a_type);
00060 
00061     // Converting threshold
00062     val_RuleVec  rules;
00063     rules.Add(new val_Size(
00064         cfg_DriveType::m_threshold_c, val_Limit(cfg_KILOBYTE, cfg_TERABYTE), 0, 1), m_threshold);
00065 
00066     Convert(a_group, rules);
00067 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 31 of file cfg_drive.h.

Referenced by cfg_DriveType().

Definition at line 32 of file cfg_drive.h.

Referenced by cfg_DriveType().

const string cfg_DriveType::m_threshold_c [static]

Definition at line 34 of file cfg_drive.h.

Referenced by cfg_DriveType(), and cfg_DriveVendor::cfg_DriveVendor().

Reimplemented from cfg_Base.

Definition at line 37 of file cfg_drive.h.


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

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