Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes

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.

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

Detailed Description

Definition at line 38 of file cfg_drive.h.


Constructor & Destructor Documentation

cfg_DriveType::cfg_DriveType (  ) 

Definition at line 55 of file cfg_drive.cpp.

                             {
    // Empty
}

cfg_DriveType::~cfg_DriveType (  )  [virtual]

Definition at line 61 of file cfg_drive.cpp.

References log_FUNC_m.

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

Definition at line 67 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.

  : m_threshold(0) {

    log_FUNC_A_m(cfg_DriveType, "type: \'" << a_type);

    // Converting medium type string to number
    m_type = ivd_MediaType(a_type);

    // Converting threshold
    val_RuleVec  rules;
    rules.Add(new val_Size(
        cfg_DriveType::m_threshold_c, val_Limit(cfg_KILOBYTE, cfg_TERABYTE), 0, 1), m_threshold);

    Convert(a_group, rules);
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from cfg_Base.

Definition at line 51 of file cfg_drive.h.

Definition at line 46 of file cfg_drive.h.

Referenced by cfg_DriveType().

const string cfg_DriveType::m_threshold_c [static]

Definition at line 48 of file cfg_drive.h.

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

Definition at line 45 of file cfg_drive.h.

Referenced by cfg_DriveType().


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