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


Abstract subclass for modifiable registries.
To avoid confusion, all registry classes that support modification should inherit from this class.
Definition at line 315 of file ncbireg.hpp.
Public Types | |
| enum | EOperation { eClear, eRead, eSet } |
| Categories of modifying operations. More... | |
Public Member Functions | |
| void | Clear (TFlags flags=fAllLayers) |
| Reset the registry content. | |
| IRWRegistry * | Read (CNcbiIstream &is, TFlags flags=0) |
| Read and parse the stream "is", and merge its content with current Registry entries. | |
| bool | Set (const string §ion, const string &name, const string &value, TFlags flags=0, const string &comment=kEmptyStr) |
| Set the configuration parameter value. | |
| bool | SetComment (const string &comment, const string §ion=kEmptyStr, const string &name=kEmptyStr, TFlags flags=0) |
| Set comment "comment" for the registry entry "section:name". | |
Static Public Member Functions | |
| static TFlags | AssessImpact (TFlags flags, EOperation op) |
| Indicate which portions of the registry the given operation would affect. | |
Protected Member Functions | |
| virtual void | x_Clear (TFlags flags)=0 |
| Called locked, like the virtual methods inherited from IRegistry. | |
| virtual bool | x_Set (const string §ion, const string &name, const string &value, TFlags flags, const string &comment)=0 |
| virtual bool | x_SetComment (const string &comment, const string §ion, const string &name, TFlags flags)=0 |
| virtual IRWRegistry * | x_Read (CNcbiIstream &is, TFlags flags) |
| Most implementations should not override this, but CNcbiRegistry must, to handle some special cases properly. | |
Static Protected Member Functions | |
| static bool | MaybeSet (string &target, const string &value, TFlags flags) |
|
|
Categories of modifying operations.
Definition at line 319 of file ncbireg.hpp. |
|
||||||||||||
|
Indicate which portions of the registry the given operation would affect.
Definition at line 480 of file ncbireg.cpp. References _TROUBLE, eClear, eRead, eSet, IRegistry::fJustCore, IRegistry::fLayerFlags, IRegistry::fPersistent, IRegistry::fTPFlags, and IRegistry::fTransient. |
|
|
Reset the registry content.
Definition at line 496 of file ncbireg.cpp. References IRegistry::fInternalSpaces, IRegistry::fLayerFlags, IRegistry::fPersistent, IRegistry::fTransient, IRegistry::x_CheckFlags(), x_Clear(), IRegistry::x_Empty(), and IRegistry::x_SetModifiedFlag(). |
|
||||||||||||||||
|
Definition at line 760 of file ncbireg.cpp. Referenced by CEnvironmentRegistry::x_Set(), and CMemoryRegistry::x_SetComment(). |
|
||||||||||||
|
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.
Definition at line 511 of file ncbireg.cpp. References IRegistry::fCountCleared, IRegistry::fIgnoreErrors, IRegistry::fInternalSpaces, IRegistry::fJustCore, IRegistry::fNoOverride, IRegistry::fTransient, IRegistry::fWithNcbirc, IRegistry::x_CheckFlags(), and x_Read(). Referenced by CIdMapperConfig::DescribeContexts(), CIdMapperConfig::Initialize(), CCodeGenerator::LoadConfig(), LoadRegistry(), CGBenchIndexCgi::ProcessRequest(), and CWindowMaskerPanel::TransferDataToWindow(). |
|
||||||||||||||||||||||||
|
Set the configuration parameter value. Unset the parameter if specified "value" is empty.
Definition at line 691 of file ncbireg.cpp. References _ASSERT, _TRACE, IRegistry::fCountCleared, IRegistry::fInternalSpaces, IRegistry::fPersistent, IRegistry::fTruncate, NPOS, NStr::PrintableString(), s_ConvertComment(), s_IsNameSection(), NStr::TruncateSpaces(), IRegistry::x_CheckFlags(), x_Set(), and IRegistry::x_SetModifiedFlag(). Referenced by CCodeGenerator::AddConfigLine(), SBDB_CacheUnitStatistics::ConvertToRegistry(), CCodeGenerator::ExcludeTypes(), CDebugArgs::ExtractAlgorithmOptions(), GetAsnDataViaHTTP(), MakePluginManagerParamTree(), NCBITEST_AUTO_INIT(), RegistrySetBoolean(), RegistrySetDouble(), RegistrySetInteger(), RegistrySetString(), CNSSubmitRemoteJobApp::Run(), CNSRemoveJobControlApp::Run(), CColorTableMethod::Save(), CTemplateScoringMethod::SaveInfo(), CNetworkOptionsPage::TransferDataFromWindow(), CSequenceSearchForm::x_UpdateFileList(), and COrfSearchForm::x_UpdateKozak(). |
|
||||||||||||||||||||
|
Set comment "comment" for the registry entry "section:name".
Definition at line 732 of file ncbireg.cpp. References _TRACE, IRegistry::fInternalSpaces, IRegistry::fTransient, NStr::PrintableString(), s_IsNameSection(), NStr::TruncateSpaces(), and IRegistry::x_CheckFlags(). Referenced by x_Read(). |
|
|
Called locked, like the virtual methods inherited from IRegistry.
Implemented in CEnvironmentRegistry, CMemoryRegistry, CTwoLayerRegistry, CCompoundRWRegistry, and CNcbiRegistry. Referenced by Clear(). |
|
||||||||||||
|
Most implementations should not override this, but CNcbiRegistry must, to handle some special cases properly.
Reimplemented in CCompoundRWRegistry, and CNcbiRegistry. Definition at line 520 of file ncbireg.cpp. References IRegistry::Empty(), IRegistry::fIgnoreErrors, IRegistry::fJustCore, IRegistry::fPersistent, IRegistry::fTPFlags, IRegistry::fTransient, IRegistry::GetComment(), len, IRegistry::Modified(), NCBI_THROW2, NcbiGetlineEOL(), NPOS, s_IsNameSection(), SetComment(), and NStr::TruncateSpaces(). Referenced by Read(), and CCompoundRWRegistry::x_Read(). |
|
||||||||||||||||||||||||
|
Implemented in CEnvironmentRegistry, CMemoryRegistry, CTwoLayerRegistry, and CCompoundRWRegistry. Referenced by Set(). |
|
||||||||||||||||||||
|
Implemented in CEnvironmentRegistry, CMemoryRegistry, CTwoLayerRegistry, and CCompoundRWRegistry. |
1.4.6
Modified on Mon Dec 07 16:24:27 2009 by modify_doxy.py rev. 173732