NCBI C++ ToolKit
|
Search Toolkit Book for CPtbRegistry
#include "ptb_registry.hpp"
(Private to src/build-system/project_tree_builder
.)
Public Member Functions | |
CPtbRegistry (void) | |
CPtbRegistry (const IRWRegistry ®) | |
~CPtbRegistry (void) | |
string | GetString (const string §ion, const string &name, const string &default_value=kEmptyStr) const |
string | Get (const string §ion, const string &name) const |
bool | HasEntry (const string §ion, const string &name=kEmptyStr) const |
void | Read (CNcbiIstream &is) |
bool | Empty (void) const |
void | EnumerateSections (list< string > *sections) const |
void | EnumerateEntries (const string §ion, list< string > *entries) const |
Private Member Functions | |
CPtbRegistry (const CPtbRegistry &) | |
forbidden More... | |
CPtbRegistry & | operator= (const CPtbRegistry &) |
Private Attributes | |
map< string, string > | m_Cache |
AutoPtr< IRWRegistry > | m_Registry |
bool | m_IsEmpty |
Definition at line 39 of file ptb_registry.hpp.
CPtbRegistry::CPtbRegistry | ( | void | ) |
Definition at line 35 of file ptb_registry.cpp.
References m_Registry, and AutoPtr< X, Del >::reset().
CPtbRegistry::CPtbRegistry | ( | const IRWRegistry & | reg | ) |
Definition at line 41 of file ptb_registry.cpp.
References IRegistry::Empty(), and m_IsEmpty.
CPtbRegistry::~CPtbRegistry | ( | void | ) |
Definition at line 47 of file ptb_registry.cpp.
|
private |
forbidden
|
inline |
Definition at line 64 of file ptb_registry.hpp.
References m_IsEmpty.
Referenced by CMsvcMetaMakefile::IsEmpty().
|
inline |
Definition at line 73 of file ptb_registry.hpp.
References entries, IRegistry::EnumerateEntries(), m_IsEmpty, and m_Registry.
Referenced by CMsvcMetaMakefile::GetPchInfo().
|
inline |
Definition at line 68 of file ptb_registry.hpp.
References IRegistry::EnumerateSections(), m_IsEmpty, and m_Registry.
Referenced by CMsvcProjectMakefile::GetExtraFiles().
Definition at line 50 of file ptb_registry.hpp.
References GetString(), kEmptyStr, and m_IsEmpty.
Referenced by CMsvcSite::CMsvcSite(), CMsvcSite::GetAppDefaultResource(), CMsvcSite::GetComponents(), CMsvcProjectMakefile::GetExtraFiles(), CMsvcSite::GetLibChoiceIncludes(), CMsvcSite::GetPlatformInfo(), CMsvcSite::IsCppflagDescribed(), CMsvcSite::IsLibEnabledInConfig(), CMsvcSite::ProcessMacros(), CMsvcMetaMakefile::TranslateCommand(), CMsvcSite::x_GetConfigureEntry(), and CMsvcSite::x_GetDefinesEntry().
string CPtbRegistry::GetString | ( | const string & | section, |
const string & | name, | ||
const string & | default_value = kEmptyStr |
||
) | const |
Definition at line 51 of file ptb_registry.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), IRegistry::GetString(), i, ncbi::grid::netcache::search::fields::key, m_Cache, m_IsEmpty, and m_Registry.
Referenced by Get(), CMsvcProjectMakefile::GetCustomBuildInfo(), CMsvcProjectMakefile::GetCustomScriptInfo(), CMsvcProjectMakefile::GetGUID(), CMsvcMetaMakefile::GetPchInfo(), CMsvcProjectMakefile::IsExcludeProject(), CMsvcProjectMakefile::Redefine(), and CMsvcMetaMakefile::TranslateOpt().
|
inline |
Definition at line 55 of file ptb_registry.hpp.
References false, IRegistry::fCountCleared, IRegistry::HasEntry(), m_IsEmpty, and m_Registry.
Referenced by CMsvcSite::IsDescribed(), CMsvcSite::IsLibEnabledInConfig(), and CMsvcSite::ResolveDefine().
|
private |
|
inline |
Definition at line 59 of file ptb_registry.hpp.
References IRegistry::Empty(), m_IsEmpty, m_Registry, and IRWRegistry::Read().
Referenced by CMsvcMetaMakefile::CMsvcMetaMakefile(), and CMsvcSite::CMsvcSite().
Definition at line 80 of file ptb_registry.hpp.
Referenced by GetString().
|
private |
Definition at line 82 of file ptb_registry.hpp.
Referenced by CPtbRegistry(), Empty(), EnumerateEntries(), EnumerateSections(), Get(), GetString(), HasEntry(), and Read().
|
private |
Definition at line 81 of file ptb_registry.hpp.
Referenced by CPtbRegistry(), EnumerateEntries(), EnumerateSections(), GetString(), HasEntry(), and Read().