NCBI C++ ToolKit
|
Classes | |
class | IEnvRegMapper |
IEnvRegMapper –. More... | |
class | CEnvironmentRegistry |
CEnvironmentRegistry –. More... | |
class | CSimpleEnvRegMapper |
CSimpleEnvRegMapper –. More... | |
class | CNcbiEnvRegMapper |
CNcbiEnvRegMapper –. More... | |
class | IRegistry |
IRegistry –. More... | |
class | IRWRegistry |
IRWRegistry –. More... | |
class | CMemoryRegistry |
CMemoryRegistry –. More... | |
struct | CMemoryRegistry::SEntry |
struct | CMemoryRegistry::SSection |
class | CCompoundRegistry |
CCompoundRegistry –. More... | |
class | CTwoLayerRegistry |
CTwoLayerRegistry –. More... | |
class | CCompoundRWRegistry |
CCompoundRWRegistry –. More... | |
class | CNcbiRegistry |
CNcbiRegistry –. More... | |
class | CRegistryException |
CRegistryException –. More... | |
class | CRegistryReadGuard |
CRegistry{Read,Write}Guard –. More... | |
typedef CGuard<IRegistry, SSimpleWriteLock<IRegistry> > CRegistryWriteGuard |
Definition at line 1044 of file ncbireg.hpp.
|
private |
Definition at line 780 of file ncbireg.hpp.
|
protected |
Definition at line 388 of file ncbireg.hpp.
|
private |
Definition at line 889 of file ncbireg.hpp.
typedef map<string, SEntry, PNocase_Conditional> CMemoryRegistry::TEntries |
Definition at line 622 of file ncbireg.hpp.
typedef int IRegistry::TFlags |
Binary OR of "EFlags".
Definition at line 107 of file ncbireg.hpp.
|
private |
Definition at line 724 of file ncbireg.hpp.
Definition at line 1038 of file ncbireg.hpp.
typedef int CEnvironmentRegistry::TPriority |
Not restricted to ePriority_*.
Definition at line 102 of file env_reg.hpp.
typedef int CCompoundRegistry::TPriority |
Not restricted to ePriority_*.
Definition at line 671 of file ncbireg.hpp.
typedef int CCompoundRWRegistry::TPriority |
Not restricted to ePriority_*.
Definition at line 813 of file ncbireg.hpp.
|
private |
Definition at line 136 of file env_reg.hpp.
|
private |
Definition at line 723 of file ncbireg.hpp.
Definition at line 633 of file ncbireg.hpp.
Enumerator | |
---|---|
eTransient | |
ePersistent | |
eOverride | |
eNoOverride | |
eTruncate | |
eNoTruncate |
Definition at line 915 of file ncbireg.hpp.
What to do if parameter value is present but cannot be converted into the requested type.
Enumerator | |
---|---|
eThrow | Throw an exception if an error occurs. |
eErrPost | Log the error message and return default value. |
eReturn | Return default value. |
Definition at line 200 of file ncbireg.hpp.
Error types that the Registry can generate.
Enumerator | |
---|---|
eSection | Section name format error. |
eEntry | Entry name format error. |
eValue | General value format error. |
eUnencrypted | Value should have been encrypted, but wasn't. |
eDecryptionFailed | Value looked encrypted, but decryption failed. |
eErr | Other error. |
Definition at line 1008 of file ncbireg.hpp.
enum IRegistry::EFlags |
Flags controlling the behavior of registry methods.
Please note:
Enumerator | |
---|---|
fTransient | Transient – not saved by default. |
fPersistent | Persistent – saved when file is written. |
fOverride | Existing value can be overriden. |
fNoOverride | Cannot change existing value. |
fTruncate | Leading, trailing blanks can be truncated. |
fNoTruncate | Cannot truncate parameter value. |
fJustCore | Ignore auxiliary subregistries. |
fNotJustCore | Include auxiliary subregistries. |
fIgnoreErrors | Continue Read()ing after parse errors. |
fInternalSpaces | Allow internal whitespace in names. |
fWithNcbirc | Include .ncbirc (used only by CNcbiReg.) |
fCountCleared | Let explicitly cleared entries stand. |
fSectionCase | Create with case-sensitive section names. |
fEntryCase | Create with case-sensitive entry names. |
fSectionlessEntries | Allow empty section names (for test_res framework) |
fSections | Indicates that we want sections from x_Enumerate. |
fPlaintextAllowed |
|
fInSectionComments | Indicates that we want in-section comments from x_Enumerate. |
fInternalCheckedAndLocked | |
fCoreLayers | |
fAllLayers | |
fCaseFlags |
Definition at line 82 of file ncbireg.hpp.
|
protected |
Enumerator | |
---|---|
fLayerFlags | |
fTPFlags |
Definition at line 365 of file ncbireg.hpp.
Categories of modifying operations.
Enumerator | |
---|---|
eClear | |
eRead | |
eSet |
Definition at line 410 of file ncbireg.hpp.
Enumerator | |
---|---|
ePriority_Min | |
ePriority_Default | |
ePriority_Max |
Definition at line 97 of file env_reg.hpp.
Priority for sub-registries; entries in higher-priority sub-registries take precedence over (identically named) entries in lower-priority ones.
Ties are broken arbitrarily.
Enumerator | |
---|---|
ePriority_Min | |
ePriority_Default | |
ePriority_Max |
Definition at line 666 of file ncbireg.hpp.
Priority for sub-registries; entries in higher-priority sub-registries take precedence over (identically named) entries in lower-priority ones.
Ties are broken arbitrarily.
Enumerator | |
---|---|
ePriority_MinUser | |
ePriority_Default | |
ePriority_MaxUser | |
ePriority_Reserved | Everything greater is for internal use. |
Definition at line 807 of file ncbireg.hpp.
|
private |
Enumerator | |
---|---|
ePriority_File | |
ePriority_Overrides | |
ePriority_Environment | |
ePriority_RuntimeOverrides |
Definition at line 977 of file ncbireg.hpp.
void CCompoundRegistry::Add | ( | const IRegistry & | reg, |
TPriority | prio = ePriority_Default , |
||
const string & | name = kEmptyStr |
||
) |
Non-empty names must be unique within each compound registry, but there is no limit to the number of anonymous sub-registries.
Sub-registries themselves may not (directly) appear more than once.
Definition at line 1186 of file ncbireg.cpp.
References multimap_checker< Container >::insert(), CCompoundRegistry::m_NameMap, CCompoundRegistry::m_PriorityMap, NCBI_THROW2, and CRef< C, Locker >::Reset().
Referenced by CSynRegistry::Add(), and CCompoundRWRegistry::x_Add().
void CCompoundRWRegistry::Add | ( | const IRegistry & | reg, |
TPriority | prio = ePriority_Default , |
||
const string & | name = kEmptyStr |
||
) |
Non-empty names must be unique within each compound registry, but there is no limit to the number of anonymous sub-registries.
Sub-registries themselves may not (directly) appear more than once.
Definition at line 1779 of file ncbireg.cpp.
References CCompoundRWRegistry::ePriority_MaxUser, ERR_POST_X, NCBI_THROW2, Warning(), and CCompoundRWRegistry::x_Add().
Referenced by s_FindPathToGeneInfoFiles(), and s_FindPathToWM().
void CEnvironmentRegistry::AddMapper | ( | const IEnvRegMapper & | mapper, |
TPriority | prio = ePriority_Default |
||
) |
Definition at line 71 of file env_reg.cpp.
References multimap_checker< Container >::insert(), and CEnvironmentRegistry::m_PriorityMap.
Referenced by CEnvironmentRegistry::CEnvironmentRegistry(), s_FindPathToGeneInfoFiles(), and s_FindPathToWM().
|
static |
Indicate which portions of the registry the given operation would affect.
Definition at line 574 of file ncbireg.cpp.
References _TROUBLE, IRWRegistry::eClear, IRWRegistry::eRead, IRWRegistry::eSet, IRegistry::fJustCore, flags, IRegistry::fLayerFlags, IRegistry::fPersistent, IRegistry::fTPFlags, and IRegistry::fTransient.
Referenced by CMetaRegistry::Load(), and CMetaRegistry::SEntry::Reload().
|
inline |
Definition at line 656 of file ncbireg.hpp.
CCompoundRWRegistry::CCompoundRWRegistry | ( | TFlags | m_Flags = 0 | ) |
Constructor.
Definition at line 1752 of file ncbireg.cpp.
References CCompoundRegistry::ePriority_Max, CCompoundRWRegistry::m_MainRegistry, CCompoundRWRegistry::sm_MainRegName, and CCompoundRWRegistry::x_Add().
Referenced by CCompoundRWRegistry::LoadBaseRegistries(), CNcbiRegistry::x_Init(), and CNcbiRegistry::x_Read().
CEnvironmentRegistry::CEnvironmentRegistry | ( | CNcbiEnvironment & | env, |
EOwnership | own = eNoOwnership , |
||
TFlags | flags = 0 |
||
) |
Definition at line 58 of file env_reg.cpp.
References CEnvironmentRegistry::AddMapper().
|
inlineprivate |
Copying prohibited.
Definition at line 134 of file env_reg.hpp.
CEnvironmentRegistry::CEnvironmentRegistry | ( | TFlags | flags = 0 | ) |
Constructors.
Definition at line 50 of file env_reg.cpp.
References CEnvironmentRegistry::AddMapper().
void IRWRegistry::Clear | ( | TFlags | flags = fAllLayers | ) |
Reset the registry content.
Definition at line 590 of file ncbireg.cpp.
References IRegistry::fInternalSpaces, flags, IRegistry::fLayerFlags, IRegistry::fPersistent, IRegistry::fTransient, IRegistry::x_CheckFlags(), IRWRegistry::x_Clear(), IRegistry::x_Empty(), and IRegistry::x_SetModifiedFlag().
Referenced by CNcbiApplicationAPI::AppMain(), CMetaRegistry::Load(), CMetaRegistry::SEntry::Reload(), CTwoLayerRegistry::x_Clear(), CCompoundRWRegistry::x_Clear(), and CNcbiRegistry::x_Clear().
|
inline |
Definition at line 586 of file ncbireg.hpp.
CNcbiRegistry::CNcbiRegistry | ( | CNcbiIstream & | is, |
TFlags | flags = 0 , |
||
const string & | path = kEmptyStr |
||
) |
Constructor.
is | Input stream to load the Registry from. NOTE: if the stream is a file, it must be opened in binary mode! |
flags | How parameters are stored. The default is to store all parameters as persistent unless the "eTransient" flag is set in which case the newly retrieved parameters are stored as transient. |
path | Where to look for base registries listed with relative paths. |
Definition at line 1615 of file ncbireg.cpp.
References IRegistry::fCaseFlags, IRegistry::fInternalSpaces, flags, IRegistry::fSectionlessEntries, IRegistry::fTransient, IRegistry::fWithNcbirc, CNcbiRegistry::IncludeNcbircIfAllowed(), CCompoundRWRegistry::LoadBaseRegistries(), CNcbiRegistry::m_FileRegistry, IRWRegistry::Read(), IRegistry::x_CheckFlags(), and CNcbiRegistry::x_Init().
CNcbiRegistry::CNcbiRegistry | ( | TFlags | flags = 0 | ) |
Definition at line 1039 of file ncbireg.hpp.
CSimpleEnvRegMapper::CSimpleEnvRegMapper | ( | const string & | section, |
const string & | prefix, | ||
const string & | suffix = kEmptyStr |
||
) |
Definition at line 290 of file env_reg.cpp.
CTwoLayerRegistry::CTwoLayerRegistry | ( | IRWRegistry * | persistent = 0 , |
TFlags | flags = 0 |
||
) |
Constructor.
The transient layer is always a new memory registry, and so is the persistent layer by default.
Definition at line 1365 of file ncbireg.cpp.
bool IRegistry::Empty | ( | TFlags | flags = fAllLayers | ) | const |
Verify if Registry is empty.
flags | Layer(s) to check. |
Definition at line 162 of file ncbireg.cpp.
References flags, IRegistry::fLayerFlags, IRegistry::fTPFlags, IRegistry::x_CheckFlags(), and IRegistry::x_Empty().
Referenced by CBlastFormatUtil::BlastPrintReference(), CPtbRegistry::CPtbRegistry(), CSplitQueryTestFixture::CSplitQueryTestFixture(), CAlignFormatUtil::GetProtocol(), CDataTool::HasConfig(), CNcbiRegistry::IncludeNcbircIfAllowed(), CMetaRegistry::Load(), CNcbiApplicationAPI::LoadConfig(), CPtbRegistry::Read(), CMetaRegistry::SEntry::Reload(), CCassConnectionFactory::ReloadConfig(), CTwoLayerRegistry::x_Empty(), CCompoundRWRegistry::x_Empty(), CSynRegistryToIRegistry::x_Empty(), IRWRegistry::x_Read(), CCompoundRWRegistry::x_Read(), and CNcbiRegistry::x_Read().
|
virtual |
Enumerate parameter names for a specified section.
Write all parameter names for specified "section" to the "entries" list in order. Previous contents of the list are erased.
Enumerates sections rather than entries if section is
empty and fSectionlessEntries is not set.
flags | To control search. |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 514 of file ncbireg.cpp.
References _ASSERT, _TRACE, entries, IRegistry::fCountCleared, IRegistry::fInternalSpaces, flags, IRegistry::fLayerFlags, IRegistry::fSectionlessEntries, IRegistry::fSections, IRegistry::fTPFlags, IRegistry::IsNameSection(), NStr::PrintableString(), NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), and IRegistry::x_Enumerate().
Referenced by CDBLB_ServiceMapper::ConfigureFromRegistry(), CDBUDRandomMapper::ConfigureFromRegistry(), CDBUDPriorityMapper::ConfigureFromRegistry(), CConfig::ConvertRegToTree(), CPluginManager< TClass >::CPluginManager(), CDriverManager::CreateDsFrom(), CRemoteAppLauncher::CRemoteAppLauncher(), CSmallDNS::CSmallDNS(), CPtbRegistry::EnumerateEntries(), CSynRegistryToIRegistry::EnumerateEntries(), CRegistryFile::FromConfigFile(), GetDefaultLogLocation(), CCgiApplication::GetDefaultLogPath(), CIdMapperConfig::Initialize(), CColorTableMethod::Load(), CColumnScoringMethod::Load(), CMatrixScoringMethod::Load(), CStdAnnotTypes::LoadTypes(), NS_ValidateServiceToQueueSection(), SQueueParameters::ReadLinkedSections(), SQueueParameters::ReadQueue(), CNetScheduleServer::ReadServicesConfig(), CCgiRedirectApplication::RemapEntries(), IRegistry::Write(), CTwoLayerRegistry::x_Enumerate(), CDataTypeModule::x_GetVar(), CNcbiApplicationAPI::x_LogOptions(), CNcbiTestApplication::x_ReadConfiguration(), SPubseqGatewaySettings::x_ReadCountersSection(), CQueueDataBase::x_ReadLinkedSections(), and CNetScheduleDApp::x_SaveSection().
|
virtual |
Enumerate in-section comments.
Write all in-section comments to the "comments" list in (registry priority) order. Previous contents of the list are erased.
flags | To control layers if search. Allowed values are fTransient, fPersistent, fNotJustCore, fJustCore and their mix using | |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 474 of file ncbireg.cpp.
References _ASSERT, _TRACE, IRegistry::fInSectionComments, flags, IRegistry::fLayerFlags, IRegistry::fTPFlags, IRegistry::IsNameSection(), NStr::PrintableString(), NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), and IRegistry::x_Enumerate().
Referenced by CSynRegistryToIRegistry::EnumerateInSectionComments(), IRegistry::Write(), and CTwoLayerRegistry::x_Enumerate().
|
virtual |
Enumerate section names.
Write all section names to the "sections" list in (case-insensitive) order. Previous contents of the list are erased.
flags | To control search. |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 497 of file ncbireg.cpp.
References _ASSERT, IRegistry::fCountCleared, IRegistry::fInternalSpaces, flags, IRegistry::fLayerFlags, IRegistry::fSectionlessEntries, IRegistry::fSections, IRegistry::fTPFlags, kEmptyStr, IRegistry::x_CheckFlags(), and IRegistry::x_Enumerate().
Referenced by CConfig::ConvertRegToTree(), CIdMapperConfig::DescribeContexts(), CPtbRegistry::EnumerateSections(), CSynRegistryToIRegistry::EnumerateSections(), CRegistryFile::FromConfigFile(), CSDBAPI::Init(), CStdAnnotTypes::LoadTypes(), NS_ValidateClasses(), NS_ValidateQueues(), NSTGetBackendConfiguration(), NSTValidateServices(), SQueueParameters::ReadLinkedSections(), CCassConnectionFactory::ReloadConfig(), s_ReadPerClientConfig(), IRegistry::Write(), CQueueDataBase::x_GetConfigQueues(), CNSTServiceRegistry::x_GetMetadataServices(), CNcbiApplicationAPI::x_LogOptions(), CQueueDataBase::x_ReadIniFileQueueClassDescriptions(), CQueueDataBase::x_ReadIniFileQueueDescriptions(), and CQueueDataBase::x_ReadLinkedSections().
|
virtual |
The return value indicates whether the environment variable was appropriately formatted.
Implements IEnvRegMapper.
Definition at line 305 of file env_reg.cpp.
References NStr::EndsWith(), NStr::eNocase, env, CSimpleEnvRegMapper::m_Prefix, CSimpleEnvRegMapper::m_Section, CSimpleEnvRegMapper::m_Suffix, and NStr::StartsWith().
|
virtual |
The return value indicates whether the environment variable was appropriately formatted.
Implements IEnvRegMapper.
Definition at line 380 of file env_reg.cpp.
References _ASSERT, env, ERR_POST, IRegistry::fInternalSpaces, Info(), isalnum(), islower(), IRegistry::IsNameEntry(), IRegistry::IsNameSection(), NPOS, s_IdentifySubstitution(), CNcbiEnvRegMapper::sm_Prefix, NStr::Split(), and NStr::StartsWith().
|
pure virtual |
The return value indicates whether the environment variable was appropriately formatted.
Implemented in CNcbiEnvRegMapper, and CSimpleEnvRegMapper.
CConstRef< IRegistry > CCompoundRegistry::FindByContents | ( | const string & | section, |
const string & | entry = kEmptyStr , |
||
TFlags | flags = 0 |
||
) | const |
Return a pointer to the highest-priority sub-registry with a section named SECTION containing (if ENTRY is non-empty) an entry named ENTRY, or NULL if not found.
Definition at line 1235 of file ncbireg.cpp.
References IRegistry::fCountCleared, IRegistry::fJustCore, flags, CCompoundRegistry::m_PriorityMap, and REVERSE_ITERATE.
Referenced by CCompoundRWRegistry::FindByContents(), CCompoundRegistry::x_Get(), CCompoundRegistry::x_GetComment(), and CCompoundRegistry::x_HasEntry().
CConstRef< IRegistry > CCompoundRWRegistry::FindByContents | ( | const string & | section, |
const string & | entry = kEmptyStr , |
||
TFlags | flags = 0 |
||
) | const |
Return a pointer to the highest-priority sub-registry with a section named SECTION containing (if ENTRY is non-empty) an entry named ENTRY, or NULL if not found.
Definition at line 1813 of file ncbireg.cpp.
References CCompoundRegistry::FindByContents(), flags, and CCompoundRWRegistry::m_AllRegistries.
Return a pointer to the sub-registry with the given name, or NULL if not found.
Definition at line 1228 of file ncbireg.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), and CCompoundRegistry::m_NameMap.
Referenced by CCompoundRWRegistry::FindByName().
Return a pointer to the sub-registry with the given name, or NULL if not found.
Definition at line 1807 of file ncbireg.cpp.
References CCompoundRegistry::FindByName(), and CCompoundRWRegistry::m_AllRegistries.
Referenced by CCompoundRWRegistry::LoadBaseRegistries(), CCompoundRWRegistry::x_Clear(), CCompoundRWRegistry::x_GetComment(), and CNcbiRegistry::x_Read().
|
virtual |
Get the parameter value.
Get the parameter with the specified "name" from the specified "section". First, search for the transient parameter value, and if cannot find in there, then continue the search in the non-transient parameters. If "fPersistent" flag is set in "flags", then don't search in the transient parameters at all.
section | Section name to search under (case-insensitive). |
name | Parameter name to search for (case-insensitive). |
flags | To control search. |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 262 of file ncbireg.cpp.
References _TRACE, IRegistry::fInternalCheckedAndLocked, IRegistry::fInternalSpaces, flags, IRegistry::fLayerFlags, IRegistry::fSectionlessEntries, IRegistry::fTPFlags, IRegistry::IsNameEntry(), IRegistry::IsNameSection(), kEmptyStr, NStr::PrintableString(), NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), and IRegistry::x_Get().
Referenced by CCgiApplication::AddLBCookie(), CBlastFormatUtil::BlastPrintReference(), BOOST_AUTO_TEST_CASE(), CBlastDBExtractor::CBlastDBExtractor(), CBlastFormat::CBlastFormat(), CClientPseudoDataType::CClientPseudoDataType(), CFastaBioseqSource::CFastaBioseqSource(), CCgiStatistics::Compose_Entries(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CConfig::ConvertRegToTree(), CProjectsLstFileFilter::CProjectsLstFileFilter(), CDriverManager::CreateDsFrom(), CCgiApplication::CreateFastCGIWatchFile(), CHelloBasicCommand::CreateView(), CSmallDNS::CSmallDNS(), CIdMapperConfig::DescribeContexts(), CSeqFormatter::DumpAll(), EnabledDelayBuffers(), CHelloCommand::Execute(), CIgBlastArgs::ExtractAlgorithmOptions(), FindBlastDbPath(), CRegistryFile::FromConfigFile(), g_GetConfigDouble(), g_GetConfigFlag(), g_GetConfigInt(), g_GetConfigString(), CClientPseudoTypeStrings::GenerateClassCode(), CCodeGenerator::GenerateClientCode(), CDataTool::GenerateCode(), CFileCode::GenerateHPP(), CSeqDBAtlas::GenerateSearchPath(), CSynRegistry::CInclude::Get(), CSynRegistryToIRegistry::Get(), IRegistry::GetBool(), CProjBulderApp::GetBuildConfigs(), CDataTool::GetConfigValue(), CProjBulderApp::GetDatatoolCommandLine(), IRegistry::GetDouble(), IRegistry::GetEncryptedString(), CWinMaskerFileStorage::GetEnvPath(), CCgiApplication::GetFastCGIStandaloneServer(), IRegistry::GetInt(), CCgiApplication::GetLogOpt(), GetOpt(), CCodeGenerator::GetOpt(), CProjBulderApp::GetProjectTreeInfo(), CAlignFormatUtil::GetProtocol(), CProjBulderApp::GetRegSettings(), IRegistry::GetString(), CSysLog::HonorRegistrySettings(), SNetCacheAPIImpl::Init(), SNetICacheClientImpl::Init(), SNetServerPoolImpl::Init(), SThrottleParams::SIOFailureThreshold::Init(), SThrottleParams::Init(), SNetScheduleAPIImpl::Init(), SNetServiceImpl::Init(), CCgiApplication::Init(), CGlCgiImageApplication::Init(), CCgiRedirectApplication::Init(), SNetScheduleAPIImpl::InitAffinities(), CIdMapperConfig::Initialize(), CNCDistributionConf::Initialize(), CNCDistributionConf::InitMirrorConfig(), CMatrixScoringMethod::Load(), CCompoundRWRegistry::LoadBaseRegistries(), CTemplateScoringMethod::LoadInfo(), NS_ValidateServiceToQueueSection(), CProjBulderApp::ParseArguments(), CCgiRedirectApplication::ProcessRequest(), impl::CDriverContext::ReadDBConfParams(), CNetScheduleServer::ReadServicesConfig(), CNCDistributionConf::ReConfig(), RegistryGetBoolean(), RegistryGetDouble(), RegistryGetInteger(), RegistryGetString(), RegistryIsValidBoolean(), RegistryIsValidDouble(), RegistryIsValidInteger(), RegistryIsValidString(), CCgiRedirectApplication::RemapEntries(), CAutoNcbiConfigFile::RemoveBLASTDBEnvVar(), CNgAlignApp::Run(), CLDS2IndexerApplication::Run(), CDemoApp::Run(), s_FindPathToGeneInfoFiles(), s_FindPathToWM(), s_GetConfigString(), NDirectNetStorageImpl::s_GetFTConfig(), NDirectNetStorageImpl::s_GetICClient(), s_ReadPerClientConfig(), s_ReadServerParams(), s_ReadStorageParams(), CBrowserUtils::SendToBrowser(), IRegistry::Write(), CNgAlignApp::x_AddAligners(), CNgAlignApp::x_AddFilters(), CNgAlignApp::x_AddScorers(), CMakeBlastDBApp::x_BuildDatabase(), CBlastUsageReport::x_CheckBlastUsageEnv(), CDebugDumpViewer::x_CheckLocation(), CNgAlignApp::x_CreateBlastAligner(), CNgAlignApp::x_CreateFileLoadAligner(), CNgAlignApp::x_CreateMergeAligner(), CNgAlignApp::x_CreateRemoteBlastAligner(), CNgAlignApp::x_CreateSequenceSet(), CTwoLayerRegistry::x_Get(), CCompoundRWRegistry::x_Get(), CNetCacheBlobFetchApp::x_GetInitString(), CBlastHitMatrixCGIApplication::x_GetSeqAnnot(), CDataTypeModule::x_GetVar(), CNcbiApplicationAPI::x_HonorStandardSettings(), CDisplaySeqalign::x_InitAlignParams(), CBlastFormat::x_InitAlignTemplates(), CBlastFormat::x_InitDeflineTemplates(), CDisplaySeqalign::x_InitSeqUrl(), CTaxFormat::x_InitTaxFormat(), SDataLoaderConfig::x_LoadBlastDbDataLoaderConfig(), SDataLoaderConfig::x_LoadDataLoadersConfig(), CDiagContext::x_LogEnvironment(), CNcbiApplicationAPI::x_LogOptions(), CDisplaySeqalign::x_PreProcessSingleAlign(), IRWRegistry::x_Read(), CNcbiTestApplication::x_ReadConfiguration(), SPubseqGatewaySettings::x_ReadCountersSection(), CSplitQueryTestFixture::x_ReadQueryBoundsPerChunk(), CSplitQueryTestFixture::x_ReadVectorOfVectorsForTest(), CSatInfoSchema::x_ResolveConnectionByServiceName(), CCompoundRWRegistry::x_Set(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CDataLoadersUtil::x_SetupVDBDataLoader(), CSequenceSearchForm::x_UpdateFileList(), COrfSearchForm::x_UpdateKozak(), and CBlastDBCmdApp::x_UseLongSeqIds().
|
virtual |
Get boolean value of specified parameter name.
Like "GetString()", plus convert the value into boolean.
err_action | What to do if error encountered in converting parameter value. |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 391 of file ncbireg.cpp.
References IRegistry::eErrPost, IRegistry::eReturn, ERR_POST_X, IRegistry::eThrow, flags, IRegistry::Get(), NCBI_RETHROW_SAME, NStr::StringToBool(), and rapidjson::value.
Referenced by CCgiApplication::AddLBCookie(), BDB_CreateEnv(), NWinHook::CApiHookMgr::CApiHookMgr(), CAppConfig::CAppConfig(), CCgiStatistics::Compose(), CAuthListValidator::Configure(), CDBConnectionFactory::ConfigureFromRegistry(), ConfigureLogging(), SSection::Get(), CCgiApplication::GetFastCGIChannelErrors(), CCgiApplication::GetFastCGIComplete_Request_On_Sigterm(), CCgiApplication::GetFastCGIDebug(), CCgiApplication::GetFastCGIHonorExitRequest(), CCgiApplication::GetFastCGIStatLog(), CCgiApplication::GetFastCGIStopIfFailed(), IRegistry::GetValue(), CGridCgiApplication::InitGridClient(), CNCDistributionConf::Initialize(), CMatrixScoringMethod::Load(), NS_ValidateBool(), NSTValidateBool(), NSTValidateServices(), CGenBankUIDataSource::Open(), SQueueParameters::ReadScrambleJobKeys(), CCassConnectionFactory::ReloadConfig(), CAsn2FlatApp::Run(), CCgiApplication::Run(), CBDBEnvKeeperApp::Run(), s_InitAllKNS(), s_IsHugeMode(), s_ReadServerParams(), s_ReadSpecificParams(), CFeaturePanel::SetInputObject(), CNgAlignApp::x_CreateBlastAligner(), CNSTServiceRegistry::x_GetMetadataServices(), NSNPWebServices::x_GetSearchHost(), CGuiObjectInfoVariation::x_GetTooltipService(), CNcbiApplicationAPI::x_HonorStandardSettings(), CPSGS_SNPProcessor::x_LoadConfig(), SPubseqGatewaySettings::x_ReadCassandraProcessorSection(), SPubseqGatewaySettings::x_ReadCDDProcessorSection(), SPubseqGatewaySettings::x_ReadDebugSection(), SPubseqGatewaySettings::x_ReadHealthSection(), SPubseqGatewaySettings::x_ReadIPGSection(), SPubseqGatewaySettings::x_ReadServerSection(), SPubseqGatewaySettings::x_ReadSNPProcessorSection(), CSplitQueryTestFixture::x_ReadSplitQueryInfoForTest(), SPubseqGatewaySettings::x_ReadSSLSection(), SPubseqGatewaySettings::x_ReadWGSProcessorSection(), and CRemoteUpdater::xSetFromConfig().
|
virtual |
Get comment of the registry entry "section:name".
section | Section name. If passed empty string, then get the registry comment. |
name | Parameter name. If empty string, then get the "section" comment. |
flags | To control search. |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 450 of file ncbireg.cpp.
References _TRACE, IRegistry::fInternalSpaces, flags, IRegistry::fLayerFlags, IRegistry::fSectionlessEntries, IRegistry::IsNameSection(), kEmptyStr, NStr::PrintableString(), IRegistry::sm_InSectionCommentName, NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), and IRegistry::x_GetComment().
Referenced by CSynRegistryToIRegistry::GetComment(), IRegistry::Write(), CTwoLayerRegistry::x_GetComment(), CCompoundRWRegistry::x_GetComment(), CNcbiRegistry::x_GetComment(), and IRWRegistry::x_Read().
|
inline |
Subregistries whose priority is less than the core cutoff (ePriority_Default by default) will be ignored for fJustCore operations, such as Write by default.
Definition at line 687 of file ncbireg.hpp.
References CCompoundRegistry::m_CoreCutoff.
Referenced by CCompoundRWRegistry::GetCoreCutoff().
CCompoundRWRegistry::TPriority CCompoundRWRegistry::GetCoreCutoff | ( | void | ) | const |
Subregistries whose priority is less than the core cutoff (ePriority_Reserved by default) will be ignored for fJustCore operations, such as Write by default.
Definition at line 1767 of file ncbireg.cpp.
References CCompoundRegistry::GetCoreCutoff(), and CCompoundRWRegistry::m_AllRegistries.
Referenced by CCompoundRWRegistry::x_Enumerate().
|
virtual |
Get double value of specified parameter name.
Like "GetString()", plus convert the value into double.
err_action | What to do if error encountered in converting parameter value. |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 420 of file ncbireg.cpp.
References IRegistry::eErrPost, IRegistry::eReturn, ERR_POST_X, IRegistry::eThrow, NStr::fDecimalPosixOrLocal, flags, IRegistry::Get(), NCBI_RETHROW_SAME, NStr::StringToDouble(), and rapidjson::value.
Referenced by CAuthListValidator::Configure(), CPSGS_CDDProcessor::CPSGS_CDDProcessor(), IRegistry::GetValue(), CColumnScoringMethod::Load(), CMatrixScoringMethod::Load(), NS_ValidateDouble(), NS_ValidateServerSection(), NSTValidateDatabaseSection(), NSTValidateDouble(), SQueueParameters::ReadBlacklistTime(), SQueueParameters::ReadClientRegistryTimeoutAdmin(), SQueueParameters::ReadClientRegistryTimeoutReader(), SQueueParameters::ReadClientRegistryTimeoutSubmitter(), SQueueParameters::ReadClientRegistryTimeoutUnknown(), SQueueParameters::ReadClientRegistryTimeoutWorkerNode(), SQueueParameters::ReadMaxPendingReadWaitTimeout(), SQueueParameters::ReadMaxPendingWaitTimeout(), SQueueParameters::ReadNotifHandicap(), SQueueParameters::ReadNotifHifreqInterval(), SQueueParameters::ReadNotifHifreqPeriod(), SQueueParameters::ReadPendingTimeout(), SQueueParameters::ReadReadBlacklistTime(), SQueueParameters::ReadReaderTimeout(), SQueueParameters::ReadReadTimeout(), SQueueParameters::ReadRunTimeout(), SQueueParameters::ReadTimeout(), SQueueParameters::ReadWnodeTimeout(), CNSTDatabase::SetParameters(), CNgAlignApp::x_AddScorers(), CNgAlignApp::x_CreateMergeAligner(), CNSTDatabase::x_ReadDbAccessInfo(), and SPubseqGatewaySettings::x_ReadServerSection().
string IRegistry::GetEncryptedString | ( | const string & | section, |
const string & | name, | ||
TFlags | flags = 0 , |
||
const string & | password = kEmptyStr |
||
) | const |
Get a value that was (potentially) stored encrypted.
Similar to Get(), but if the value appears to have been encrypted, return the corresponding plaintext. Otherwise, unless flags contains fPlaintextAllowed, throw an exception to let the user know of inappropriate plaintext in the configuration file.
password | Explicitly supply a password. If absent, will try standard keys, honoring any key domain recorded in the value. |
Definition at line 329 of file ncbireg.cpp.
References CNcbiEncrypt::Decrypt(), flags, IRegistry::fPlaintextAllowed, IRegistry::Get(), CNcbiEncrypt::IsEncrypted(), NCBI_RETHROW2, NCBI_THROW2, and NStr::TruncateSpaces().
Referenced by NS_ValidateServerSection(), SNS_Parameters::Read(), SNetStorageServerParameters::Read(), SEutilsParams::SEutilsParams(), SPubseqGatewaySettings::x_ReadAdminSection(), CNSTDatabase::x_ReadDbAccessInfo(), and CNetStorageGCDatabase::x_ReadDbAccessInfo().
|
overridevirtual |
Translate from the error code value to its string representation.
Reimplemented from CParseTemplException< CCoreException >.
Definition at line 2106 of file ncbireg.cpp.
References CRegistryException::eDecryptionFailed, CRegistryException::eEntry, CRegistryException::eErr, CRegistryException::eSection, CRegistryException::eUnencrypted, CRegistryException::eValue, CParseTemplException< CCoreException >::GetErrCode(), and CException::GetErrCodeString().
|
virtual |
Get integer value of specified parameter name.
Like "GetString()", plus convert the value into integer.
err_action | What to do if error encountered in converting parameter value. |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 362 of file ncbireg.cpp.
References IRegistry::eErrPost, IRegistry::eReturn, ERR_POST_X, IRegistry::eThrow, flags, IRegistry::Get(), NCBI_RETHROW_SAME, NStr::StringToInt(), and rapidjson::value.
Referenced by CCgiApplication::AddLBCookie(), BDB_CreateEnv(), CCgiStatistics::Compose(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CDBConnectionFactory::ConfigureFromRegistry(), ConfigureLogging(), ConfigureScheduler(), ConfigureSockets(), ConfigureThreads(), ConfigureTimeMan(), CPSGS_CDDProcessor::CPSGS_CDDProcessor(), CCgiApplication::CreateContextWithFlags_Default(), CCgiApplication::CreateFastCGIWatchFile(), CSampleJob::CSampleJob(), CProjBulderApp::EnumOpt(), CRmtScriptTimeout::Get(), SSection::Get(), CCgiApplication::GetFastCGIIterations(), CCgiApplication::GetFastCGIMTMaxThreads(), CCgiApplication::GetFastCGIWatchFileRestartDelay(), CCgiApplication::GetFastCGIWatchFileTimeout(), SPubseqGatewaySettings::GetProcessorMaxConcurrency(), IRegistry::GetValue(), CGridCgiApplication::InitGridClient(), CNCDistributionConf::Initialize(), CStdAnnotTypes::LoadTypes(), NS_ValidateInt(), NS_ValidateRegistrySettings(), NS_ValidateServerSection(), NSTValidateInt(), NSTValidateServerSection(), CSplitQueryTestFixture::QuerySplitter_BlastnMultiQueryMultiChunk(), CSplitQueryTestFixture::QuerySplitter_BlastnSingleQueryMultiChunk(), CSplitQueryTestFixture::QuerySplitter_BlastxMultiQueryMultiChunk(), CSplitQueryTestFixture::QuerySplitter_BlastxSingleQueryMultiChunk(), SQueueParameters::ReadClientRegistryMinAdmins(), SQueueParameters::ReadClientRegistryMinReaders(), SQueueParameters::ReadClientRegistryMinSubmitters(), SQueueParameters::ReadClientRegistryMinUnknowns(), SQueueParameters::ReadClientRegistryMinWorkerNodes(), SQueueParameters::ReadDumpAffBufferSize(), SQueueParameters::ReadDumpBufferSize(), SQueueParameters::ReadDumpClientBufferSize(), SQueueParameters::ReadDumpGroupBufferSize(), SQueueParameters::ReadFailedRetries(), SQueueParameters::ReadMaxJobsPerClient(), SQueueParameters::ReadNotifLofreqMult(), SQueueParameters::ReadReadFailedRetries(), ReConfig_Scheduler(), CCassConnectionFactory::ReloadConfig(), CBDBEnvKeeperApp::Run(), s_ConfigureTaskServer(), NDirectNetStorageImpl::s_GetRelocateChunk(), s_ReadServerParams(), s_ReadSpecificParams(), s_ReadVariableParams(), CSplitCacheApp::SetupCache(), TestDelay(), CNgAlignApp::x_CreateBlastAligner(), CNgAlignApp::x_CreateInversionMergeAligner(), CNgAlignApp::x_CreateMergeAligner(), CNgAlignApp::x_CreateRemoteBlastAligner(), CNcbiApplicationAPI::x_HonorStandardSettings(), CRmtFileStatus::x_Init(), CPSGS_SNPProcessor::x_LoadConfig(), CPSGS_WGSProcessor::x_LoadConfig(), SPubseqGatewaySettings::x_ReadAutoExcludeSection(), SPubseqGatewaySettings::x_ReadIPGSection(), SPubseqGatewaySettings::x_ReadMyNCBISection(), CSplitQueryTestFixture::x_ReadQueryBoundsPerChunk(), SPubseqGatewaySettings::x_ReadServerSection(), CSplitQueryTestFixture::x_ReadSplitQueryInfoForTest(), SPubseqGatewaySettings::x_ReadStatisticsSection(), CSplitQueryTestFixture::x_ReadVectorOfVectorsForTest(), and CRemoteUpdater::xSetFromConfig().
|
inlinevirtual |
Can be overriden to speed enumeration.
Reimplemented in CNcbiEnvRegMapper, and CSimpleEnvRegMapper.
Definition at line 69 of file env_reg.hpp.
References kEmptyStr.
|
virtual |
Can be overriden to speed enumeration.
Reimplemented from IEnvRegMapper.
Definition at line 320 of file env_reg.cpp.
References CSimpleEnvRegMapper::m_Prefix.
|
virtual |
Can be overriden to speed enumeration.
Reimplemented from IEnvRegMapper.
Definition at line 446 of file env_reg.cpp.
References CNcbiEnvRegMapper::sm_Prefix.
|
virtual |
Get the parameter string value.
Similar to the "Get()", but if the configuration parameter is not found, then return 'default_value' rather than empty string.
Reimplemented in CSynRegistryToIRegistry.
Definition at line 321 of file ncbireg.cpp.
References flags, IRegistry::Get(), and rapidjson::value.
Referenced by CCgiApplication::AddLBCookie(), BDB_CreateEnv(), CDataSourceInitializer::CDataSourceInitializer(), CGridRPCBaseClient< CAsnBinCompressed >::CGridRPCBaseClient(), CNcbiApplogApp::Cmd_Health(), CDBUDRandomMapper::ConfigureFromRegistry(), CDBUDPriorityMapper::ConfigureFromRegistry(), CDBUniversalMapper::ConfigureFromRegistry(), ConfigureLogging(), CPluginManager< TClass >::CPluginManager(), CGraphCacheFactory::CreateObject(), CRemoteAppLauncher::CRemoteAppLauncher(), CSampleJob::CSampleJob(), CProjBulderApp::GetConfigureMacro(), CProjBulderApp::GetDatatoolCommandLine(), CProjBulderApp::GetDatatoolId(), CProjBulderApp::GetDatatoolPathForApp(), CProjBulderApp::GetDatatoolPathForLib(), GetDefaultLogLocation(), CCgiApplication::GetDefaultLogPath(), GetDefaultTmsContext(), GetDllsList(), GetHostedLibs(), GetLinksURL(), CProjBulderApp::GetRegSettings(), CPtbRegistry::GetString(), IRegistry::GetValue(), CSeqTextDemoDlg::Init(), CNCDistributionConf::Initialize(), IsProducedByDatatool(), CColorTableMethod::Load(), CMatrixScoringMethod::Load(), LoadConfigInfoByNames(), CTemplateScoringMethod::LoadInfo(), CStdAnnotTypes::LoadTypes(), NS_ValidateString(), NSTValidateDatabaseSection(), NSTValidateProlongValue(), NSTValidateString(), NSTValidateTTLValue(), CGenBankUIDataSource::Open(), SExceptionMessage::operator()(), CProjBulderApp::ProcessLocationMacros(), CCassConnectionFactory::ProcessParams(), SNS_Parameters::Read(), SNetStorageServerParameters::Read(), SQueueParameters::ReadClass(), SQueueParameters::ReadDescription(), SNS_Parameters::ReadErrorEmulatorSection(), SQueueParameters::ReadLinkedSections(), SQueueParameters::ReadMaxInputSize(), SQueueParameters::ReadMaxOutputSize(), SQueueParameters::ReadProgram(), SQueueParameters::ReadReaderHosts(), SQueueParameters::ReadSubmHosts(), SQueueParameters::ReadWnodeHosts(), CCassConnectionFactory::ReloadConfig(), CAsn2FlatApp::Run(), CTrackMgrClient::s_Ask(), s_GetMandatoryFields(), s_init_UseGeoLocNameForCountry(), CGraphTrack::s_InitICache(), s_ReadPerClientConfig(), s_ReadRanges(), s_ReadServerParams(), s_ReadSpecificParams(), s_ReadStorageParams(), s_ReadVariableParams(), ColumnarVcfCache::SetInfoFields(), CSplitCacheApp::SetupCache(), SEutilsParams::SEutilsParams(), CNetStorageGCApp::x_CheckExpiration(), CTemplateScoringMethod::x_GetColor(), CODBC_Connection::x_GetDriverName(), CSDB_Decryptor::x_GetKey(), NSNPWebServices::x_GetSearchHost(), CGuiObjectInfoVariation::x_GetTooltipService(), CNcbiApplicationAPI::x_HonorStandardSettings(), CRmtFileStatus::x_Init(), CDataCrawlerCache::x_InitICache(), CPSGS_SNPProcessor::x_LoadConfig(), SPubseqGatewaySettings::x_ReadAdminSection(), SErrorEmulatorParameter::x_ReadCommon(), CNSTDatabase::x_ReadDbAccessInfo(), CNetStorageGCDatabase::x_ReadDbAccessInfo(), SPubseqGatewaySettings::x_ReadHealthSection(), CQueueDataBase::x_ReadLinkedSections(), SPubseqGatewaySettings::x_ReadLmdbCacheSection(), SPubseqGatewaySettings::x_ReadMyNCBISection(), SPubseqGatewaySettings::x_ReadServerSection(), CNSTServiceRegistry::x_ReadServiceProperties(), SPubseqGatewaySettings::x_ReadSSLSection(), SPubseqGatewaySettings::x_ReadStatisticsSection(), CUIToolRegistry::x_ReadToolInfo(), CNetScheduleDApp::x_SaveSection(), and CRemoteUpdater::xSetFromConfig().
|
inline |
Definition at line 268 of file ncbireg.hpp.
References flags, and IRegistry::GetBool().
|
inline |
Overloading of getters for generic programming.
Definition at line 250 of file ncbireg.hpp.
References flags, and IRegistry::GetString().
Referenced by CSynRegistry::TGet().
|
inline |
Definition at line 277 of file ncbireg.hpp.
References flags, and IRegistry::GetDouble().
|
inline |
Definition at line 259 of file ncbireg.hpp.
References flags, and IRegistry::GetInt().
|
virtual |
Reimplemented in CSynRegistryToIRegistry.
Definition at line 290 of file ncbireg.cpp.
References _TRACE, IRegistry::fCountCleared, IRegistry::fInternalCheckedAndLocked, IRegistry::fInternalSpaces, flags, IRegistry::fLayerFlags, IRegistry::fSectionlessEntries, IRegistry::fSections, IRegistry::fTPFlags, IRegistry::IsNameEntry(), IRegistry::IsNameSection(), NStr::PrintableString(), IRegistry::sm_InSectionCommentName, NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), and IRegistry::x_HasEntry().
Referenced by BDB_CreateEnv(), CBlastFormatUtil::BlastPrintReference(), BOOST_AUTO_TEST_CASE(), CRemoteAppLauncher::CRemoteAppLauncher(), FindBlastDbPath(), CSeqDBAtlas::GenerateSearchPath(), CCodeGenerator::GetOpt(), SPubseqGatewaySettings::GetProcessorMaxConcurrency(), CAlignFormatUtil::GetProtocol(), CSynRegistry::Has(), CPtbRegistry::HasEntry(), CNcbiRegistry::IncludeNcbircIfAllowed(), CColorTableMethod::Load(), CMatrixScoringMethod::Load(), NS_ValidateDataSize(), NSTValidateServices(), SNS_Parameters::Read(), impl::CDriverContext::ReadDBConfParams(), CGridCommandLineInterfaceApp::Run(), NDirectNetStorageImpl::s_GetSection(), s_ReadPerClientConfig(), s_ReadRanges(), s_ReadSpecificParams(), CSynRegistry::TGet(), CBlastUsageReport::x_CheckBlastUsageEnv(), CMemoryRegistry::x_Enumerate(), CNSTServiceRegistry::x_GetMetadataServices(), CDataTypeModule::x_GetVar(), CTwoLayerRegistry::x_HasEntry(), CCompoundRWRegistry::x_HasEntry(), SDataLoaderConfig::x_LoadBlastDbDataLoaderConfig(), SDataLoaderConfig::x_LoadDataLoadersConfig(), IRWRegistry::x_Read(), CNcbiRegistry::x_Read(), SPubseqGatewaySettings::x_ReadServerSection(), CNSTServiceRegistry::x_ReadServiceProperties(), CNetScheduleDApp::x_SaveSection(), CCompoundRWRegistry::x_Set(), and CRemoteUpdater::xSetFromConfig().
bool CNcbiRegistry::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:
flags | Registry flags to be applied when reading the system configuration file. Must also contain fWithNcbirc (which will be filtered out before calling any other methods) for the call to have any effect. |
Definition at line 1634 of file ncbireg.cpp.
References CMetaRegistry::SEntry::actual_name, Critical(), IRegistry::Empty(), CMetaRegistry::eName_RcOrIni, ERR_POST_X, flags, IRegistry::fWithNcbirc, CRef< C, Locker >::GetPointer(), IRegistry::HasEntry(), CMetaRegistry::Load(), CNcbiRegistry::m_SysRegistry, CMetaRegistry::SEntry::registry, CRef< C, Locker >::Reset(), and Warning().
Referenced by BOOST_AUTO_TEST_CASE(), CNcbiRegistry::CNcbiRegistry(), CNcbiApplicationAPI::LoadConfig(), and CNcbiRegistry::x_Read().
Definition at line 84 of file ncbireg.cpp.
References flags, IRegistry::fSectionlessEntries, IRegistry::IsNameSection(), and str().
Referenced by CNcbiEnvRegMapper::EnvToReg(), IRegistry::Get(), IRegistry::HasEntry(), IRWRegistry::Set(), IRWRegistry::SetComment(), IRWRegistry::Unset(), and IRWRegistry::x_Read().
Check if "str" consists of alphanumeric and '_' only Treat the case of set fSectionlessEntries separately.
Definition at line 68 of file ncbireg.cpp.
References flags, IRegistry::fSectionlessEntries, ITERATE, s_IsNameSectionSymbol(), and str().
Referenced by IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), CNcbiEnvRegMapper::EnvToReg(), IRegistry::Get(), IRegistry::GetComment(), IRegistry::HasEntry(), IRegistry::IsNameEntry(), IRWRegistry::Set(), IRWRegistry::SetComment(), IRWRegistry::Unset(), CMemoryRegistry::x_Enumerate(), and IRWRegistry::x_Read().
bool CCompoundRWRegistry::LoadBaseRegistries | ( | TFlags | flags = 0 , |
int | metareg_flags = 0 , |
||
const string & | path = kEmptyStr |
||
) |
Load any base registries listed in [NCBI].Inherits; returns true if able to load at least one, false otherwise.
flags | Registry flags to apply. |
metareg_flags | Metaregistry flags to apply. |
path | Where to look for base registries listed with relative paths. |
Definition at line 1821 of file ncbireg.cpp.
References _TRACE, CCompoundRWRegistry::CCompoundRWRegistry(), Critical(), CMetaRegistry::eName_AsIs, CMetaRegistry::eName_Ini, set< Key, Compare >::end(), NStr::EndsWith(), CCompoundRWRegistry::ePriority_MaxUser, ERR_POST, IRegistry::fCaseFlags, set< Key, Compare >::find(), CCompoundRWRegistry::FindByName(), first(), IRegistry::fJustCore, flags, NStr::fSplit_CanSingleQuote, NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, IRegistry::Get(), CRef< C, Locker >::GetPointer(), i, set< Key, Compare >::insert(), ITERATE, CMetaRegistry::Load(), CCompoundRWRegistry::m_AllRegistries, CCompoundRWRegistry::m_BaseRegNames, CCompoundRWRegistry::m_Flags, CCompoundRWRegistry::m_MainRegistry, CCompoundRegistry::m_PriorityMap, names, NULL, CMetaRegistry::SEntry::registry, REVERSE_ITERATE, set< Key, Compare >::size(), CCompoundRWRegistry::sm_BaseRegNamePrefix, CNcbiRegistry::sm_FileRegName, NStr::Split(), and CCompoundRWRegistry::x_Add().
Referenced by CNcbiRegistry::CNcbiRegistry(), CMetaRegistry::Load(), CMetaRegistry::SEntry::Reload(), CCompoundRWRegistry::x_Read(), and CNcbiRegistry::x_Read().
Definition at line 925 of file ncbireg.cpp.
References flags, IRegistry::fNoOverride, and rapidjson::value.
Referenced by CEnvironmentRegistry::x_Set(), CMemoryRegistry::x_Set(), and CMemoryRegistry::x_SetComment().
bool IRegistry::Modified | ( | TFlags | flags = fPersistent | ) | const |
Verify if persistent values have been modified.
flags | Layer(s) to check. |
Definition at line 173 of file ncbireg.cpp.
References flags, IRegistry::fLayerFlags, IRegistry::fPersistent, IRegistry::fTransient, IRegistry::x_CheckFlags(), and IRegistry::x_Modified().
Referenced by CMetaRegistry::Load(), CMetaRegistry::SEntry::Reload(), IRegistry::Write(), CTwoLayerRegistry::x_Modified(), CCompoundRWRegistry::x_Modified(), CSynRegistryToIRegistry::x_Modified(), and IRWRegistry::x_Read().
CRegistryException::NCBI_EXCEPTION_DEFAULT2 | ( | CRegistryException | , |
CParseTemplException< CCoreException > | , | ||
std::string::size_type | |||
) |
IRWRegistry * IRWRegistry::Read | ( | CNcbiIstream & | is, |
TFlags | flags = 0 , |
||
const string & | path = kEmptyStr |
||
) |
Read and parse the stream "is", and merge its content with current Registry entries.
Once the Registry has been initialized by the constructor, it is possible to load other parameters from other files using this method.
is | Input stream to read and parse. NOTE: if the stream is a file, it must be opened in binary mode! |
flags | How parameters are stored. The default is for all values to be read as persistent with the capability of overriding any previously loaded value associated with the same name. The default can be modified by specifying "fTransient", "fNoOverride" or "fTransient | fNoOverride". If there is a conflict between the old and the new (loaded) entry value and if "fNoOverride" flag is set, then just ignore the new value; otherwise, replace the old value by the new one. If "fTransient" flag is set, then store the newly retrieved parameters as transient; otherwise, store them as persistent. |
path | Where to look for base registries listed with relative paths. |
Definition at line 605 of file ncbireg.cpp.
References eBOM_Discard, eEncodingForm_Utf16Foreign, eEncodingForm_Utf16Native, IRegistry::fCountCleared, IRegistry::fIgnoreErrors, IRegistry::fInternalSpaces, IRegistry::fJustCore, flags, IRegistry::fNoOverride, IRegistry::fSectionlessEntries, IRegistry::fTransient, IRegistry::fWithNcbirc, GetTextEncodingForm(), NULL, ReadIntoUtf8(), IRegistry::x_CheckFlags(), and IRWRegistry::x_Read().
Referenced by CNcbiApplogApp::Cmd_Health(), CNcbiRegistry::CNcbiRegistry(), CIdMapperConfig::DescribeContexts(), CIdMapperConfig::Initialize(), CMetaRegistry::Load(), CCodeGenerator::LoadConfig(), CNcbiApplicationAPI::LoadConfig(), LoadRegistry(), CStdAnnotTypes::LoadTypes(), CGenBankUIDataSource::Open(), CPtbRegistry::Read(), CMetaRegistry::SEntry::Reload(), CSamplePhoneHomePolicy::Restore(), s_LoadConfFile(), and CNcbiRegistry::x_Read().
void IRegistry::ReadLock | ( | void | ) |
Support for locking.
Individual operations already use these to ensure atomicity, but the locking mechanism is recursive, so users can also make entire sequences of operations atomic.
Definition at line 537 of file ncbireg.cpp.
References IRegistry::m_Lock, CRWLock::ReadLock(), and IRegistry::x_ChildLockAction().
Returns empty strings for unsupported (section, name) pairs.
Implements IEnvRegMapper.
Definition at line 298 of file env_reg.cpp.
References kEmptyStr, CSimpleEnvRegMapper::m_Prefix, CSimpleEnvRegMapper::m_Section, and CSimpleEnvRegMapper::m_Suffix.
Returns empty strings for unsupported (section, name) pairs.
Implements IEnvRegMapper.
Definition at line 329 of file env_reg.cpp.
References NPOS, NStr::ReplaceInPlace(), result, CNcbiEnvRegMapper::sm_Prefix, NStr::StartsWith(), and NStr::ToUpper().
|
pure virtual |
Returns empty strings for unsupported (section, name) pairs.
Implemented in CNcbiEnvRegMapper, and CSimpleEnvRegMapper.
Remove sub-registry "reg".
Throw an exception if "reg" is not a (direct) sub-registry.
Definition at line 1207 of file ncbireg.cpp.
References map_checker< Container >::erase(), multimap_checker< Container >::erase(), CCompoundRegistry::m_NameMap, CCompoundRegistry::m_PriorityMap, NCBI_THROW2, and NON_CONST_ITERATE.
Referenced by CCompoundRWRegistry::Remove().
Remove sub-registry "reg".
Throw an exception if "reg" is not a (direct) sub-registry.
Definition at line 1795 of file ncbireg.cpp.
References CRef< C, Locker >::GetPointer(), CCompoundRWRegistry::m_AllRegistries, CCompoundRWRegistry::m_MainRegistry, NCBI_THROW2, and CCompoundRegistry::Remove().
Referenced by CCompoundRWRegistry::x_Clear().
void CEnvironmentRegistry::RemoveMapper | ( | const IEnvRegMapper & | mapper | ) |
Definition at line 79 of file env_reg.cpp.
References multimap_checker< Container >::erase(), CEnvironmentRegistry::m_PriorityMap, NCBI_THROW2, and NON_CONST_ITERATE.
bool IRWRegistry::Set | ( | const string & | section, |
const string & | name, | ||
const string & | value, | ||
TFlags | flags = 0 , |
||
const string & | comment = kEmptyStr |
||
) |
Set the configuration parameter value.
value | Value that the parameter is set to. |
flags | To control search. Valid flags := { fPersistent, fNoOverride, fTruncate } If there was already an entry with the same <section,name> key: if "fNoOverride" flag is set then do not override old value and return FALSE; else override the old value and return TRUE. If "fPersistent" flag is set then store the entry as persistent; else store it as transient. If "fTruncate" flag is set then truncate the leading and trailing spaces – " \r\t\v" (NOTE: ' ' is not considered a space!). |
comment | Optional comment string describing parameter. |
Definition at line 826 of file ncbireg.cpp.
References _ASSERT, _TRACE, IRegistry::fCountCleared, IRegistry::fInternalSpaces, flags, IRegistry::fNoOverride, IRegistry::fPersistent, IRegistry::fSectionlessEntries, IRegistry::fTruncate, IRegistry::IsNameEntry(), IRegistry::IsNameSection(), NPOS, NStr::PrintableString(), s_ConvertComment(), NStr::TruncateSpaces(), rapidjson::value, IRegistry::x_CheckFlags(), IRWRegistry::x_Set(), and IRegistry::x_SetModifiedFlag().
Referenced by CCodeGenerator::AddConfigLine(), BOOST_AUTO_TEST_CASE(), CAutoNcbiConfigFile::CAutoNcbiConfigFile(), CNcbiApplogApp::Cmd_Health(), SBDB_CacheUnitStatistics::ConvertToRegistry(), CCodeGenerator::ExcludeTypes(), CDebugArgs::ExtractAlgorithmOptions(), GetAsnDataViaHTTP(), CRemoteCgiApp::Init(), CStreamTestApp::Init(), MakePluginManagerParamTree(), NCBITEST_AUTO_INIT(), CGenBankUIDataSource::Open(), CCgiApplication::ProcessHttpReferer(), CNCDistributionConf::ReConfig(), RegistrySetBoolean(), RegistrySetDouble(), RegistrySetInteger(), RegistrySetString(), CAutoNcbiConfigFile::RemoveBLASTDBEnvVar(), CSamplePhoneHomePolicy::Restore(), CGridCommandLineInterfaceApp::Run(), CAsnSubCacheCreateApplication::Run(), CDemoApp::Run(), s_REG_Set(), s_ScanRecursive(), CColorTableMethod::Save(), CTemplateScoringMethod::SaveInfo(), CAutoNcbiConfigFile::SetNucleotideBlastDbDataLoader(), CAutoNcbiConfigFile::SetProteinBlastDbDataLoader(), CGridCommandLineInterfaceApp::SetUp_NetCache(), CSplitCacheApp::SetupCache(), IRWRegistry::SetValue(), IRWRegistry::x_Read(), CNcbiRegistry::x_Read(), CTwoLayerRegistry::x_Set(), CCompoundRWRegistry::x_Set(), CSequenceSearchForm::x_UpdateFileList(), COrfSearchForm::x_UpdateKozak(), and CAutoNcbiConfigFile::~CAutoNcbiConfigFile().
bool IRWRegistry::SetComment | ( | const string & | comment, |
const string & | section = kEmptyStr , |
||
const string & | name = kEmptyStr , |
||
TFlags | flags = 0 |
||
) |
Set comment "comment" for the registry entry "section:name".
comment | Comment string value. Set to kEmptyStr to delete the comment. |
section | Section name. If "section" is empty string, then set as the registry comment. |
name | Parameter name. If "name" is empty string, then set as the "section" comment. |
flags | How the comment is stored. The default is for comments to be stored as persistent with the capability of overriding any previously loaded value associated with the same name. The default can be modified by specifying "fTransient", "fNoOverride" or "fTransient | fNoOverride". If there is a conflict between the old and the new comment and if "fNoOverride" flag is set, then just ignore the new comment; otherwise, replace the old comment by the new one. If "fTransient" flag is set, then store the new comment as transient (generally not desired); otherwise, store it as persistent. |
Definition at line 895 of file ncbireg.cpp.
References _TRACE, IRegistry::fCountCleared, IRegistry::fInternalSpaces, flags, IRegistry::fNoOverride, IRegistry::fPersistent, IRegistry::fTransient, IRegistry::IsNameEntry(), IRegistry::IsNameSection(), NStr::PrintableString(), s_ConvertComment(), IRegistry::sm_InSectionCommentName, NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), IRWRegistry::x_SetComment(), and IRegistry::x_SetModifiedFlag().
Referenced by IRWRegistry::x_Read(), CTwoLayerRegistry::x_SetComment(), and CCompoundRWRegistry::x_SetComment().
|
inline |
Definition at line 688 of file ncbireg.hpp.
References CCompoundRegistry::m_CoreCutoff.
Referenced by CCompoundRWRegistry::SetCoreCutoff().
void CCompoundRWRegistry::SetCoreCutoff | ( | TPriority | prio | ) |
Definition at line 1773 of file ncbireg.cpp.
References CCompoundRWRegistry::m_AllRegistries, and CCompoundRegistry::SetCoreCutoff().
void IRegistry::SetModifiedFlag | ( | bool | modified, |
TFlags | flags = fPersistent |
||
) |
Indicate whether any relevant values are out of sync with some external resource (typically a configuration file).
You should normally not need to call this explicitly.
flags | Relevant layer(s). |
Definition at line 184 of file ncbireg.cpp.
References flags, IRegistry::fLayerFlags, IRegistry::fPersistent, IRegistry::fTransient, IRegistry::x_CheckFlags(), and IRegistry::x_SetModifiedFlag().
Referenced by CMetaRegistry::Load(), CMetaRegistry::SEntry::Reload(), IRegistry::Write(), IRWRegistry::x_Read(), CTwoLayerRegistry::x_SetModifiedFlag(), CCompoundRWRegistry::x_SetModifiedFlag(), and CSynRegistryToIRegistry::x_SetModifiedFlag().
|
inline |
Definition at line 496 of file ncbireg.hpp.
References NStr::BoolToString(), flags, IRWRegistry::Set(), and rapidjson::value.
|
inline |
Overloading of setters for generic programming.
Definition at line 478 of file ncbireg.hpp.
References flags, IRWRegistry::Set(), and rapidjson::value.
|
inline |
Definition at line 505 of file ncbireg.hpp.
References flags, IRWRegistry::Set(), and rapidjson::value.
|
inline |
Definition at line 487 of file ncbireg.hpp.
References flags, NStr::IntToString(), IRWRegistry::Set(), and rapidjson::value.
|
inline |
Definition at line 624 of file ncbireg.hpp.
void IRegistry::Unlock | ( | void | ) |
Definition at line 551 of file ncbireg.cpp.
References IRegistry::m_Lock, CRWLock::Unlock(), and IRegistry::x_ChildLockAction().
Fully unset the configuration parameter value, so that HasEntry returns false.
Definition at line 867 of file ncbireg.cpp.
References _TRACE, IRegistry::fCountCleared, flags, IRegistry::fSectionlessEntries, IRegistry::fTPFlags, IRegistry::IsNameEntry(), IRegistry::IsNameSection(), NStr::PrintableString(), NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), IRegistry::x_SetModifiedFlag(), and IRWRegistry::x_Unset().
Referenced by BOOST_AUTO_TEST_CASE(), s_REG_Set(), CTwoLayerRegistry::x_Unset(), and CCompoundRWRegistry::x_Unset().
bool IRegistry::Write | ( | CNcbiOstream & | os, |
TFlags | flags = 0 |
||
) | const |
Write the registry content to output stream.
os | Output stream to write the registry to. NOTE: if the stream is a file, it must be opened in binary mode! |
flags | Layer(s) to write. By default, only persistent entries are written, and only entries from the core layer(s) are written. |
Definition at line 196 of file ncbireg.cpp.
References Endl(), entries, IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), IRegistry::EnumerateSections(), IRegistry::fCountCleared, IRegistry::fInternalSpaces, IRegistry::fJustCore, flags, IRegistry::fLayerFlags, IRegistry::fNotJustCore, IRegistry::fPersistent, IRegistry::fSectionlessEntries, IRegistry::fTransient, IRegistry::Get(), IRegistry::GetComment(), ITERATE, kEmptyStr, IRegistry::Modified(), Printable(), s_WriteComment(), IRegistry::SetModifiedFlag(), and IRegistry::x_CheckFlags().
Referenced by CNcbiApplogApp::Cmd_Health(), CMetaRegistry::Load(), CNcbiApplicationAPI::LoadConfig(), CMetaRegistry::SEntry::Reload(), CSamplePhoneHomePolicy::Restore(), CNetScheduleDApp::Run(), SaveRegistry(), CRegistryFile::ToConfigFile(), CNCMessageHandler::x_DoCmd_GetConfig(), CNetStorageHandler::x_ProcessConfiguration(), and CNetScheduleHandler::x_ProcessGetConf().
void IRegistry::WriteLock | ( | void | ) |
Definition at line 544 of file ncbireg.cpp.
References IRegistry::m_Lock, CRWLock::WriteLock(), and IRegistry::x_ChildLockAction().
Referenced by CMetaRegistry::SEntry::Reload().
|
protected |
Add an internal high-priority subregistry.
Definition at line 2095 of file ncbireg.cpp.
References CCompoundRegistry::Add(), and CCompoundRWRegistry::m_AllRegistries.
Referenced by CCompoundRWRegistry::Add(), CCompoundRWRegistry::CCompoundRWRegistry(), CCompoundRWRegistry::LoadBaseRegistries(), CNcbiRegistry::x_Init(), and CNcbiRegistry::x_Read().
|
staticprotected |
Definition at line 558 of file ncbireg.cpp.
References _TRACE, flags, and hex().
Referenced by IRWRegistry::Clear(), CNcbiRegistry::CNcbiRegistry(), IRegistry::Empty(), IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), IRegistry::EnumerateSections(), IRegistry::Get(), IRegistry::GetComment(), IRegistry::HasEntry(), IRegistry::Modified(), IRWRegistry::Read(), IRWRegistry::Set(), IRWRegistry::SetComment(), IRegistry::SetModifiedFlag(), IRWRegistry::Unset(), and IRegistry::Write().
|
protectedvirtual |
Reimplemented from IRegistry.
Definition at line 211 of file env_reg.cpp.
|
protectedvirtual |
Reimplemented from IRegistry.
Definition at line 1353 of file ncbireg.cpp.
References CCompoundRegistry::m_PriorityMap, and NON_CONST_ITERATE.
|
protectedvirtual |
Reimplemented from IRegistry.
Definition at line 1494 of file ncbireg.cpp.
|
protectedvirtual |
Reimplemented from IRegistry.
Definition at line 2014 of file ncbireg.cpp.
|
inlineprotectedvirtual |
Reimplemented in CSynRegistryToIRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, and CEnvironmentRegistry.
Definition at line 389 of file ncbireg.hpp.
Referenced by IRegistry::ReadLock(), IRegistry::Unlock(), and IRegistry::WriteLock().
|
protectedvirtual |
Called locked, like the virtual methods inherited from IRegistry.
Implements IRWRegistry.
Definition at line 216 of file env_reg.cpp.
References flags, and IRegistry::fTransient.
|
protectedvirtual |
Called locked, like the virtual methods inherited from IRegistry.
Implements IRWRegistry.
Definition at line 1055 of file ncbireg.cpp.
References map_checker< Container >::clear(), CMemoryRegistry::m_RegistryComment, and CMemoryRegistry::m_Sections.
|
protectedvirtual |
Called locked, like the virtual methods inherited from IRegistry.
Implements IRWRegistry.
Definition at line 1501 of file ncbireg.cpp.
References IRWRegistry::Clear(), flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, CTwoLayerRegistry::m_Persistent, and CTwoLayerRegistry::m_Transient.
|
protectedvirtual |
Called locked, like the virtual methods inherited from IRegistry.
Implements IRWRegistry.
Reimplemented in CNcbiRegistry.
Definition at line 2020 of file ncbireg.cpp.
References set< Key, Compare >::clear(), IRWRegistry::Clear(), CCompoundRWRegistry::FindByName(), flags, ITERATE, CCompoundRWRegistry::m_BaseRegNames, CCompoundRWRegistry::m_MainRegistry, CCompoundRWRegistry::Remove(), and CCompoundRWRegistry::sm_BaseRegNamePrefix.
Referenced by CNcbiRegistry::x_Clear().
|
protectedvirtual |
Called locked, like the virtual methods inherited from IRegistry.
Reimplemented from CCompoundRWRegistry.
Definition at line 1674 of file ncbireg.cpp.
References IRWRegistry::Clear(), flags, CNcbiRegistry::m_FileRegistry, and CCompoundRWRegistry::x_Clear().
|
protectedpure virtual |
Called locked, like the virtual methods inherited from IRegistry.
Implemented in CNcbiRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRWRegistry::Clear().
Implementations of the fundamental operations above, to be run with the lock already acquired and some basic sanity checks performed.
Implements IRegistry.
Definition at line 93 of file env_reg.cpp.
References CNcbiEnvironment::Enumerate(), ITERATE, CEnvironmentRegistry::m_Env, and CEnvironmentRegistry::m_PriorityMap.
Implementations of the fundamental operations above, to be run with the lock already acquired and some basic sanity checks performed.
Implements IRegistry.
Definition at line 947 of file ncbireg.cpp.
References map_checker< Container >::empty(), CMemoryRegistry::m_RegistryComment, and CMemoryRegistry::m_Sections.
True iff all sub-registries are empty.
Implements IRegistry.
Definition at line 1249 of file ncbireg.cpp.
References IRegistry::fJustCore, flags, CCompoundRegistry::m_CoreCutoff, CCompoundRegistry::m_PriorityMap, and REVERSE_ITERATE.
Implementations of the fundamental operations above, to be run with the lock already acquired and some basic sanity checks performed.
Implements IRegistry.
Definition at line 1373 of file ncbireg.cpp.
References IRegistry::Empty(), flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, CTwoLayerRegistry::m_Persistent, and CTwoLayerRegistry::m_Transient.
Implementations of the fundamental operations above, to be run with the lock already acquired and some basic sanity checks performed.
Implements IRegistry.
Definition at line 1900 of file ncbireg.cpp.
References IRegistry::Empty(), flags, and CCompoundRWRegistry::m_AllRegistries.
Implementations of the fundamental operations above, to be run with the lock already acquired and some basic sanity checks performed.
Implemented in CConfigRegistry, CSynRegistryToIRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRWRegistry::Clear(), and IRegistry::Empty().
|
protectedvirtual |
Implements IRegistry.
Definition at line 173 of file env_reg.cpp.
References NStr::eCase, NStr::eNocase, entries, CNcbiEnvironment::Enumerate(), NStr::Equal(), IRegistry::fInSectionComments, flags, IRegistry::fSectionCase, IRegistry::fTransient, ITERATE, CEnvironmentRegistry::m_Env, and CEnvironmentRegistry::m_PriorityMap.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1016 of file ncbireg.cpp.
References _TRACE, map_checker< Container >::end(), entries, IRegistry::fCountCleared, map_checker< Container >::find(), IRegistry::fInSectionComments, flags, IRegistry::fSectionlessEntries, IRegistry::fSections, IRegistry::HasEntry(), IRegistry::IsNameSection(), ITERATE, kEmptyStr, CMemoryRegistry::m_Sections, and CMemoryRegistry::x_GetComment().
|
protectedvirtual |
Implements IRegistry.
Definition at line 1326 of file ncbireg.cpp.
References entries, IRegistry::fInSectionComments, IRegistry::fJustCore, flags, set< Key, Compare >::insert(), ITERATE, CCompoundRegistry::m_CoreCutoff, CCompoundRegistry::m_PriorityMap, REVERSE_ITERATE, and tmp.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1450 of file ncbireg.cpp.
References _TROUBLE, entries, IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), IRegistry::fInSectionComments, flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, CTwoLayerRegistry::m_Persistent, and CTwoLayerRegistry::m_Transient.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1976 of file ncbireg.cpp.
References map_checker< Container >::end(), entries, IRegistry::fCountCleared, map_checker< Container >::find(), IRegistry::fInSectionComments, IRegistry::fJustCore, flags, CCompoundRWRegistry::GetCoreCutoff(), ITERATE, CCompoundRWRegistry::m_AllRegistries, CCompoundRWRegistry::m_ClearedEntries, CCompoundRegistry::m_PriorityMap, REVERSE_ITERATE, s_FlatKey(), and tmp.
|
protectedpure virtual |
Implemented in CConfigRegistry, CSynRegistryToIRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), and IRegistry::EnumerateSections().
|
protectedvirtual |
Implements IRegistry.
Definition at line 124 of file env_reg.cpp.
References flags.
Referenced by CEnvironmentRegistry::x_HasEntry().
|
protectedvirtual |
Implements IRegistry.
Definition at line 954 of file ncbireg.cpp.
References map_checker< Container >::end(), entries, map_checker< Container >::find(), kEmptyStr, and CMemoryRegistry::m_Sections.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1290 of file ncbireg.cpp.
References CCompoundRegistry::FindByContents(), IRegistry::fJustCore, flags, and kEmptyStr.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1411 of file ncbireg.cpp.
References flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, IRegistry::Get(), CTwoLayerRegistry::m_Persistent, CTwoLayerRegistry::m_Transient, and result.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1923 of file ncbireg.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), IRegistry::fJustCore, flags, IRegistry::Get(), kEmptyStr, CCompoundRWRegistry::m_AllRegistries, CCompoundRWRegistry::m_ClearedEntries, and s_FlatKey().
|
protectedpure virtual |
Implemented in CConfigRegistry, CSynRegistryToIRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRegistry::Get().
|
protected |
Definition at line 133 of file env_reg.cpp.
References IRegistry::fCaseFlags, flags, IRegistry::fPersistent, IRegistry::fTPFlags, CNcbiEnvironment::Get(), kEmptyStr, CEnvironmentRegistry::m_Env, CEnvironmentRegistry::m_Flags, CEnvironmentRegistry::m_PriorityMap, REVERSE_ITERATE, and NStr::ToUpper().
|
protectedvirtual |
Implements IRegistry.
Definition at line 995 of file ncbireg.cpp.
References map_checker< Container >::end(), entries, map_checker< Container >::find(), kEmptyStr, CMemoryRegistry::m_RegistryComment, CMemoryRegistry::m_Sections, and IRegistry::sm_InSectionCommentName.
Referenced by CMemoryRegistry::x_Enumerate().
|
protectedvirtual |
Implements IRegistry.
Definition at line 1307 of file ncbireg.cpp.
References multimap_checker< Container >::empty(), CCompoundRegistry::FindByContents(), IRegistry::fJustCore, flags, kEmptyStr, and CCompoundRegistry::m_PriorityMap.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1435 of file ncbireg.cpp.
References flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, IRegistry::GetComment(), CTwoLayerRegistry::m_Persistent, CTwoLayerRegistry::m_Transient, and result.
|
protectedvirtual |
Implements IRegistry.
Reimplemented in CNcbiRegistry.
Definition at line 1957 of file ncbireg.cpp.
References CCompoundRWRegistry::FindByName(), flags, IRegistry::GetComment(), CCompoundRWRegistry::m_AllRegistries, CCompoundRWRegistry::m_MainRegistry, NULL, and result.
Referenced by CNcbiRegistry::x_GetComment().
|
protectedvirtual |
Reimplemented from CCompoundRWRegistry.
Definition at line 1732 of file ncbireg.cpp.
References flags, IRegistry::GetComment(), CNcbiRegistry::m_FileRegistry, and CCompoundRWRegistry::x_GetComment().
|
protectedpure virtual |
Implemented in CConfigRegistry, CSynRegistryToIRegistry, CNcbiRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRegistry::GetComment().
|
protectedvirtual |
Implements IRegistry.
Definition at line 156 of file env_reg.cpp.
References flags, and CEnvironmentRegistry::x_Get().
|
protectedvirtual |
Implements IRegistry.
Definition at line 966 of file ncbireg.cpp.
References map_checker< Container >::end(), entries, IRegistry::fCountCleared, map_checker< Container >::find(), flags, CMemoryRegistry::m_Sections, and IRegistry::sm_InSectionCommentName.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1300 of file ncbireg.cpp.
References CCompoundRegistry::FindByContents(), and flags.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1425 of file ncbireg.cpp.
References flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, IRegistry::HasEntry(), CTwoLayerRegistry::m_Persistent, and CTwoLayerRegistry::m_Transient.
|
protectedvirtual |
Implements IRegistry.
Definition at line 1939 of file ncbireg.cpp.
References map_checker< Container >::end(), IRegistry::fCountCleared, map_checker< Container >::find(), IRegistry::fJustCore, flags, IRegistry::HasEntry(), CCompoundRWRegistry::m_AllRegistries, CCompoundRWRegistry::m_ClearedEntries, and s_FlatKey().
|
protectedpure virtual |
Implemented in CConfigRegistry, CSynRegistryToIRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRegistry::HasEntry().
|
inlineprivate |
Definition at line 1567 of file ncbireg.cpp.
References _T_STDSTRING, _TX, CCompoundRWRegistry::CCompoundRWRegistry(), CMetaRegistry::eName_AsIs, eNoOwnership, CCompoundRWRegistry::ePriority_Default, CNcbiRegistry::ePriority_Environment, CNcbiRegistry::ePriority_File, CNcbiRegistry::ePriority_Overrides, ERR_POST_ONCE, ERR_POST_X, IRegistry::fCaseFlags, CRef< C, Locker >::GetPointer(), CNcbiApplication::Instance(), CMetaRegistry::Load(), CNcbiRegistry::m_EnvRegistry, CNcbiRegistry::m_FileRegistry, CNcbiRegistry::m_Flags, CNcbiRegistry::m_OverrideRegistry, CNcbiRegistry::m_SysRegistry, NcbiSys_getenv, NULL, CMetaRegistry::SEntry::registry, CRef< C, Locker >::Reset(), CNcbiApplicationAPI::SetEnvironment(), CNcbiRegistry::sm_EnvRegName, CNcbiRegistry::sm_FileRegName, CNcbiRegistry::sm_OverrideRegName, CNcbiRegistry::sm_SysRegName, Warning(), and CCompoundRWRegistry::x_Add().
Referenced by CNcbiRegistry::CNcbiRegistry().
Reimplemented from IRegistry.
Definition at line 110 of file env_reg.cpp.
References flags, IRegistry::fTransient, and CEnvironmentRegistry::m_Modified.
True iff any sub-registry is modified.
Reimplemented from IRegistry.
Definition at line 1263 of file ncbireg.cpp.
References IRegistry::fJustCore, flags, CCompoundRegistry::m_CoreCutoff, CCompoundRegistry::m_PriorityMap, and REVERSE_ITERATE.
Reimplemented from IRegistry.
Definition at line 1387 of file ncbireg.cpp.
References flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, CTwoLayerRegistry::m_Persistent, CTwoLayerRegistry::m_Transient, and IRegistry::Modified().
Reimplemented from IRegistry.
Definition at line 1906 of file ncbireg.cpp.
References flags, CCompoundRWRegistry::m_AllRegistries, and IRegistry::Modified().
Reimplemented in CMemoryRegistry, CSynRegistryToIRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, and CEnvironmentRegistry.
Definition at line 375 of file ncbireg.hpp.
Referenced by IRegistry::Modified().
Reimplemented from IRegistry.
Definition at line 599 of file ncbireg.hpp.
References CMemoryRegistry::m_IsModified.
|
protectedvirtual |
Most implementations should not override this, but CNcbiRegistry must, to handle some special cases properly.
Reimplemented in CNcbiRegistry, and CCompoundRWRegistry.
Definition at line 630 of file ncbireg.cpp.
References eEntry, IRegistry::Empty(), NStr::EqualNocase(), ERR_POST_X, IRegistry::fCountCleared, IRegistry::fIgnoreErrors, IRegistry::fJustCore, flags, IRegistry::fNoOverride, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, IRegistry::Get(), IRegistry::GetComment(), IRegistry::HasEntry(), IRegistry::IsNameEntry(), IRegistry::IsNameSection(), isspace(), kEmptyStr, len, IRegistry::Modified(), NCBI_THROW2, NcbiGetlineEOL(), NPOS, NULL, NStr::ParseEscapes(), s_Backslashed(), IRWRegistry::Set(), IRWRegistry::SetComment(), IRegistry::SetModifiedFlag(), IRegistry::sm_InSectionCommentName, NStr::SplitInTwo(), str(), NStr::TruncateSpaces(), NStr::TruncateSpacesInPlace(), rapidjson::value, and Warning().
Referenced by IRWRegistry::Read(), and CCompoundRWRegistry::x_Read().
|
protectedvirtual |
Most implementations should not override this, but CNcbiRegistry must, to handle some special cases properly.
Reimplemented from IRWRegistry.
Reimplemented in CNcbiRegistry.
Definition at line 2080 of file ncbireg.cpp.
References IRegistry::Empty(), flags, IRegistry::fNoOverride, IRegistry::fOverride, IRegistry::fPersistent, in(), CCompoundRWRegistry::LoadBaseRegistries(), NULL, and IRWRegistry::x_Read().
Referenced by CNcbiRegistry::x_Read().
|
protectedvirtual |
Most implementations should not override this, but CNcbiRegistry must, to handle some special cases properly.
Reimplemented from CCompoundRWRegistry.
Definition at line 1681 of file ncbireg.cpp.
References CCompoundRWRegistry::CCompoundRWRegistry(), IRegistry::Empty(), CConstRef< C, Locker >::Empty(), entries, CNcbiRegistry::ePriority_RuntimeOverrides, IRegistry::fCaseFlags, IRegistry::fCountCleared, CCompoundRWRegistry::FindByName(), flags, IRegistry::fNoOverride, IRegistry::fPersistent, IRegistry::fTransient, IRegistry::fWithNcbirc, CRef< C, Locker >::GetPointer(), IRegistry::HasEntry(), CNcbiRegistry::IncludeNcbircIfAllowed(), ITERATE, CCompoundRWRegistry::LoadBaseRegistries(), CNcbiRegistry::m_FileRegistry, CNcbiRegistry::m_Flags, CNcbiRegistry::m_RuntimeOverrideCount, NULL, IRWRegistry::Read(), IRWRegistry::Set(), CCompoundRWRegistry::sm_MainRegName, CNcbiRegistry::sm_OverrideRegName, NStr::UIntToString(), CCompoundRWRegistry::x_Add(), and CCompoundRWRegistry::x_Read().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 224 of file env_reg.cpp.
References ERR_POST_X, IRegistry::fCaseFlags, flags, CNcbiEnvironment::Get(), CEnvironmentRegistry::m_Env, CEnvironmentRegistry::m_Flags, CEnvironmentRegistry::m_PriorityMap, IRWRegistry::MaybeSet(), REVERSE_ITERATE, CNcbiEnvironment::Set(), NStr::ToUpper(), rapidjson::value, and Warning().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 1061 of file ncbireg.cpp.
References _ASSERT, _TRACE, CMemoryRegistry::SEntry::comment, map_checker< Container >::end(), map_checker< Container >::find(), flags, map_checker< Container >::insert(), ITERATE, CMemoryRegistry::m_Flags, CMemoryRegistry::m_Sections, IRWRegistry::MaybeSet(), CMemoryRegistry::SEntry::value, rapidjson::value, and CMemoryRegistry::x_Unset().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 1512 of file ncbireg.cpp.
References flags, IRegistry::fPersistent, IRegistry::fTPFlags, CTwoLayerRegistry::m_Persistent, CTwoLayerRegistry::m_Transient, IRWRegistry::Set(), and rapidjson::value.
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 2031 of file ncbireg.cpp.
References _TRACE, map_checker< Container >::end(), map_checker< Container >::erase(), map_checker< Container >::find(), flags, IRegistry::fLayerFlags, IRegistry::fNoOverride, IRegistry::fPersistent, IRegistry::fTransient, IRegistry::Get(), IRegistry::HasEntry(), CCompoundRWRegistry::m_ClearedEntries, CCompoundRWRegistry::m_MainRegistry, s_FlatKey(), IRWRegistry::Set(), and rapidjson::value.
|
protectedpure virtual |
Implemented in CCompoundRWRegistry, CTwoLayerRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRWRegistry::Set().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 281 of file env_reg.cpp.
References ERR_POST_X, and Warning().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 1132 of file ncbireg.cpp.
References map_checker< Container >::end(), entries, map_checker< Container >::erase(), IRegistry::fCountCleared, map_checker< Container >::find(), flags, IRegistry::fNoOverride, map_checker< Container >::insert(), CMemoryRegistry::m_Flags, CMemoryRegistry::m_RegistryComment, CMemoryRegistry::m_Sections, IRWRegistry::MaybeSet(), and IRegistry::sm_InSectionCommentName.
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 1540 of file ncbireg.cpp.
References flags, IRegistry::fTPFlags, IRegistry::fTransient, CTwoLayerRegistry::m_Persistent, CTwoLayerRegistry::m_Transient, and IRWRegistry::SetComment().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 2072 of file ncbireg.cpp.
References flags, CCompoundRWRegistry::m_MainRegistry, and IRWRegistry::SetComment().
|
protectedpure virtual |
Implemented in CCompoundRWRegistry, CTwoLayerRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRWRegistry::SetComment().
Reimplemented from IRegistry.
Definition at line 116 of file env_reg.cpp.
References flags, IRegistry::fTransient, and CEnvironmentRegistry::m_Modified.
Reimplemented from IRegistry.
Definition at line 1277 of file ncbireg.cpp.
References _ASSERT, IRegistry::fJustCore, flags, CCompoundRegistry::m_CoreCutoff, and CCompoundRegistry::m_PriorityMap.
Reimplemented from IRegistry.
Definition at line 1400 of file ncbireg.cpp.
References flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, CTwoLayerRegistry::m_Persistent, CTwoLayerRegistry::m_Transient, and IRegistry::SetModifiedFlag().
Reimplemented from IRegistry.
Definition at line 1912 of file ncbireg.cpp.
References flags, CCompoundRWRegistry::m_AllRegistries, CCompoundRWRegistry::m_MainRegistry, and IRegistry::SetModifiedFlag().
Reimplemented from IRegistry.
Definition at line 600 of file ncbireg.hpp.
References CMemoryRegistry::m_IsModified.
Reimplemented in CMemoryRegistry, CSynRegistryToIRegistry, CCompoundRWRegistry, CTwoLayerRegistry, CCompoundRegistry, and CEnvironmentRegistry.
Definition at line 376 of file ncbireg.hpp.
Referenced by IRWRegistry::Clear(), IRWRegistry::Set(), IRWRegistry::SetComment(), IRegistry::SetModifiedFlag(), and IRWRegistry::Unset().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 253 of file env_reg.cpp.
References IRegistry::fCaseFlags, CNcbiEnvironment::Get(), ITERATE, CEnvironmentRegistry::m_Env, CEnvironmentRegistry::m_Flags, CEnvironmentRegistry::m_PriorityMap, result, NStr::ToUpper(), and CNcbiEnvironment::Unset().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 1109 of file ncbireg.cpp.
References _TRACE, map_checker< Container >::end(), entries, map_checker< Container >::erase(), IRegistry::fCountCleared, map_checker< Container >::find(), flags, and CMemoryRegistry::m_Sections.
Referenced by CMemoryRegistry::x_Set().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 1526 of file ncbireg.cpp.
References flags, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, CTwoLayerRegistry::m_Persistent, CTwoLayerRegistry::m_Transient, result, and IRWRegistry::Unset().
|
protectedvirtual |
Implements IRWRegistry.
Definition at line 2059 of file ncbireg.cpp.
References flags, CCompoundRWRegistry::m_AllRegistries, CCompoundRegistry::m_PriorityMap, NON_CONST_ITERATE, result, and IRWRegistry::Unset().
|
protectedpure virtual |
Implemented in CCompoundRWRegistry, CTwoLayerRegistry, CMemoryRegistry, and CEnvironmentRegistry.
Referenced by IRWRegistry::Unset().
CCompoundRWRegistry::~CCompoundRWRegistry | ( | ) |
Destructor.
Definition at line 1762 of file ncbireg.cpp.
CEnvironmentRegistry::~CEnvironmentRegistry | ( | ) |
Destructor.
Definition at line 66 of file env_reg.cpp.
CNcbiRegistry::~CNcbiRegistry | ( | ) |
Definition at line 1629 of file ncbireg.cpp.
bool CMemoryRegistry::SSection::cleared |
Definition at line 631 of file ncbireg.hpp.
string CMemoryRegistry::SEntry::comment |
Definition at line 620 of file ncbireg.hpp.
Referenced by CMemoryRegistry::x_Set().
string CMemoryRegistry::SSection::comment |
Definition at line 628 of file ncbireg.hpp.
TEntries CMemoryRegistry::SSection::entries |
Definition at line 630 of file ncbireg.hpp.
string CMemoryRegistry::SSection::in_section_comment |
Definition at line 629 of file ncbireg.hpp.
|
private |
Definition at line 893 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::FindByContents(), CCompoundRWRegistry::FindByName(), CCompoundRWRegistry::GetCoreCutoff(), CCompoundRWRegistry::LoadBaseRegistries(), CCompoundRWRegistry::Remove(), CCompoundRWRegistry::SetCoreCutoff(), CCompoundRWRegistry::x_Add(), CCompoundRWRegistry::x_Empty(), CCompoundRWRegistry::x_Enumerate(), CCompoundRWRegistry::x_Get(), CCompoundRWRegistry::x_GetComment(), CCompoundRWRegistry::x_HasEntry(), CCompoundRWRegistry::x_Modified(), CCompoundRWRegistry::x_SetModifiedFlag(), and CCompoundRWRegistry::x_Unset().
Definition at line 894 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::LoadBaseRegistries(), and CCompoundRWRegistry::x_Clear().
|
private |
Definition at line 891 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::x_Enumerate(), CCompoundRWRegistry::x_Get(), CCompoundRWRegistry::x_HasEntry(), and CCompoundRWRegistry::x_Set().
|
private |
Definition at line 728 of file ncbireg.hpp.
Referenced by CCompoundRegistry::GetCoreCutoff(), CCompoundRegistry::SetCoreCutoff(), CCompoundRegistry::x_Empty(), CCompoundRegistry::x_Enumerate(), CCompoundRegistry::x_Modified(), and CCompoundRegistry::x_SetModifiedFlag().
|
private |
Definition at line 138 of file env_reg.hpp.
Referenced by CEnvironmentRegistry::x_Empty(), CEnvironmentRegistry::x_Enumerate(), CEnvironmentRegistry::x_Get(), CEnvironmentRegistry::x_Set(), and CEnvironmentRegistry::x_Unset().
|
private |
Definition at line 984 of file ncbireg.hpp.
Referenced by CNcbiRegistry::x_Init().
|
private |
Definition at line 985 of file ncbireg.hpp.
Referenced by CNcbiRegistry::CNcbiRegistry(), CNcbiRegistry::x_Clear(), CNcbiRegistry::x_GetComment(), CNcbiRegistry::x_Init(), and CNcbiRegistry::x_Read().
|
private |
Definition at line 141 of file env_reg.hpp.
Referenced by CEnvironmentRegistry::x_Get(), CEnvironmentRegistry::x_Set(), and CEnvironmentRegistry::x_Unset().
|
private |
Definition at line 639 of file ncbireg.hpp.
Referenced by CMemoryRegistry::x_Set(), and CMemoryRegistry::x_SetComment().
|
private |
Definition at line 895 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::LoadBaseRegistries().
|
private |
Definition at line 989 of file ncbireg.hpp.
Referenced by CNcbiRegistry::x_Init(), and CNcbiRegistry::x_Read().
|
private |
Definition at line 636 of file ncbireg.hpp.
Referenced by CMemoryRegistry::x_Modified(), and CMemoryRegistry::x_SetModifiedFlag().
|
mutableprivate |
Definition at line 392 of file ncbireg.hpp.
Referenced by IRegistry::ReadLock(), IRegistry::Unlock(), and IRegistry::WriteLock().
|
private |
Definition at line 892 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::CCompoundRWRegistry(), CCompoundRWRegistry::LoadBaseRegistries(), CCompoundRWRegistry::Remove(), CCompoundRWRegistry::x_Clear(), CCompoundRWRegistry::x_GetComment(), CCompoundRWRegistry::x_Set(), CCompoundRWRegistry::x_SetComment(), and CCompoundRWRegistry::x_SetModifiedFlag().
|
private |
only tracks mods made through this.
Definition at line 140 of file env_reg.hpp.
Referenced by CEnvironmentRegistry::x_Modified(), and CEnvironmentRegistry::x_SetModifiedFlag().
|
private |
excludes anonymous sub-registries
Definition at line 727 of file ncbireg.hpp.
Referenced by CCompoundRegistry::Add(), CCompoundRegistry::FindByName(), and CCompoundRegistry::Remove().
|
private |
Definition at line 986 of file ncbireg.hpp.
Referenced by CNcbiRegistry::x_Init().
|
private |
Definition at line 782 of file ncbireg.hpp.
Referenced by CTwoLayerRegistry::x_Clear(), CTwoLayerRegistry::x_Empty(), CTwoLayerRegistry::x_Enumerate(), CTwoLayerRegistry::x_Get(), CTwoLayerRegistry::x_GetComment(), CTwoLayerRegistry::x_HasEntry(), CTwoLayerRegistry::x_Modified(), CTwoLayerRegistry::x_Set(), CTwoLayerRegistry::x_SetComment(), CTwoLayerRegistry::x_SetModifiedFlag(), and CTwoLayerRegistry::x_Unset().
|
private |
Definition at line 166 of file env_reg.hpp.
Referenced by CSimpleEnvRegMapper::EnvToReg(), CSimpleEnvRegMapper::GetPrefix(), and CSimpleEnvRegMapper::RegToEnv().
|
private |
Definition at line 139 of file env_reg.hpp.
Referenced by CEnvironmentRegistry::AddMapper(), CEnvironmentRegistry::RemoveMapper(), CEnvironmentRegistry::x_Empty(), CEnvironmentRegistry::x_Enumerate(), CEnvironmentRegistry::x_Get(), CEnvironmentRegistry::x_Set(), and CEnvironmentRegistry::x_Unset().
|
private |
Definition at line 726 of file ncbireg.hpp.
Referenced by CCompoundRegistry::Add(), CCompoundRegistry::FindByContents(), CCompoundRWRegistry::LoadBaseRegistries(), CCompoundRegistry::Remove(), CCompoundRegistry::x_ChildLockAction(), CCompoundRegistry::x_Empty(), CCompoundRegistry::x_Enumerate(), CCompoundRWRegistry::x_Enumerate(), CCompoundRegistry::x_GetComment(), CCompoundRegistry::x_Modified(), CCompoundRegistry::x_SetModifiedFlag(), and CCompoundRWRegistry::x_Unset().
|
private |
Definition at line 637 of file ncbireg.hpp.
Referenced by CMemoryRegistry::x_Clear(), CMemoryRegistry::x_Empty(), CMemoryRegistry::x_GetComment(), and CMemoryRegistry::x_SetComment().
|
private |
Definition at line 988 of file ncbireg.hpp.
Referenced by CNcbiRegistry::x_Read().
|
private |
Definition at line 166 of file env_reg.hpp.
Referenced by CSimpleEnvRegMapper::EnvToReg(), and CSimpleEnvRegMapper::RegToEnv().
|
private |
Definition at line 638 of file ncbireg.hpp.
Referenced by CMemoryRegistry::x_Clear(), CMemoryRegistry::x_Empty(), CMemoryRegistry::x_Enumerate(), CMemoryRegistry::x_Get(), CMemoryRegistry::x_GetComment(), CMemoryRegistry::x_HasEntry(), CMemoryRegistry::x_Set(), CMemoryRegistry::x_SetComment(), and CMemoryRegistry::x_Unset().
|
private |
Definition at line 166 of file env_reg.hpp.
Referenced by CSimpleEnvRegMapper::EnvToReg(), and CSimpleEnvRegMapper::RegToEnv().
|
private |
Definition at line 987 of file ncbireg.hpp.
Referenced by CNcbiRegistry::IncludeNcbircIfAllowed(), and CNcbiRegistry::x_Init().
|
private |
Definition at line 781 of file ncbireg.hpp.
Referenced by CTwoLayerRegistry::x_Clear(), CTwoLayerRegistry::x_Empty(), CTwoLayerRegistry::x_Enumerate(), CTwoLayerRegistry::x_Get(), CTwoLayerRegistry::x_GetComment(), CTwoLayerRegistry::x_HasEntry(), CTwoLayerRegistry::x_Modified(), CTwoLayerRegistry::x_Set(), CTwoLayerRegistry::x_SetComment(), CTwoLayerRegistry::x_SetModifiedFlag(), and CTwoLayerRegistry::x_Unset().
|
static |
Prefix for any base registries' names.
Definition at line 858 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::LoadBaseRegistries(), and CCompoundRWRegistry::x_Clear().
|
static |
Predefined subregistries' names.
Definition at line 963 of file ncbireg.hpp.
Referenced by CNcbiRegistry::x_Init().
|
static |
Definition at line 964 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::LoadBaseRegistries(), and CNcbiRegistry::x_Init().
|
static |
Entry name for an in-section comment.
Definition at line 357 of file ncbireg.hpp.
Referenced by IRegistry::GetComment(), IRegistry::HasEntry(), IRWRegistry::SetComment(), CMemoryRegistry::x_GetComment(), CMemoryRegistry::x_HasEntry(), IRWRegistry::x_Read(), and CMemoryRegistry::x_SetComment().
|
static |
Predefined subregistry's name.
Definition at line 856 of file ncbireg.hpp.
Referenced by CCompoundRWRegistry::CCompoundRWRegistry(), and CNcbiRegistry::x_Read().
|
static |
Definition at line 965 of file ncbireg.hpp.
Referenced by CNcbiRegistry::x_Init(), and CNcbiRegistry::x_Read().
|
staticprivate |
Definition at line 189 of file env_reg.hpp.
Referenced by CNcbiEnvRegMapper::EnvToReg(), CNcbiEnvRegMapper::GetPrefix(), and CNcbiEnvRegMapper::RegToEnv().
|
static |
Definition at line 966 of file ncbireg.hpp.
Referenced by CNcbiRegistry::x_Init().
string CMemoryRegistry::SEntry::value |
Definition at line 620 of file ncbireg.hpp.
Referenced by CMemoryRegistry::x_Set().
|
friend |
Definition at line 730 of file ncbireg.hpp.