CTwoLayerRegistry Class Reference
[Application Registry]

Search Toolkit Book for CTwoLayerRegistry

#include <ncbireg.hpp>

Inheritance diagram for CTwoLayerRegistry:

Inheritance graph
[legend]
Collaboration diagram for CTwoLayerRegistry:

Collaboration graph
[legend]
List of all members.

Detailed Description

CTwoLayerRegistry --.

Limited to two direct layers (transient above persistent), but supports modification.

See also:
CCompoundRegistry

Definition at line 602 of file ncbireg.hpp.

Public Member Functions

 CTwoLayerRegistry (IRWRegistry *persistent=0, TFlags flags=0)
 Constructor.

Protected Member Functions

bool x_Empty (TFlags flags) const
bool x_Modified (TFlags flags) const
void x_SetModifiedFlag (bool modified, TFlags flags)
const string & x_Get (const string &section, const string &name, TFlags flags) const
bool x_HasEntry (const string &section, const string &name, TFlags flags) const
const string & x_GetComment (const string &section, const string &name, TFlags flags) const
void x_Enumerate (const string &section, list< string > &entries, TFlags flags) const
void x_ChildLockAction (FLockAction action)
void x_Clear (TFlags flags)
 Called locked, like the virtual methods inherited from IRegistry.
bool x_Set (const string &section, const string &name, const string &value, TFlags flags, const string &comment)
bool x_SetComment (const string &comment, const string &section, const string &name, TFlags flags)

Private Types

typedef CRef< IRWRegistryCRegRef

Private Attributes

CRegRef m_Transient
CRegRef m_Persistent


Member Typedef Documentation

typedef CRef<IRWRegistry> CTwoLayerRegistry::CRegRef [private]
 

Definition at line 636 of file ncbireg.hpp.


Constructor & Destructor Documentation

CTwoLayerRegistry::CTwoLayerRegistry IRWRegistry persistent = 0,
TFlags  flags = 0
 

Constructor.

The transient layer is always a new memory registry, and so is the persistent layer by default.

Definition at line 1148 of file ncbireg.cpp.


Member Function Documentation

void CTwoLayerRegistry::x_ChildLockAction FLockAction  action  )  [protected]
 

Definition at line 1258 of file ncbireg.cpp.

void CTwoLayerRegistry::x_Clear TFlags  flags  )  [protected, virtual]
 

Called locked, like the virtual methods inherited from IRegistry.

Implements IRWRegistry.

Definition at line 1265 of file ncbireg.cpp.

References IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, m_Persistent, and m_Transient.

bool CTwoLayerRegistry::x_Empty TFlags  flags  )  const [protected]
 

Definition at line 1156 of file ncbireg.cpp.

References CRef< C, Locker >::Empty(), IRegistry::fTPFlags, IRegistry::fTransient, and m_Transient.

void CTwoLayerRegistry::x_Enumerate const string &  section,
list< string > &  entries,
TFlags  flags
const [protected]
 

Definition at line 1233 of file ncbireg.cpp.

References _TROUBLE, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, m_Persistent, and m_Transient.

const string & CTwoLayerRegistry::x_Get const string &  section,
const string &  name,
TFlags  flags
const [protected]
 

Definition at line 1194 of file ncbireg.cpp.

References IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, m_Persistent, and m_Transient.

const string & CTwoLayerRegistry::x_GetComment const string &  section,
const string &  name,
TFlags  flags
const [protected]
 

Definition at line 1218 of file ncbireg.cpp.

References IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, m_Persistent, and m_Transient.

bool CTwoLayerRegistry::x_HasEntry const string &  section,
const string &  name,
TFlags  flags
const [protected]
 

Definition at line 1208 of file ncbireg.cpp.

References IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, m_Persistent, and m_Transient.

bool CTwoLayerRegistry::x_Modified TFlags  flags  )  const [protected]
 

Definition at line 1170 of file ncbireg.cpp.

References IRegistry::fTPFlags, IRegistry::fTransient, and m_Transient.

bool CTwoLayerRegistry::x_Set const string &  section,
const string &  name,
const string &  value,
TFlags  flags,
const string &  comment
[protected, virtual]
 

Implements IRWRegistry.

Definition at line 1276 of file ncbireg.cpp.

References IRegistry::fPersistent, IRegistry::fTPFlags, m_Persistent, and m_Transient.

bool CTwoLayerRegistry::x_SetComment const string &  comment,
const string &  section,
const string &  name,
TFlags  flags
[protected, virtual]
 

Implements IRWRegistry.

Definition at line 1290 of file ncbireg.cpp.

References IRegistry::fTPFlags, IRegistry::fTransient, m_Persistent, and m_Transient.

void CTwoLayerRegistry::x_SetModifiedFlag bool  modified,
TFlags  flags
[protected]
 

Definition at line 1183 of file ncbireg.cpp.

References IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, m_Persistent, and m_Transient.


Member Data Documentation

CRegRef CTwoLayerRegistry::m_Persistent [private]
 

Definition at line 638 of file ncbireg.hpp.

Referenced by x_Clear(), x_Enumerate(), x_Get(), x_GetComment(), x_HasEntry(), x_Set(), x_SetComment(), and x_SetModifiedFlag().

CRegRef CTwoLayerRegistry::m_Transient [private]
 

Definition at line 637 of file ncbireg.hpp.

Referenced by x_Clear(), x_Empty(), x_Enumerate(), x_Get(), x_GetComment(), x_HasEntry(), x_Modified(), x_Set(), x_SetComment(), and x_SetModifiedFlag().


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 15:11:39 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:19 2009 by modify_doxy.py rev. 173732