#include <metareg.hpp>
Collaboration diagram for CMetaRegistry:

Definition at line 47 of file metareg.hpp.
Public Types | |
| typedef int | TFlags |
| Binary OR of "EFlags". | |
| typedef IRegistry::TFlags | TRegFlags |
| typedef vector< string > | TSearchPath |
| Search path for unqualified names. | |
| enum | EFlags { fPrivate = 0x1, fReloadIfChanged = 0x2, fAlwaysReload = 0x6, fKeepContents = 0x8 } |
| General flags. More... | |
| enum | ENameStyle { eName_AsIs, eName_Ini, eName_DotRc, eName_RcOrIni = eName_DotRc } |
| How to treat filenames. More... | |
Static Public Member Functions | |
| static CMetaRegistry & | Instance (void) |
| static SEntry | Load (const string &name, ENameStyle style=eName_AsIs, TFlags flags=0, TRegFlags reg_flags=0, IRWRegistry *reg=0) |
| Load the configuration file "name". | |
| static bool | Reload (const string &path, IRWRegistry ®, TFlags flags=0, TRegFlags reg_flags=0) |
| Reload the configuration file "path". | |
| static const TSearchPath & | GetSearchPath (void) |
| static TSearchPath & | SetSearchPath (void) |
| static void | GetDefaultSearchPath (TSearchPath &path) |
| Clears path and substitutes the default search path. | |
Private Types | |
| typedef map< SKey, size_t > | TIndex |
Private Member Functions | |
| CMetaRegistry () | |
| Private functions, mostly non-static implementations of the public interface. | |
| ~CMetaRegistry () | |
| const SEntry & | x_Load (const string &name, ENameStyle style, TFlags flags, TRegFlags reg_flags, IRWRegistry *reg, const string &name0, ENameStyle style0, SEntry &scratch_entry) |
| name0 and style0 are the originally requested name and style | |
| bool | x_Reload (const string &path, IRWRegistry ®, TFlags flags, TRegFlags reg_flags) |
| const TSearchPath & | x_GetSearchPath (void) const |
| TSearchPath & | x_SetSearchPath (void) |
Private Attributes | |
| vector< SEntry > | m_Contents |
| TSearchPath | m_SearchPath |
| TIndex | m_Index |
| CMutex | m_Mutex |
Friends | |
| class | CSafeStaticPtr< CMetaRegistry > |
| struct | SEntry |
Classes | |
| struct | SEntry |
| struct | SKey |
| Members. More... | |
|
|
Binary OR of "EFlags".
Definition at line 59 of file metareg.hpp. |
|
|
Definition at line 193 of file metareg.hpp. |
|
|
Definition at line 74 of file metareg.hpp. |
|
|
Search path for unqualified names.
Definition at line 143 of file metareg.hpp. |
|
|
General flags.
Definition at line 53 of file metareg.hpp. |
|
|
How to treat filenames.
Definition at line 62 of file metareg.hpp. |
|
|
Private functions, mostly non-static implementations of the public interface.
Definition at line 236 of file metareg.hpp. References GetDefaultSearchPath(), and x_SetSearchPath(). |
|
|
Definition at line 127 of file metareg.cpp. |
|
|
Clears path and substitutes the default search path. If the environment NCBI_CONFIG_PATH is set, the default is to look there exclusively; otherwise, the default list contains the following directories in order:
Definition at line 308 of file metareg.cpp. References CDir::GetHome(). Referenced by CMetaRegistry(). |
|
|
Definition at line 222 of file metareg.hpp. References Instance(), and x_GetSearchPath(). Referenced by BOOST_AUTO_TEST_CASE(). |
|
|
Definition at line 121 of file metareg.cpp. References s_Instance. Referenced by GetSearchPath(), Reload(), and SetSearchPath(). |
|
||||||||||||||||||||||||
|
Load the configuration file "name".
Referenced by BlastFindMatrixPath(), CAutoNcbiConfigFile::CAutoNcbiConfigFile(), FindBlastDbPath(), CSeqDBAtlas::GenerateSearchPath(), CNcbiRegistry::IncludeNcbircIfAllowed(), CNcbiApplication::LoadConfig(), CNcbiRegistry::x_Init(), and x_Reload(). |
|
||||||||||||||||||||
|
Reload the configuration file "path".
Definition at line 213 of file metareg.hpp. References Instance(), and x_Reload(). Referenced by CNcbiApplication::ReloadConfig(). |
|
|
Definition at line 229 of file metareg.hpp. References Instance(), and x_SetSearchPath(). Referenced by BOOST_AUTO_TEST_CASE(). |
|
|
Definition at line 178 of file metareg.hpp. References m_SearchPath. Referenced by GetSearchPath(). |
|
||||||||||||||||||||||||||||||||||||
|
name0 and style0 are the originally requested name and style
|
|
||||||||||||||||||||
|
Definition at line 288 of file metareg.cpp. References _ASSERT, eName_AsIs, CRef< C, Locker >::IsNull(), Load(), m_Contents, NON_CONST_ITERATE, CMetaRegistry::SEntry::registry, and CMetaRegistry::SEntry::Reload(). Referenced by Reload(). |
|
|
Definition at line 179 of file metareg.hpp. References map_checker< Container >::clear(), m_Index, m_Mutex, and m_SearchPath. Referenced by CMetaRegistry(), and SetSearchPath(). |
|
|
Definition at line 201 of file metareg.hpp. |
|
|
Definition at line 202 of file metareg.hpp. |
|
|
Definition at line 195 of file metareg.hpp. Referenced by x_Reload(). |
|
|
Definition at line 197 of file metareg.hpp. Referenced by x_SetSearchPath(). |
|
|
Definition at line 199 of file metareg.hpp. Referenced by x_SetSearchPath(). |
|
|
Definition at line 196 of file metareg.hpp. Referenced by x_GetSearchPath(), and x_SetSearchPath(). |
1.4.6
Modified on Wed Dec 09 08:19:28 2009 by modify_doxy.py rev. 173732