#include <ncbireg.hpp>
Inheritance diagram for CNcbiRegistry:


Define the Registry.
Load, access, modify and store runtime information (usually used to work with configuration files).
Definition at line 760 of file ncbireg.hpp.
Public Types | |
| enum | ECompatFlags { eTransient = fTransient, ePersistent = fPersistent, eOverride = fOverride, eNoOverride = fNoOverride, eTruncate = fTruncate, eNoTruncate = fNoTruncate } |
Public Member Functions | |
| CNcbiRegistry (TFlags flags=0) | |
| Constructor. | |
| CNcbiRegistry (CNcbiIstream &is, TFlags flags=0) | |
| Constructor. | |
| ~CNcbiRegistry () | |
| bool | IncludeNcbircIfAllowed (TFlags flags=fWithNcbirc) |
Attempt to load a systemwide configuration file (.ncbirc on Unix, ncbi.ini on Windows) as a low-priority registry, as long as the following conditions all hold:
| |
Static Public Attributes | |
| static const char * | sm_EnvRegName = ".env" |
| Predefined subregistries' names. | |
| static const char * | sm_FileRegName = ".file" |
| static const char * | sm_OverrideRegName = ".overrides" |
| static const char * | sm_SysRegName = ".ncbirc" |
Protected Member Functions | |
| void | x_Clear (TFlags flags) |
| Called locked, like the virtual methods inherited from IRegistry. | |
| IRWRegistry * | x_Read (CNcbiIstream &is, TFlags flags) |
| Most implementations should not override this, but CNcbiRegistry must, to handle some special cases properly. | |
Private Types | |
| enum | EReservedPriority { ePriority_File = ePriority_Reserved, ePriority_Overrides, ePriority_Environment, ePriority_RuntimeOverrides } |
Private Member Functions | |
| void | x_Init (void) |
Private Attributes | |
| CRef< CEnvironmentRegistry > | m_EnvRegistry |
| CRef< CTwoLayerRegistry > | m_FileRegistry |
| CRef< IRWRegistry > | m_OverrideRegistry |
| CRef< IRWRegistry > | m_SysRegistry |
| unsigned int | m_RuntimeOverrideCount |
| TFlags | m_Flags |
|
|
Definition at line 763 of file ncbireg.hpp. |
|
|
Definition at line 820 of file ncbireg.hpp. |
|
|
Constructor.
Definition at line 1357 of file ncbireg.cpp. References x_Init(). |
|
||||||||||||
|
Constructor.
Definition at line 1364 of file ncbireg.cpp. References IRegistry::fCaseFlags, IRegistry::fInternalSpaces, IRegistry::fTransient, IRegistry::fWithNcbirc, IncludeNcbircIfAllowed(), m_FileRegistry, IRegistry::x_CheckFlags(), and x_Init(). |
|
|
Definition at line 1375 of file ncbireg.cpp. |
|
|
Attempt to load a systemwide configuration file (.ncbirc on Unix, ncbi.ini on Windows) as a low-priority registry, as long as the following conditions all hold:
Definition at line 1380 of file ncbireg.cpp. References CRef< C, Locker >::Empty(), CMetaRegistry::eName_RcOrIni, ERR_POST_X, IRegistry::fWithNcbirc, CRef< C, Locker >::GetPointer(), IRegistry::HasEntry(), CMetaRegistry::Load(), m_SysRegistry, CMetaRegistry::SEntry::registry, and CRef< C, Locker >::Reset(). Referenced by CNcbiRegistry(), and x_Read(). |
|
|
Called locked, like the virtual methods inherited from IRegistry.
Reimplemented from CCompoundRWRegistry. Definition at line 1419 of file ncbireg.cpp. References m_FileRegistry, and CCompoundRWRegistry::x_Clear(). |
|
|
||||||||||||
|
Most implementations should not override this, but CNcbiRegistry must, to handle some special cases properly.
Reimplemented from CCompoundRWRegistry. Definition at line 1426 of file ncbireg.cpp. References CRef< C, Locker >::Empty(), CConstRef< C, Locker >::Empty(), CCompoundRWRegistry::FindByName(), IncludeNcbircIfAllowed(), CCompoundRWRegistry::LoadBaseRegistries(), m_FileRegistry, and CCompoundRWRegistry::sm_MainRegName. |
|
|
Definition at line 827 of file ncbireg.hpp. Referenced by x_Init(). |
|
|
Definition at line 828 of file ncbireg.hpp. Referenced by CNcbiRegistry(), x_Clear(), x_Init(), and x_Read(). |
|
|
Reimplemented from CCompoundRWRegistry. Definition at line 832 of file ncbireg.hpp. Referenced by x_Init(). |
|
|
Definition at line 829 of file ncbireg.hpp. Referenced by x_Init(). |
|
|
Definition at line 831 of file ncbireg.hpp. |
|
|
Definition at line 830 of file ncbireg.hpp. Referenced by IncludeNcbircIfAllowed(), and x_Init(). |
|
|
Predefined subregistries' names.
Definition at line 808 of file ncbireg.hpp. Referenced by x_Init(). |
|
|
Definition at line 809 of file ncbireg.hpp. Referenced by CCompoundRWRegistry::LoadBaseRegistries(), and x_Init(). |
|
|
Definition at line 810 of file ncbireg.hpp. Referenced by x_Init(). |
|
|
Definition at line 811 of file ncbireg.hpp. Referenced by x_Init(). |
1.4.6
Modified on Wed Dec 09 08:19:31 2009 by modify_doxy.py rev. 173732