NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CPtbRegistry Class Reference

Search Toolkit Book for CPtbRegistry

#include "ptb_registry.hpp"
(Private to src/build-system/project_tree_builder.)

+ Collaboration diagram for CPtbRegistry:

Public Member Functions

 CPtbRegistry (void)
 
 CPtbRegistry (const IRWRegistry &reg)
 
 ~CPtbRegistry (void)
 
string GetString (const string &section, const string &name, const string &default_value=kEmptyStr) const
 
string Get (const string &section, const string &name) const
 
bool HasEntry (const string &section, const string &name=kEmptyStr) const
 
void Read (CNcbiIstream &is)
 
bool Empty (void) const
 
void EnumerateSections (list< string > *sections) const
 
void EnumerateEntries (const string &section, list< string > *entries) const
 

Private Member Functions

 CPtbRegistry (const CPtbRegistry &)
 forbidden More...
 
CPtbRegistryoperator= (const CPtbRegistry &)
 

Private Attributes

map< string, stringm_Cache
 
AutoPtr< IRWRegistrym_Registry
 
bool m_IsEmpty
 

Detailed Description

Definition at line 39 of file ptb_registry.hpp.

Constructor & Destructor Documentation

◆ CPtbRegistry() [1/3]

CPtbRegistry::CPtbRegistry ( void  )

Definition at line 35 of file ptb_registry.cpp.

References m_Registry, and AutoPtr< X, Del >::reset().

◆ CPtbRegistry() [2/3]

CPtbRegistry::CPtbRegistry ( const IRWRegistry reg)

Definition at line 41 of file ptb_registry.cpp.

References IRegistry::Empty(), and m_IsEmpty.

◆ ~CPtbRegistry()

CPtbRegistry::~CPtbRegistry ( void  )

Definition at line 47 of file ptb_registry.cpp.

◆ CPtbRegistry() [3/3]

CPtbRegistry::CPtbRegistry ( const CPtbRegistry )
private

forbidden

Member Function Documentation

◆ Empty()

bool CPtbRegistry::Empty ( void  ) const
inline

Definition at line 64 of file ptb_registry.hpp.

References m_IsEmpty.

Referenced by CMsvcMetaMakefile::IsEmpty().

◆ EnumerateEntries()

void CPtbRegistry::EnumerateEntries ( const string section,
list< string > *  entries 
) const
inline

Definition at line 73 of file ptb_registry.hpp.

References entries, IRegistry::EnumerateEntries(), m_IsEmpty, and m_Registry.

Referenced by CMsvcMetaMakefile::GetPchInfo().

◆ EnumerateSections()

void CPtbRegistry::EnumerateSections ( list< string > *  sections) const
inline

◆ Get()

string CPtbRegistry::Get ( const string section,
const string name 
) const
inline

◆ GetString()

string CPtbRegistry::GetString ( const string section,
const string name,
const string default_value = kEmptyStr 
) const

◆ HasEntry()

bool CPtbRegistry::HasEntry ( const string section,
const string name = kEmptyStr 
) const
inline

◆ operator=()

CPtbRegistry& CPtbRegistry::operator= ( const CPtbRegistry )
private

◆ Read()

void CPtbRegistry::Read ( CNcbiIstream is)
inline

Member Data Documentation

◆ m_Cache

map<string,string> CPtbRegistry::m_Cache
mutableprivate

Definition at line 80 of file ptb_registry.hpp.

Referenced by GetString().

◆ m_IsEmpty

bool CPtbRegistry::m_IsEmpty
private

◆ m_Registry

AutoPtr<IRWRegistry> CPtbRegistry::m_Registry
private

The documentation for this class was generated from the following files:
Modified on Wed Sep 04 15:02:42 2024 by modify_doxy.py rev. 669887