Public Member Functions | Public Attributes | Private Attributes

cfg_Library Class Reference
[Parser for config files; validation]

#include <cfg_library.h>

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

List of all members.

Public Member Functions

 cfg_Library ()
virtual ~cfg_Library ()
 cfg_Library (const string &a_prodID, const pf_Group &a_group)

Public Attributes

string m_vendorID
string m_productID
bool m_bcReader
bool m_eject

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 36 of file cfg_library.h.


Constructor & Destructor Documentation

cfg_Library::cfg_Library (  )  [inline]

Definition at line 38 of file cfg_library.h.

{};

cfg_Library::~cfg_Library (  )  [virtual]

Definition at line 71 of file cfg_library.cpp.

                          {
}

cfg_Library::cfg_Library ( const string &  a_prodID,
const pf_Group a_group 
)

Definition at line 48 of file cfg_library.cpp.

References val_RuleVec::Add(), cfg_Base::CheckMandatory(), cfg_Base::Convert(), dbg_NORM, log_DBG_m, log_FUNC_A_m, m_bcReader, m_eject, m_productID, and m_vendorID.

    : m_vendorID(a_group.grpType),
      m_productID(a_prodID) {

    log_FUNC_A_m(cfg_Library,
        "vendor: \'" << m_vendorID << "\' product: \'" << m_productID << "\'");

    static const string c_bcReader  ("BarcodeReader");
    static const string c_eject     ("EjectMediumOnUnload");

    val_RuleVec  rules;
    rules.Add(new val_Bool(c_bcReader, val_Limit(0, UINT_MAX), 1, 1), m_bcReader);
    rules.Add(new val_Bool(c_eject, val_Limit(0, UINT_MAX), 1, 1), m_eject);

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

    log_DBG_m(dbg_NORM,
        "BCReader: " << m_bcReader << " Eject: " << m_eject);
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from cfg_Base.

Definition at line 49 of file cfg_library.h.

Definition at line 45 of file cfg_library.h.

Referenced by cfg_Library(), and la_SCSILibrary::Open().

Definition at line 46 of file cfg_library.h.

Referenced by cfg_Library(), and la_SCSILibrary::Open().

Definition at line 44 of file cfg_library.h.

Referenced by cfg_Library().

Definition at line 43 of file cfg_library.h.

Referenced by cfg_Library().


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