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.


Detailed Description

Definition at line 22 of file cfg_library.h.


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

Constructor & Destructor Documentation

cfg_Library::cfg_Library (  )  [inline]

Definition at line 24 of file cfg_library.h.

00024 {};

cfg_Library::~cfg_Library (  )  [virtual]

Definition at line 57 of file cfg_library.cpp.

00057                           {
00058 }

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

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

00035     : m_vendorID(a_group.grpType),
00036       m_productID(a_prodID) {
00037 
00038     log_FUNC_A_m(cfg_Library,
00039         "vendor: \'" << m_vendorID << "\' product: \'" << m_productID << "\'");
00040 
00041     static const string c_bcReader  ("BarcodeReader");
00042     static const string c_eject     ("EjectMediumOnUnload");
00043 
00044     val_RuleVec  rules;
00045     rules.Add(new val_Bool(c_bcReader, val_Limit(0, UINT_MAX), 1, 1), m_bcReader);
00046     rules.Add(new val_Bool(c_eject, val_Limit(0, UINT_MAX), 1, 1), m_eject);
00047 
00048     Convert(a_group, rules);
00049     CheckMandatory(rules);
00050 
00051     log_DBG_m(dbg_NORM,
00052         "BCReader: " << m_bcReader << " Eject: " << m_eject);
00053 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 29 of file cfg_library.h.

Referenced by cfg_Library().

Definition at line 30 of file cfg_library.h.

Referenced by cfg_Library().

Definition at line 31 of file cfg_library.h.

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

Definition at line 32 of file cfg_library.h.

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

Reimplemented from cfg_Base.

Definition at line 35 of file cfg_library.h.


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

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