Public Member Functions | Public Attributes | Private Attributes

cfg_RMHost Class Reference
[Parser for config files; validation]

This class is member of cfg_RMDrive. More...

#include <cfg_rm.h>

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

List of all members.

Public Member Functions

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

Public Attributes

string name
string controlDevice

Private Attributes

 log_CLASSID_m

Detailed Description

This class is member of cfg_RMDrive.

Definition at line 36 of file cfg_rm.h.


Constructor & Destructor Documentation

cfg_RMHost::cfg_RMHost (  )  [inline]

Definition at line 38 of file cfg_rm.h.

{};

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

Definition at line 218 of file cfg_rmdrive.cpp.

References val_RuleVec::Add(), val_String::Bind(), cfg_MAX_CTRLDEVICE, cfg_MAX_HOSTNAME, cfg_MIN_CTRLDEVICE, cfg_MIN_HOSTNAME, cfg_Base::CheckMandatory(), controlDevice, val_Value::Conv(), cfg_Base::Convert(), pf_Group::grpType, and name.

                                                                    {

    static const string c_controlDevice ("ControlDevice");

    val_Hostname converter(a_group.grpType,
                           val_Limit(cfg_MIN_HOSTNAME, cfg_MAX_HOSTNAME));
    converter.Bind(this->name);
    converter.Conv(a_name);

    val_RuleVec  rules;

    rules.Add(
        new val_StrictString(c_controlDevice,
                       val_Limit(cfg_MIN_CTRLDEVICE, cfg_MAX_CTRLDEVICE),
                       1,
                       1),
        this->controlDevice);

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

Here is the call graph for this function:

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

Definition at line 41 of file cfg_rm.h.

{};


Member Data Documentation

Definition at line 44 of file cfg_rm.h.

Referenced by cfg_RMHost().

Reimplemented from cfg_Base.

Definition at line 47 of file cfg_rm.h.

Definition at line 41 of file cfg_rm.h.

Referenced by cfg_RMHost().


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