CMemoryRegistry Class Reference
[Application Registry]

Search Toolkit Book for CMemoryRegistry

#include <ncbireg.hpp>

Inheritance diagram for CMemoryRegistry:

Inheritance graph
[legend]
Collaboration diagram for CMemoryRegistry:

Collaboration graph
[legend]
List of all members.

Detailed Description

CMemoryRegistry --.

Straightforward monolithic modifiable registry.

Definition at line 443 of file ncbireg.hpp.

Public Types

typedef map< string, SEntry,
PNocase_Conditional
TEntries
typedef map< string, SSection,
PNocase_Conditional
TSections

Public Member Functions

 CMemoryRegistry (TFlags flags=0)

Protected Member Functions

bool x_Empty (TFlags flags) const
bool x_Modified (TFlags) const
void x_SetModifiedFlag (bool modified, TFlags)
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_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 Attributes

bool m_IsModified
string m_RegistryComment
TSections m_Sections
TFlags m_Flags

Classes

struct  SEntry
struct  SSection


Member Typedef Documentation

typedef map<string, SEntry, PNocase_Conditional> CMemoryRegistry::TEntries
 

Definition at line 481 of file ncbireg.hpp.

typedef map<string, SSection, PNocase_Conditional> CMemoryRegistry::TSections
 

Definition at line 490 of file ncbireg.hpp.


Constructor & Destructor Documentation

CMemoryRegistry::CMemoryRegistry TFlags  flags = 0  )  [inline]
 

Definition at line 446 of file ncbireg.hpp.


Member Function Documentation

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

Called locked, like the virtual methods inherited from IRegistry.

Implements IRWRegistry.

Definition at line 862 of file ncbireg.cpp.

References map_checker< Container >::clear(), m_RegistryComment, and m_Sections.

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

Definition at line 778 of file ncbireg.cpp.

References map_checker< Container >::empty(), m_RegistryComment, and m_Sections.

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

Definition at line 837 of file ncbireg.cpp.

References IRegistry::HasEntry(), ITERATE, kEmptyStr, m_Sections, and s_IsNameSection().

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

Definition at line 785 of file ncbireg.cpp.

References map_checker< Container >::end(), map_checker< Container >::find(), kEmptyStr, and m_Sections.

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

Definition at line 818 of file ncbireg.cpp.

References m_RegistryComment.

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

Definition at line 797 of file ncbireg.cpp.

References map_checker< Container >::end(), map_checker< Container >::find(), and m_Sections.

bool CMemoryRegistry::x_Modified TFlags   )  const [inline, protected]
 

Definition at line 459 of file ncbireg.hpp.

References m_IsModified.

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

Implements IRWRegistry.

Definition at line 868 of file ncbireg.cpp.

References _TRACE, map_checker< Container >::end(), map_checker< Container >::find(), and m_Sections.

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

Implements IRWRegistry.

Definition at line 934 of file ncbireg.cpp.

References m_RegistryComment, and IRWRegistry::MaybeSet().

void CMemoryRegistry::x_SetModifiedFlag bool  modified,
TFlags 
[inline, protected]
 

Definition at line 460 of file ncbireg.hpp.

References m_IsModified.


Member Data Documentation

TFlags CMemoryRegistry::m_Flags [private]
 

Definition at line 496 of file ncbireg.hpp.

bool CMemoryRegistry::m_IsModified [private]
 

Definition at line 493 of file ncbireg.hpp.

Referenced by x_Modified(), and x_SetModifiedFlag().

string CMemoryRegistry::m_RegistryComment [private]
 

Definition at line 494 of file ncbireg.hpp.

Referenced by x_Clear(), x_Empty(), x_GetComment(), and x_SetComment().

TSections CMemoryRegistry::m_Sections [private]
 

Definition at line 495 of file ncbireg.hpp.

Referenced by x_Clear(), x_Empty(), x_Enumerate(), x_Get(), x_HasEntry(), and x_Set().


The documentation for this class was generated from the following files:
Generated on Wed Dec 9 08:02:28 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:19:28 2009 by modify_doxy.py rev. 173732