NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
CGuiRegistry Class Reference

Search Toolkit Book for CGuiRegistry

#include <gui/objutils/registry.hpp>

+ Inheritance diagram for CGuiRegistry:
+ Collaboration diagram for CGuiRegistry:

Public Types

enum  EPriority { ePriority_Temp_Inc = 4 , ePriority_Local = 0 , ePriority_Global = 16384 }
 enum controlling priority of added registries More...
 
- Public Types inherited from CObject
enum  EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern }
 Control filling of newly allocated memory. More...
 
typedef CObjectCounterLocker TLockerType
 Default locker type for CRef. More...
 
typedef atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 

Public Member Functions

 CGuiRegistry ()
 
 ~CGuiRegistry ()
 
Set-up and initialization functions
void SetLocal (CNcbiIstream &istr)
 establish our "local" repository. More...
 
void SetGlobal (CNcbiIstream &istr)
 Set the "global" repository. More...
 
CRef< CRegistryFileAddSite (CNcbiIstream &istr, int priority)
 Add a site-specific repository. More...
 
CRef< CRegistryFileAddSite (const objects::CUser_object &reg, int priority)
 
Serialization functions
void Write (CNcbiOstream &ostr, int priority=ePriority_Local) const
 Write the local policy to a specified stream. More...
 
void ToConfigFile (CNcbiOstream &ostr) const
 Write the local policy to a specified stream, in INI format. More...
 
void FromConfigFile (CNcbiIstream &istr)
 Initialize the local repository from an ini-format config file. More...
 
Const-Access Functions
int GetInt (const string &key, int default_val=0) const
 retrieve values by section and key. More...
 
double GetReal (const string &key, double default_val=0) const
 
bool GetBool (const string &key, bool default_val=false) const
 
string GetString (const string &key, const string &default_val=kEmptyStr) const
 
void GetIntVec (const string &key, vector< int > &val) const
 
void GetRealVec (const string &key, vector< double > &val) const
 
void GetStringVec (const string &key, vector< string > &val) const
 
void GetStringList (const string &key, list< string > &val) const
 
CConstRef< objects::CUser_field > GetField (const string &key) const
 retrieve the best user field object for our key, taking into account our multiple stores. More...
 
bool HasField (const string &key) const
 Does a field with this section and key exist in this view? More...
 
Non-Const accessors
void Set (const string &key, int val)
 set specific values More...
 
void Set (const string &key, double val)
 
void Set (const string &key, bool val)
 
void Set (const string &key, const string &val)
 
void Set (const string &key, const char *val)
 
void Set (const string &key, const vector< int > &val)
 
void Set (const string &key, const vector< double > &val)
 
void Set (const string &key, const vector< string > &val)
 
void Set (const string &key, const list< string > &val)
 
void Set (int site, const string &key, int val)
 
void Set (int site, const string &key, double val)
 
void Set (int site, const string &key, bool val)
 
void Set (int site, const string &key, const string &val)
 
void Set (int site, const string &key, const char *val)
 
void Set (int site, const string &key, const vector< int > &val)
 
void Set (int site, const string &key, const vector< double > &val)
 
void Set (int site, const string &key, const vector< string > &val)
 
void Set (int site, const string &key, const list< string > &val)
 
CRef< objects::CUser_field > SetField (const string &key)
 retrieve the best user field object for our key, taking into account our multiple stores More...
 
CRef< objects::CUser_field > SetField (int site, const string &key)
 
CRef< objects::CUser_field > SetFieldToValue (const string &key)
 same as SetField, but complain loudly if the field has subfields in it already. More...
 
CRef< objects::CUser_field > SetFieldToValue (int site, const string &key)
 
bool DeleteField (const string &key)
 delete the specified field (and any of its subfields). More...
 
bool DeleteField (int site, const string &key)
 
int GetWritableSite ()
 Get the priority of the site that Set methods modify. More...
 
void SetWritableSite (int priority=ePriority_Local)
 Set which site Set methods modify. More...
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (const CObject &src) THROWS_NONE
 Assignment operator. More...
 
bool CanBeDeleted (void) const THROWS_NONE
 Check if object can be deleted. More...
 
bool IsAllocatedInPool (void) const THROWS_NONE
 Check if object is allocated in memory pool (not system heap) More...
 
bool Referenced (void) const THROWS_NONE
 Check if object is referenced. More...
 
bool ReferencedOnlyOnce (void) const THROWS_NONE
 Check if object is referenced only once. More...
 
void AddReference (void) const
 Add reference to object. More...
 
void RemoveReference (void) const
 Remove reference to object. More...
 
void ReleaseReference (void) const
 Remove reference without deleting object. More...
 
virtual void DoNotDeleteThisObject (void)
 Mark this object as not allocated in heap – do not delete this object. More...
 
virtual void DoDeleteThisObject (void)
 Mark this object as allocated in heap – object can be deleted. More...
 
void * operator new (size_t size)
 Define new operator for memory allocation. More...
 
void * operator new[] (size_t size)
 Define new[] operator for 'array' memory allocation. More...
 
void operator delete (void *ptr)
 Define delete operator for memory deallocation. More...
 
void operator delete[] (void *ptr)
 Define delete[] operator for memory deallocation. More...
 
void * operator new (size_t size, void *place)
 Define new operator. More...
 
void operator delete (void *ptr, void *place)
 Define delete operator. More...
 
void * operator new (size_t size, CObjectMemoryPool *place)
 Define new operator using memory pool. More...
 
void operator delete (void *ptr, CObjectMemoryPool *place)
 Define delete operator. More...
 
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const
 Define method for dumping debug information. More...
 
- Public Member Functions inherited from CDebugDumpable
 CDebugDumpable (void)
 
virtual ~CDebugDumpable (void)
 
void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const
 
void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const
 
void DumpToConsole (void) const
 

Static Public Attributes

static const string kDecimalDot = "."
 
- Static Public Attributes inherited from CObject
static const TCount eCounterBitsCanBeDeleted = 1 << 0
 Define possible object states. More...
 
static const TCount eCounterBitsInPlainHeap = 1 << 1
 Heap signature was found. More...
 
static const TCount eCounterBitsPlaceMask
 Mask for 'in heap' state flags. More...
 
static const int eCounterStep = 1 << 2
 Skip over the "in heap" bits. More...
 
static const TCount eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2)
 Minimal value for valid objects (reference counter is zero) Must be a single bit value. More...
 
static const TCount eCounterStateMask
 Valid object, and object in heap. More...
 

Private Types

typedef map< int, CRef< CRegistryFile > > TRegistries
 our registry stores this is a hierarchical organization More...
 

Private Member Functions

CRef< CRegistryFilex_GetRegistryRef (int) const
 return the registry at a particular priority. More...
 
CRegistryFilex_SetRegistry (int)
 return a registry at a particular priority, creating it if need be. More...
 
 CGuiRegistry (const CGuiRegistry &)
 forbidden More...
 
CGuiRegistryoperator= (const CGuiRegistry &)
 

Private Attributes

TRegistries m_Registries
 
int m_WritableSite
 The priority of the site that writes go to. More...
 
bool m_isReadOnly {false}
 

View-related functions

CRegistryReadView GetReadView (const string &section) const
 get a read-only view at a particular level. More...
 
CRegistryReadView GetReadView (const string &section, const vector< string > &sub_sections) const
 get a read view that will overlay several named sub-sections in a given section. More...
 
CRegistryWriteView GetWriteView (const string &section)
 get a read-write view at a particular level. More...
 
CRegistryWriteView GetWriteView (const string &section, int writeSite)
 
CRegistryWriteView GetWriteView (const string &section, const vector< string > &sub_sections)
 get a read-write view that will overlay several named sub-sections in a given section. More...
 
void x_AppendToView (CRegistryReadView &view, const string &section) const
 Add a section to an existing view at a lower priority than any previously existing sections in that view. More...
 

Singleton maintenance

void SetReadOnly ()
 
CRef< CGuiRegistryClone ()
 
static CGuiRegistryGetInstance ()
 access the application-wide singleton More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (void)
 Define method to throw null pointer exception. More...
 
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (const type_info &type)
 
static EAllocFillMode GetAllocFillMode (void)
 
static void SetAllocFillMode (EAllocFillMode mode)
 
static void SetAllocFillMode (const string &value)
 Set mode from configuration parameter value. More...
 
- Static Public Member Functions inherited from CDebugDumpable
static void EnableDebugDump (bool on)
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Detailed Description

Definition at line 42 of file registry.hpp.

Member Typedef Documentation

◆ TRegistries

our registry stores this is a hierarchical organization

the prioritized list of policies we're considering

Definition at line 255 of file registry.hpp.

Member Enumeration Documentation

◆ EPriority

enum controlling priority of added registries

Enumerator
ePriority_Temp_Inc 
ePriority_Local 
ePriority_Global 

Definition at line 48 of file registry.hpp.

Constructor & Destructor Documentation

◆ CGuiRegistry() [1/2]

CGuiRegistry::CGuiRegistry ( )

Definition at line 45 of file registry.cpp.

Referenced by GetInstance().

◆ ~CGuiRegistry()

CGuiRegistry::~CGuiRegistry ( )

Definition at line 51 of file registry.cpp.

◆ CGuiRegistry() [2/2]

CGuiRegistry::CGuiRegistry ( const CGuiRegistry )
private

forbidden

Member Function Documentation

◆ AddSite() [1/2]

CRef< CRegistryFile > CGuiRegistry::AddSite ( CNcbiIstream istr,
int  priority 
)

Add a site-specific repository.

This is a set of user-, role-, or site-wide common features that should be included.

Definition at line 83 of file registry.cpp.

References Error(), CException::GetMsg(), LOG_POST, m_Registries, site, and CException::what().

Referenced by CSeqTextDemoDlg::CreateControls(), CSeqTextDemoDlg::Init(), CDiscrepancyDlg::LoadSettings(), CMacroFlowEditor::LoadSettings(), CEditingBtnsPanel::LoadSettings(), SetGlobal(), and SetLocal().

◆ AddSite() [2/2]

CRef< CRegistryFile > CGuiRegistry::AddSite ( const objects::CUser_object &  reg,
int  priority 
)

Definition at line 101 of file registry.cpp.

References m_Registries, and site.

◆ Clone()

CRef< CGuiRegistry > CGuiRegistry::Clone ( void  )

Definition at line 410 of file registry.cpp.

References m_Registries, and CRegistryFile::SetRegistry().

◆ DeleteField() [1/2]

bool CGuiRegistry::DeleteField ( const string key)

delete the specified field (and any of its subfields).

returns true on success, false if the field does not exist in the writable site, or if the field is at the top level of the registry.

Definition at line 333 of file registry.cpp.

References GetWritableSite(), and ncbi::grid::netcache::search::fields::key.

Referenced by CSettingsSet::Delete(), CSettingsSet::DeleteStyle(), and CQuickLaunchList::x_Save().

◆ DeleteField() [2/2]

bool CGuiRegistry::DeleteField ( int  site,
const string key 
)

◆ FromConfigFile()

void CGuiRegistry::FromConfigFile ( CNcbiIstream istr)

Initialize the local repository from an ini-format config file.

Definition at line 61 of file registry.cpp.

References ePriority_Local, and m_Registries.

Referenced by CTestGuiRegistryApp::Run().

◆ GetBool()

bool CGuiRegistry::GetBool ( const string key,
bool  default_val = false 
) const

◆ GetField()

CConstRef< CUser_field > CGuiRegistry::GetField ( const string key) const

retrieve the best user field object for our key, taking into account our multiple stores.

throw an exception if not found.

Definition at line 346 of file registry.cpp.

References CUser_field::GetField(), ITERATE, ncbi::grid::netcache::search::fields::key, m_Registries, and CRegistryReadView::ResolveField().

Referenced by GetBool(), GetInt(), GetIntVec(), GetReal(), GetRealVec(), GetString(), GetStringList(), and GetStringVec().

◆ GetInstance()

CGuiRegistry & CGuiRegistry::GetInstance ( void  )
static

access the application-wide singleton

Definition at line 400 of file registry.cpp.

References CGuiRegistry(), and s_Registry.

Referenced by CGuiHttpSessionRequest::CGuiHttpSessionRequest(), CPhyloForce::CPhyloForce(), CPhyloTreePane::CPhyloTreePane(), CCompareWithBiosample::CreateBiosampleUpdateWebService(), COpenDlg::CreateControls(), WizardPage2::CreateControls(), CSeqTextDemoDlg::CreateControls(), CTooltipFrame::CTooltipFrame(), CDiscrepancyDlg::Destroy(), CSequesterSets::EnableSmartPackageDone(), CSeqUtils::GetAnnotSelector(), CFeatGlyph::GetCustomColor(), CVcfGlyph::GetCustomColor(), COpenViewDlg::GetDefaultFactoryLabel(), CDoiLookup::GetPubFromCrossRef(), CSequencingTechnologyPanel::GetReplaceAll(), CSeqUtils::GetSelectorRegistry(), CRowDisplayStyle::GetSeqGraphicConfig(), CSequenceTrackFactory::GetSettings(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CAggregateFeatureTrack::GetSubtypeListAsString(), CSequenceEditingEventHandler::IndexerTypeSelection(), CSeqTextDemoDlg::Init(), CTextPanel::InitWidget(), CStringHistory::Load(), CPhyloTreeScheme::LoadCurrentSettings(), CFeaturePanel::LoadDefaultTracks(), CTempTrackProxy::LoadFromRegistry(), CPkgManager::LoadPackages(), CAsnExportParams::LoadSettings(), CDataMiningPanel::LoadSettings(), CParamsPanel::LoadSettings(), CProjectService::LoadSettings(), CProjectTreeView::LoadSettings(), CSearchFormBase::LoadSettings(), CSelectionService::LoadSettings(), CFileLoadManager::LoadSettings(), CGCAssemblyLoadManager::LoadSettings(), CVisibleRangeService::LoadSettings(), CDiagConsoleList::LoadSettings(), CEventTablePanel::LoadSettings(), CItemSelectionPanel::LoadSettings(), CTaskTablePanel::LoadSettings(), CUsageReportJob::LoadSettings(), CAlignSpanView::LoadSettings(), CAlignTabExportParams::LoadSettings(), CBLASTSearchOptionsPanel::LoadSettings(), CBLASTToolManager::LoadSettings(), CCleanupAlignmentsParamsPanel::LoadSettings(), CClustalOmegaToolParams::LoadSettings(), CClustalwToolParams::LoadSettings(), CCreateGeneModelParamsPanel::LoadSettings(), CFindOverlapPanel::LoadSettings(), CFindOverlapParams::LoadSettings(), SGroupAlignmentsParams::LoadSettings(), CGroupAlignmentsParamsPanel::LoadSettings(), CKalignToolParams::LoadSettings(), CLBLASTUILoadManager::LoadSettings(), CMafftToolParams::LoadSettings(), SMergeAlignmentsParams::LoadSettings(), CMergeAlignmentsParamsPanel::LoadSettings(), CMuscleToolParams::LoadSettings(), CNeedlemanWunschToolParams::LoadSettings(), CNetBLASTUIDataSource::LoadSettings(), CNetBLASTUILoadManager::LoadSettings(), CNGAlignParams::LoadSettings(), CPhyExportParams::LoadSettings(), CProSplignParams::LoadSettings(), CSplignParams::LoadSettings(), CTreeBuilderPanel::LoadSettings(), CTreeBuilderParams::LoadSettings(), C5ColExportParams::LoadSettings(), CAgpExportParams::LoadSettings(), CBamUILoadManager::LoadSettings(), CCleanupPanel::LoadSettings(), CCleanupParams::LoadSettings(), CFastaExportParams::LoadSettings(), CFlatFileExportParams::LoadSettings(), CGenBankUILoadManager::LoadSettings(), CGffExportParams::LoadSettings(), CGtfExportParams::LoadSettings(), CFeatTableView::LoadSettings(), CWiggleExportParams::LoadSettings(), CWindowMaskerPanel::LoadSettings(), CWindowMaskerParams::LoadSettings(), CAECRFrame::LoadSettings(), CApplyRNAITSDlg::LoadSettings(), SAutodefParams::LoadSettings(), CAutodefParamsPanel::LoadSettings(), CBulkEditFeatDlg::LoadSettings(), CCompareWithBiosample::LoadSettings(), CDebugMacroToolParams::LoadSettings(), CDiscrepancyDlg::LoadSettings(), CEditPubDlg::LoadSettings(), CFeatureTblFr::LoadSettings(), CFindASN1Dlg::LoadSettings(), CParseTextDlg::LoadSettings(), CSrcEditPanel::LoadSettings(), CSubPrep_panel::LoadSettings(), CSUCRefreshCntrl::LoadSettings(), CValidateFrame::LoadSettings(), CAlnMultiWidget::LoadSettings(), CQueryParsePanel::LoadSettings(), CEditSequence::LoadSettings(), CGenericReportDlg::LoadSettings(), CMacroFlowEditor::LoadSettings(), CwxGridTableAdapter::LoadSettings(), CAgpLoadParams::LoadSettings(), CAssemblyListPanel::LoadSettings(), CAssemblyLoadWizard::LoadSettings(), CBamCoverageGraphPanel::LoadSettings(), CBedLoadParams::LoadSettings(), CFastaLoadParams::LoadSettings(), CFileLoadWizard::LoadSettings(), CGBFlatFileLoadParams::LoadSettings(), CGffLoadParams::LoadSettings(), CLBLASTLoadParams::LoadSettings(), COpenObjectsPanel::LoadSettings(), CPslLoadParams::LoadSettings(), CTextAlignParams::LoadSettings(), CVcfAssemblySelectionPanel::LoadSettings(), CWigLoadParams::LoadSettings(), CWinMaskerFileStorage::LoadSettings(), CObjectListWidgetSel::LoadSettings(), CDialog::LoadSettings(), CUIToolRegistry::LoadSettings(), CAsnExportPage::LoadSettings(), CSelectionPanel::LoadSettings(), CAdvancedCleanupParams::LoadSettings(), CAdvancedCleanupParamsPanel::LoadSettings(), CAlignNeedlemanWunschPanel::LoadSettings(), CFastaAlignExportPage::LoadSettings(), CMAPanel::LoadSettings(), CNGAlignPanel::LoadSettings(), C5ColExporter::LoadSettings(), CWiggleExportPage::LoadSettings(), CAttribTableDelimitersPanel::LoadSettings(), CwxExportAlnmultiImgDlg::LoadSettings(), CCDSTranslationPanel::LoadSettings(), CAssignColumnValueDlg::LoadSettings(), CCopyColumnDlg::LoadSettings(), CTableColumnIdPanel::LoadSettings(), CTableXformPanel::LoadSettings(), CwxExportVectorImageDlg::LoadSettings(), CGeneModelConfig::LoadSettings(), CRulerPanel::LoadSettings(), CHistParamsManager::LoadSettings(), CwxSavePdfBaseDlg::LoadSettings(), CGenBankLoadOptionPanel::LoadSettings(), CSequenceEditingEventHandler::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CGeneModelConfig::LoadSettingsPartial(), CSeqGraphicDemoDlg::OnAccClick(), CRunToolDlg::OnButtonClick(), CwxMainFrame::OnCloseWindow(), CwxMainFrame::OnCreateTableControlItems(), CDiscrepancyConf::OnOk(), WizardPage::OnOptOutClick(), WizardPage2::OnProblemPageChanging(), CDiscrepancyDlg::OnReopen(), CSaveImagesSetupDlg::OnSave(), CTooltipFrame::OnSelectText(), CDiscrepancyPanel::OnTestName(), CValidateFrame::OnUpdateDoneBtn(), CGenBankUIDataSource::Open(), ReadProject(), CFrameworkDemoGUI::RestoreWindowLayout(), s_GetProductRules(), s_LoadTempTrackRecursive(), CStringHistory::Save(), CGBDocument::Save(), CPhyloTreeScheme::SaveCurrentSettings(), CGenBankLoadOptionPanel::SaveMruAccessions(), CUsageReportJob::SaveSettings(), CAsnExportParams::SaveSettings(), CDataMiningPanel::SaveSettings(), CParamsPanel::SaveSettings(), CProjectService::SaveSettings(), CProjectTreeView::SaveSettings(), CSearchFormBase::SaveSettings(), CSelectionService::SaveSettings(), CFileLoadManager::SaveSettings(), CGCAssemblyLoadManager::SaveSettings(), CVisibleRangeService::SaveSettings(), CDiagConsoleList::SaveSettings(), CEventTablePanel::SaveSettings(), CItemSelectionPanel::SaveSettings(), CTaskTablePanel::SaveSettings(), CAlignSpanView::SaveSettings(), CAlignTabExportParams::SaveSettings(), CBLASTSearchOptionsPanel::SaveSettings(), CBLASTToolManager::SaveSettings(), CCleanupAlignmentsParamsPanel::SaveSettings(), CClustalOmegaToolParams::SaveSettings(), CClustalwToolParams::SaveSettings(), CCreateGeneModelParamsPanel::SaveSettings(), CFindOverlapPanel::SaveSettings(), CFindOverlapParams::SaveSettings(), SGroupAlignmentsParams::SaveSettings(), CGroupAlignmentsParamsPanel::SaveSettings(), CKalignToolParams::SaveSettings(), CLBLASTUILoadManager::SaveSettings(), CMafftToolParams::SaveSettings(), SMergeAlignmentsParams::SaveSettings(), CMergeAlignmentsParamsPanel::SaveSettings(), CMuscleToolParams::SaveSettings(), CNeedlemanWunschToolParams::SaveSettings(), CNetBLASTUIDataSource::SaveSettings(), CNetBLASTUILoadManager::SaveSettings(), CNGAlignParams::SaveSettings(), CPhyExportParams::SaveSettings(), CProSplignParams::SaveSettings(), CSplignParams::SaveSettings(), CTreeBuilderPanel::SaveSettings(), CTreeBuilderParams::SaveSettings(), C5ColExportParams::SaveSettings(), CAgpExportParams::SaveSettings(), CBamUILoadManager::SaveSettings(), CCleanupPanel::SaveSettings(), CCleanupParams::SaveSettings(), CFastaExportParams::SaveSettings(), CFlatFileExportParams::SaveSettings(), CGenBankUILoadManager::SaveSettings(), CGffExportParams::SaveSettings(), CGtfExportParams::SaveSettings(), CFeatTableView::SaveSettings(), CWiggleExportParams::SaveSettings(), CWindowMaskerPanel::SaveSettings(), CWindowMaskerParams::SaveSettings(), CAECRFrame::SaveSettings(), CApplyRNAITSDlg::SaveSettings(), SAutodefParams::SaveSettings(), CAutodefParamsPanel::SaveSettings(), CBulkEditFeatDlg::SaveSettings(), CCompareWithBiosample::SaveSettings(), CDebugMacroToolParams::SaveSettings(), CEditPubDlg::SaveSettings(), CFeatureTblFr::SaveSettings(), CFindASN1Dlg::SaveSettings(), CParseTextDlg::SaveSettings(), CSrcEditPanel::SaveSettings(), CSubPrep_panel::SaveSettings(), CSUCRefreshCntrl::SaveSettings(), CValidateFrame::SaveSettings(), CAlnMultiWidget::SaveSettings(), CQueryParsePanel::SaveSettings(), CEditSequence::SaveSettings(), CGenericReportDlg::SaveSettings(), CMacroFlowEditor::SaveSettings(), CSequencingTechnologyPanel::SaveSettings(), CwxGridTableAdapter::SaveSettings(), CAgpLoadParams::SaveSettings(), CAssemblyListPanel::SaveSettings(), CAssemblyLoadWizard::SaveSettings(), CBamCoverageGraphPanel::SaveSettings(), CBedLoadParams::SaveSettings(), CFastaLoadParams::SaveSettings(), CFileLoadWizard::SaveSettings(), CGBFlatFileLoadParams::SaveSettings(), CGffLoadParams::SaveSettings(), CLBLASTLoadParams::SaveSettings(), COpenObjectsPanel::SaveSettings(), CPslLoadParams::SaveSettings(), CTextAlignParams::SaveSettings(), CVcfAssemblySelectionPanel::SaveSettings(), CWigLoadParams::SaveSettings(), CWinMaskerFileStorage::SaveSettings(), CObjectListWidgetSel::SaveSettings(), CDialog::SaveSettings(), CUIToolRegistry::SaveSettings(), CAsnExportPage::SaveSettings(), CSelectionPanel::SaveSettings(), CAdvancedCleanupParams::SaveSettings(), CAdvancedCleanupParamsPanel::SaveSettings(), CAlignNeedlemanWunschPanel::SaveSettings(), CFastaAlignExportPage::SaveSettings(), CMAPanel::SaveSettings(), CNGAlignPanel::SaveSettings(), C5ColExporter::SaveSettings(), CWiggleExportPage::SaveSettings(), CAttribTableColumnIdPanel::SaveSettings(), CAttribTableDelimitersPanel::SaveSettings(), CwxExportAlnmultiImgDlg::SaveSettings(), CCDSTranslationPanel::SaveSettings(), CAssignColumnValueDlg::SaveSettings(), CCopyColumnDlg::SaveSettings(), CTableColumnIdPanel::SaveSettings(), CwxExportVectorImageDlg::SaveSettings(), CGeneModelConfig::SaveSettings(), CHistParamsManager::SaveSettings(), CwxSavePdfBaseDlg::SaveSettings(), CGenBankLoadOptionPanel::SaveSettings(), CSequenceEditingEventHandler::SaveSettings(), CUpdateSeqPanel::SaveSettings(), CEditingBtnsPanel::SaveSettings(), CTempTrackProxy::SaveToRegistry(), CDiscrepancyPanel::SaveTreeState(), CGenericPanel::SetFontAsTextPanel(), CPkgManager::SetPackagesToLoad(), CwxGridTableAdapter::SetView(), ShowFeedbackDialog(), CTextPanel::UpdateRegistry(), CSnpTrack::x_AddSnpsLayout(), CValidateFrame::x_AllowDoneButton(), CDialog::x_CorrectDisplay(), COpenDlg::x_DoTransition(), CBinsGlyph::x_Draw(), CGeneMarkerGlyph::x_Draw(), CScatterPlotGlyph::x_Draw(), CAppExportTask::x_Finish(), CDockNotebook::x_GetPageNameByWindow(), CAggregateFeatureTrack::x_GetSubkeyStringVec(), CGBDocument::x_GetUndoSize(), CSaveImagesSetupDlg::x_Init(), CUpdateSeqPanel::x_InitAlnMultiWidgetAndUpdateTypes(), CGridWidget::x_InitGrid(), CQuickLaunchList::x_Load(), CRecentToolList::x_Load(), CAlignmentTrack::x_LoadAlignmentSettings(), CwxGridTableAdapter::x_LoadColumnWidth(), CwxNCBIApp::x_LoadGuiRegistry(), CAlignmentTrack::x_LoadMatePairSettings(), CwxChooseSeqDlg::x_LoadSettings(), CFeaturePanel::x_LoadSettings(), CFeatureTrack::x_LoadSettings(), CSnpTrack::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CSixFramesTransTrack::x_LoadSettings(), CAssemblyListPanel::x_LoadTableSettings(), CTextPanel::x_ReadRegistry(), CQuickLaunchList::x_Save(), CRecentToolList::x_Save(), CAlignmentTrack::x_SaveAlignmentSettings(), CwxGridTableAdapter::x_SaveColumnWidth(), CAlignmentTrack::x_SaveConfiguration(), CSegmentMapTrack::x_SaveConfiguration(), CSequenceTrack::x_SaveConfiguration(), CwxNCBIApp::x_SaveGuiRegistry(), CAlignmentTrack::x_SaveMatePairSettings(), CwxChooseSeqDlg::x_SaveSettings(), CFeaturePanel::x_SaveSettings(), CTextPanel::x_SaveViewType(), CFeatureCheckDialog::x_Serialize(), CSubAnnotationPanel::x_SetFontAsTextPanel(), CAssemblyListPanel::x_ShowStatus(), and CDataMiningPanel::x_SyncTableSettings().

◆ GetInt()

int CGuiRegistry::GetInt ( const string key,
int  default_val = 0 
) const

retrieve values by section and key.

Sections and keys are recursively defined and use a specified set of delimiters; the delimiters are not serialized. A policy for agglomeration is also provided; that is, if the specified key is found in more than one place, the default behavior can be modified.

Definition at line 133 of file registry.cpp.

References GetField(), CRegistryReadView::GetInt(), and ncbi::grid::netcache::search::fields::key.

Referenced by CGuiHttpSessionRequest::CGuiHttpSessionRequest(), CCompareWithBiosample::CreateBiosampleUpdateWebService(), CDoiLookup::GetPubFromCrossRef(), and CDockNotebook::x_GetPageNameByWindow().

◆ GetIntVec()

void CGuiRegistry::GetIntVec ( const string key,
vector< int > &  val 
) const

◆ GetReadView() [1/2]

CRegistryReadView CGuiRegistry::GetReadView ( const string section) const

get a read-only view at a particular level.

This provides limited access to a sub-key and all of its components.

Definition at line 428 of file registry.cpp.

References x_AppendToView().

Referenced by CPhyloTreePane::CPhyloTreePane(), CSettingsSet::CSettingsSet(), CSeqUtils::GetAnnotSelector(), CSGConfigUtils::GetReadView(), CSequencingTechnologyPanel::GetReplaceAll(), CSeqUtils::GetSelectorRegistry(), CSettingsSet::GetStyleNames(), CSequenceEditingEventHandler::IndexerTypeSelection(), CSeqGraphicConfig::InitCategoryConfig(), CTextPanel::InitWidget(), CStringHistory::Load(), CPhyloTreeScheme::LoadCurrentSettings(), CPkgManager::LoadPackages(), CAsnExportParams::LoadSettings(), CDataMiningPanel::LoadSettings(), CParamsPanel::LoadSettings(), CProjectService::LoadSettings(), CSelectionService::LoadSettings(), CFileLoadManager::LoadSettings(), CGCAssemblyLoadManager::LoadSettings(), CVisibleRangeService::LoadSettings(), CDiagConsoleList::LoadSettings(), CEventTablePanel::LoadSettings(), CItemSelectionPanel::LoadSettings(), CTaskTablePanel::LoadSettings(), CAlignSpanView::LoadSettings(), CAlignTabExportParams::LoadSettings(), CBLASTSearchOptionsPanel::LoadSettings(), CBLASTToolManager::LoadSettings(), CCleanupAlignmentsParamsPanel::LoadSettings(), CClustalOmegaToolParams::LoadSettings(), CClustalwToolParams::LoadSettings(), CCreateGeneModelParamsPanel::LoadSettings(), CFindOverlapPanel::LoadSettings(), CFindOverlapParams::LoadSettings(), SGroupAlignmentsParams::LoadSettings(), CGroupAlignmentsParamsPanel::LoadSettings(), CKalignToolParams::LoadSettings(), CLBLASTUILoadManager::LoadSettings(), CMafftToolParams::LoadSettings(), SMergeAlignmentsParams::LoadSettings(), CMergeAlignmentsParamsPanel::LoadSettings(), CMuscleToolParams::LoadSettings(), CNeedlemanWunschToolParams::LoadSettings(), CNetBLASTUIDataSource::LoadSettings(), CNetBLASTUILoadManager::LoadSettings(), CNGAlignParams::LoadSettings(), CPhyExportParams::LoadSettings(), CProSplignParams::LoadSettings(), CSplignParams::LoadSettings(), CTreeBuilderPanel::LoadSettings(), CTreeBuilderParams::LoadSettings(), C5ColExportParams::LoadSettings(), CAgpExportParams::LoadSettings(), CBamUILoadManager::LoadSettings(), CCleanupPanel::LoadSettings(), CCleanupParams::LoadSettings(), CFastaExportParams::LoadSettings(), CFlatFileExportParams::LoadSettings(), CGenBankUILoadManager::LoadSettings(), CGffExportParams::LoadSettings(), CGtfExportParams::LoadSettings(), CFeatTableView::LoadSettings(), CWiggleExportParams::LoadSettings(), CWindowMaskerPanel::LoadSettings(), CWindowMaskerParams::LoadSettings(), CAECRFrame::LoadSettings(), CApplyRNAITSDlg::LoadSettings(), SAutodefParams::LoadSettings(), CAutodefParamsPanel::LoadSettings(), CBulkEditFeatDlg::LoadSettings(), CCompareWithBiosample::LoadSettings(), CDebugMacroToolParams::LoadSettings(), CDiscrepancyDlg::LoadSettings(), CEditPubDlg::LoadSettings(), CFeatureTblFr::LoadSettings(), CFindASN1Dlg::LoadSettings(), CParseTextDlg::LoadSettings(), CSrcEditPanel::LoadSettings(), CSubPrep_panel::LoadSettings(), CSUCRefreshCntrl::LoadSettings(), CValidateFrame::LoadSettings(), CAlnMultiWidget::LoadSettings(), CQueryParsePanel::LoadSettings(), CEditSequence::LoadSettings(), CGenericReportDlg::LoadSettings(), CMacroFlowEditor::LoadSettings(), CwxGridTableAdapter::LoadSettings(), CAgpLoadParams::LoadSettings(), CAssemblyListPanel::LoadSettings(), CAssemblyLoadWizard::LoadSettings(), CBamCoverageGraphPanel::LoadSettings(), CBedLoadParams::LoadSettings(), CFastaLoadParams::LoadSettings(), CFileLoadWizard::LoadSettings(), CGBFlatFileLoadParams::LoadSettings(), CGffLoadParams::LoadSettings(), CLBLASTLoadParams::LoadSettings(), COpenObjectsPanel::LoadSettings(), CPslLoadParams::LoadSettings(), CTextAlignParams::LoadSettings(), CVcfAssemblySelectionPanel::LoadSettings(), CWigLoadParams::LoadSettings(), CWinMaskerFileStorage::LoadSettings(), CObjectListWidgetSel::LoadSettings(), CSeqGraphicConfig::LoadSettings(), CDialog::LoadSettings(), CUIToolRegistry::LoadSettings(), CAsnExportPage::LoadSettings(), CSelectionPanel::LoadSettings(), CAdvancedCleanupParams::LoadSettings(), CAdvancedCleanupParamsPanel::LoadSettings(), CAlignNeedlemanWunschPanel::LoadSettings(), CFastaAlignExportPage::LoadSettings(), CMAPanel::LoadSettings(), CNGAlignPanel::LoadSettings(), C5ColExporter::LoadSettings(), CWiggleExportPage::LoadSettings(), CwxExportAlnmultiImgDlg::LoadSettings(), CCDSTranslationPanel::LoadSettings(), CAssignColumnValueDlg::LoadSettings(), CCopyColumnDlg::LoadSettings(), CTableColumnIdPanel::LoadSettings(), CTableXformPanel::LoadSettings(), CwxExportVectorImageDlg::LoadSettings(), CwxSavePdfBaseDlg::LoadSettings(), CGenBankLoadOptionPanel::LoadSettings(), CSequenceEditingEventHandler::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CSeqGraphicConfig::LoadSettingStyles(), CwxMainFrame::OnCreateTableControlItems(), CValidateFrame::OnUpdateDoneBtn(), CFrameworkDemoGUI::RestoreWindowLayout(), s_GetProductRules(), CSeqGraphicConfig::SaveSettings(), CwxGridTableAdapter::SetView(), CValidateFrame::x_AllowDoneButton(), CPhyloTreeScheme::x_GetReadView(), CSettingsSet::x_GetStyleKey(), CSettingsSet::x_GetStyleView(), CGBDocument::x_GetUndoSize(), CSaveImagesSetupDlg::x_Init(), CGridWidget::x_InitGrid(), CwxGridTableAdapter::x_LoadColumnWidth(), CSeqGraphicConfig::x_LoadFeatSettings(), CwxChooseSeqDlg::x_LoadSettings(), CAssemblyListPanel::x_LoadTableSettings(), CTextPanel::x_ReadRegistry(), CQuickLaunchList::x_Save(), CFeatureCheckDialog::x_Serialize(), and CSeqGraphicConfig::x_VerifySettings().

◆ GetReadView() [2/2]

CRegistryReadView CGuiRegistry::GetReadView ( const string section,
const vector< string > &  sub_sections 
) const

get a read view that will overlay several named sub-sections in a given section.

This is useful for developing a polymorphic data structure that contains overloaded data members. Note that the sections listed in sub_sections are presumed to be in increasing order of importance, so if you want a section named "overloaded" to replace one named "default", add them to the sections in the order "default", "overloaded"

Definition at line 437 of file registry.cpp.

References kDecimalDot, ncbi::grid::netcache::search::fields::key, str(), and x_AppendToView().

◆ GetReal()

double CGuiRegistry::GetReal ( const string key,
double  default_val = 0 
) const

◆ GetRealVec()

void CGuiRegistry::GetRealVec ( const string key,
vector< double > &  val 
) const

◆ GetString()

string CGuiRegistry::GetString ( const string key,
const string default_val = kEmptyStr 
) const

◆ GetStringList()

void CGuiRegistry::GetStringList ( const string key,
list< string > &  val 
) const

◆ GetStringVec()

void CGuiRegistry::GetStringVec ( const string key,
vector< string > &  val 
) const

◆ GetWritableSite()

int CGuiRegistry::GetWritableSite ( )

Get the priority of the site that Set methods modify.

Definition at line 118 of file registry.cpp.

References m_WritableSite.

Referenced by DeleteField(), GetWriteView(), Set(), SetField(), and SetFieldToValue().

◆ GetWriteView() [1/3]

CRegistryWriteView CGuiRegistry::GetWriteView ( const string section)

get a read-write view at a particular level.

This provides limited access to a sub-key and all of its components.

Definition at line 462 of file registry.cpp.

References eUnknown, GetWritableSite(), CRegistryFile::GetWriteView(), m_isReadOnly, NCBI_THROW, and x_SetRegistry().

Referenced by CDiscrepancyDlg::Destroy(), CSequesterSets::EnableSmartPackageDone(), CSGConfigUtils::GetWriteView(), CSequenceEditingEventHandler::IndexerTypeSelection(), CAttribTableDelimitersPanel::LoadSettings(), CwxMainFrame::OnCloseWindow(), CDiscrepancyConf::OnOk(), CDiscrepancyDlg::OnReopen(), CSaveImagesSetupDlg::OnSave(), CDiscrepancyPanel::OnTestName(), CStringHistory::Save(), CPhyloTreeScheme::SaveCurrentSettings(), CGenBankLoadOptionPanel::SaveMruAccessions(), CAsnExportParams::SaveSettings(), CDataMiningPanel::SaveSettings(), CParamsPanel::SaveSettings(), CProjectService::SaveSettings(), CSelectionService::SaveSettings(), CFileLoadManager::SaveSettings(), CGCAssemblyLoadManager::SaveSettings(), CVisibleRangeService::SaveSettings(), CDiagConsoleList::SaveSettings(), CEventTablePanel::SaveSettings(), CItemSelectionPanel::SaveSettings(), CTaskTablePanel::SaveSettings(), CAlignSpanView::SaveSettings(), CAlignTabExportParams::SaveSettings(), CBLASTSearchOptionsPanel::SaveSettings(), CBLASTToolManager::SaveSettings(), CCleanupAlignmentsParamsPanel::SaveSettings(), CClustalOmegaToolParams::SaveSettings(), CClustalwToolParams::SaveSettings(), CCreateGeneModelParamsPanel::SaveSettings(), CFindOverlapPanel::SaveSettings(), CFindOverlapParams::SaveSettings(), SGroupAlignmentsParams::SaveSettings(), CGroupAlignmentsParamsPanel::SaveSettings(), CKalignToolParams::SaveSettings(), CLBLASTUILoadManager::SaveSettings(), CMafftToolParams::SaveSettings(), SMergeAlignmentsParams::SaveSettings(), CMergeAlignmentsParamsPanel::SaveSettings(), CMuscleToolParams::SaveSettings(), CNeedlemanWunschToolParams::SaveSettings(), CNetBLASTUIDataSource::SaveSettings(), CNetBLASTUILoadManager::SaveSettings(), CNGAlignParams::SaveSettings(), CPhyExportParams::SaveSettings(), CProSplignParams::SaveSettings(), CSplignParams::SaveSettings(), CTreeBuilderPanel::SaveSettings(), CTreeBuilderParams::SaveSettings(), C5ColExportParams::SaveSettings(), CAgpExportParams::SaveSettings(), CBamUILoadManager::SaveSettings(), CCleanupPanel::SaveSettings(), CCleanupParams::SaveSettings(), CFastaExportParams::SaveSettings(), CFlatFileExportParams::SaveSettings(), CGenBankUILoadManager::SaveSettings(), CGffExportParams::SaveSettings(), CGtfExportParams::SaveSettings(), CFeatTableView::SaveSettings(), CWiggleExportParams::SaveSettings(), CWindowMaskerPanel::SaveSettings(), CWindowMaskerParams::SaveSettings(), CAECRFrame::SaveSettings(), CApplyRNAITSDlg::SaveSettings(), SAutodefParams::SaveSettings(), CAutodefParamsPanel::SaveSettings(), CBulkEditFeatDlg::SaveSettings(), CCompareWithBiosample::SaveSettings(), CDebugMacroToolParams::SaveSettings(), CEditPubDlg::SaveSettings(), CFeatureTblFr::SaveSettings(), CFindASN1Dlg::SaveSettings(), CParseTextDlg::SaveSettings(), CSrcEditPanel::SaveSettings(), CSubPrep_panel::SaveSettings(), CSUCRefreshCntrl::SaveSettings(), CValidateFrame::SaveSettings(), CAlnMultiWidget::SaveSettings(), CQueryParsePanel::SaveSettings(), CEditSequence::SaveSettings(), CGenericReportDlg::SaveSettings(), CMacroFlowEditor::SaveSettings(), CSequencingTechnologyPanel::SaveSettings(), CwxGridTableAdapter::SaveSettings(), CAgpLoadParams::SaveSettings(), CAssemblyListPanel::SaveSettings(), CAssemblyLoadWizard::SaveSettings(), CBamCoverageGraphPanel::SaveSettings(), CBedLoadParams::SaveSettings(), CFastaLoadParams::SaveSettings(), CFileLoadWizard::SaveSettings(), CGBFlatFileLoadParams::SaveSettings(), CGffLoadParams::SaveSettings(), CLBLASTLoadParams::SaveSettings(), COpenObjectsPanel::SaveSettings(), CPslLoadParams::SaveSettings(), CTextAlignParams::SaveSettings(), CVcfAssemblySelectionPanel::SaveSettings(), CWigLoadParams::SaveSettings(), CWinMaskerFileStorage::SaveSettings(), CObjectListWidgetSel::SaveSettings(), CDialog::SaveSettings(), CUIToolRegistry::SaveSettings(), CAsnExportPage::SaveSettings(), CSelectionPanel::SaveSettings(), CAdvancedCleanupParams::SaveSettings(), CAdvancedCleanupParamsPanel::SaveSettings(), CAlignNeedlemanWunschPanel::SaveSettings(), CFastaAlignExportPage::SaveSettings(), CMAPanel::SaveSettings(), CNGAlignPanel::SaveSettings(), C5ColExporter::SaveSettings(), CWiggleExportPage::SaveSettings(), CAttribTableColumnIdPanel::SaveSettings(), CAttribTableDelimitersPanel::SaveSettings(), CwxExportAlnmultiImgDlg::SaveSettings(), CCDSTranslationPanel::SaveSettings(), CAssignColumnValueDlg::SaveSettings(), CCopyColumnDlg::SaveSettings(), CTableColumnIdPanel::SaveSettings(), CwxExportVectorImageDlg::SaveSettings(), CSeqGraphicConfig::SaveSettings(), CwxSavePdfBaseDlg::SaveSettings(), CGenBankLoadOptionPanel::SaveSettings(), CSequenceEditingEventHandler::SaveSettings(), CEditingBtnsPanel::SaveSettings(), CDiscrepancyPanel::SaveTreeState(), CPkgManager::SetPackagesToLoad(), CTextPanel::UpdateRegistry(), CPhyloTreeScheme::x_GetWriteView(), CwxGridTableAdapter::x_SaveColumnWidth(), CwxChooseSeqDlg::x_SaveSettings(), CTextPanel::x_SaveViewType(), CFeatureCheckDialog::x_Serialize(), CAssemblyListPanel::x_ShowStatus(), and CDataMiningPanel::x_SyncTableSettings().

◆ GetWriteView() [2/3]

CRegistryWriteView CGuiRegistry::GetWriteView ( const string section,
const vector< string > &  sub_sections 
)

get a read-write view that will overlay several named sub-sections in a given section.

This is useful for developing a polymorphic data structure that contains overloaded data members. Note that the sections listed in sub_sections are presumed to be in increasing order of importance, so if you want a section named "overloaded" to replace one named "default", add them to the sections in the order "default", "overloaded"

Definition at line 478 of file registry.cpp.

References eUnknown, GetWritableSite(), CRegistryFile::GetWriteView(), kDecimalDot, m_isReadOnly, NCBI_THROW, str(), and x_SetRegistry().

◆ GetWriteView() [3/3]

CRegistryWriteView CGuiRegistry::GetWriteView ( const string section,
int  writeSite 
)

◆ HasField()

bool CGuiRegistry::HasField ( const string key) const

Does a field with this section and key exist in this view?

Definition at line 365 of file registry.cpp.

References ITERATE, ncbi::grid::netcache::search::fields::key, and m_Registries.

Referenced by CPkgManager::LoadPackages(), and CSettingsSet::x_MakeUniqueStyleKey().

◆ operator=()

CGuiRegistry& CGuiRegistry::operator= ( const CGuiRegistry )
private

◆ Set() [1/18]

void CGuiRegistry::Set ( const string key,
bool  val 
)

Definition at line 190 of file registry.cpp.

References GetWritableSite(), ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [2/18]

void CGuiRegistry::Set ( const string key,
const char *  val 
)

Definition at line 202 of file registry.cpp.

References ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [3/18]

void CGuiRegistry::Set ( const string key,
const list< string > &  val 
)

Definition at line 226 of file registry.cpp.

References GetWritableSite(), ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [4/18]

void CGuiRegistry::Set ( const string key,
const string val 
)

Definition at line 196 of file registry.cpp.

References GetWritableSite(), ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [5/18]

void CGuiRegistry::Set ( const string key,
const vector< double > &  val 
)

Definition at line 214 of file registry.cpp.

References GetWritableSite(), ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [6/18]

void CGuiRegistry::Set ( const string key,
const vector< int > &  val 
)

Definition at line 208 of file registry.cpp.

References GetWritableSite(), ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [7/18]

void CGuiRegistry::Set ( const string key,
const vector< string > &  val 
)

Definition at line 220 of file registry.cpp.

References GetWritableSite(), ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [8/18]

void CGuiRegistry::Set ( const string key,
double  val 
)

Definition at line 184 of file registry.cpp.

References GetWritableSite(), ncbi::grid::netcache::search::fields::key, Set(), and val.

◆ Set() [9/18]

void CGuiRegistry::Set ( const string key,
int  val 
)

◆ Set() [10/18]

void CGuiRegistry::Set ( int  site,
const string key,
bool  val 
)

◆ Set() [11/18]

void CGuiRegistry::Set ( int  site,
const string key,
const char *  val 
)

Definition at line 264 of file registry.cpp.

References ncbi::grid::netcache::search::fields::key, Set(), site, and val.

◆ Set() [12/18]

void CGuiRegistry::Set ( int  site,
const string key,
const list< string > &  val 
)

Definition at line 299 of file registry.cpp.

References ITERATE, ncbi::grid::netcache::search::fields::key, Set(), site, and val.

◆ Set() [13/18]

void CGuiRegistry::Set ( int  site,
const string key,
const string val 
)

◆ Set() [14/18]

void CGuiRegistry::Set ( int  site,
const string key,
const vector< double > &  val 
)

◆ Set() [15/18]

void CGuiRegistry::Set ( int  site,
const string key,
const vector< int > &  val 
)

◆ Set() [16/18]

void CGuiRegistry::Set ( int  site,
const string key,
const vector< string > &  val 
)

◆ Set() [17/18]

void CGuiRegistry::Set ( int  site,
const string key,
double  val 
)

◆ Set() [18/18]

void CGuiRegistry::Set ( int  site,
const string key,
int  val 
)

◆ SetField() [1/2]

CRef< CUser_field > CGuiRegistry::SetField ( const string key)

retrieve the best user field object for our key, taking into account our multiple stores

Definition at line 308 of file registry.cpp.

References GetWritableSite(), and ncbi::grid::netcache::search::fields::key.

◆ SetField() [2/2]

CRef< CUser_field > CGuiRegistry::SetField ( int  site,
const string key 
)

◆ SetFieldToValue() [1/2]

CRef< CUser_field > CGuiRegistry::SetFieldToValue ( const string key)

same as SetField, but complain loudly if the field has subfields in it already.

Definition at line 321 of file registry.cpp.

References GetWritableSite(), and ncbi::grid::netcache::search::fields::key.

Referenced by CSettingsSet::Set().

◆ SetFieldToValue() [2/2]

CRef< CUser_field > CGuiRegistry::SetFieldToValue ( int  site,
const string key 
)

◆ SetGlobal()

void CGuiRegistry::SetGlobal ( CNcbiIstream istr)

Set the "global" repository.

This is the lowest priority repostory and is read-only for the application.

Definition at line 77 of file registry.cpp.

References AddSite(), and ePriority_Global.

◆ SetLocal()

void CGuiRegistry::SetLocal ( CNcbiIstream istr)

establish our "local" repository.

The local repository is the highest priority repository; it is also the only repository that can be serialized directly with this interface

Definition at line 55 of file registry.cpp.

References AddSite(), and ePriority_Local.

Referenced by CSeqGraphicDemoDlg::OnAccClick(), and CwxNCBIApp::x_LoadGuiRegistry().

◆ SetReadOnly()

void CGuiRegistry::SetReadOnly ( )
inline

Definition at line 241 of file registry.hpp.

References m_isReadOnly.

◆ SetWritableSite()

void CGuiRegistry::SetWritableSite ( int  priority = ePriority_Local)

Set which site Set methods modify.

Creates the site if it did not exist.

Definition at line 110 of file registry.cpp.

References m_WritableSite.

◆ ToConfigFile()

void CGuiRegistry::ToConfigFile ( CNcbiOstream ostr) const

Write the local policy to a specified stream, in INI format.

Definition at line 68 of file registry.cpp.

References map_checker< Container >::end(), ePriority_Local, map_checker< Container >::find(), and m_Registries.

◆ Write()

void CGuiRegistry::Write ( CNcbiOstream ostr,
int  priority = ePriority_Local 
) const

◆ x_AppendToView()

void CGuiRegistry::x_AppendToView ( CRegistryReadView view,
const string section 
) const
protected

Add a section to an existing view at a lower priority than any previously existing sections in that view.

Implementation for Get*View() methods.

Definition at line 420 of file registry.cpp.

References CRegistryReadView::GetReadView(), ITERATE, and m_Registries.

Referenced by GetReadView().

◆ x_GetRegistryRef()

CRef< CRegistryFile > CGuiRegistry::x_GetRegistryRef ( int  priority) const
private

return the registry at a particular priority.

Do not create if it does not exist.

Definition at line 378 of file registry.cpp.

References map_checker< Container >::end(), map_checker< Container >::find(), and m_Registries.

Referenced by Write().

◆ x_SetRegistry()

CRegistryFile & CGuiRegistry::x_SetRegistry ( int  priority)
private

return a registry at a particular priority, creating it if need be.

Definition at line 389 of file registry.cpp.

References m_Registries, and CRef< C, Locker >::Reset().

Referenced by DeleteField(), GetWriteView(), Set(), SetField(), and SetFieldToValue().

Member Data Documentation

◆ kDecimalDot

const string CGuiRegistry::kDecimalDot = "."
static

◆ m_isReadOnly

bool CGuiRegistry::m_isReadOnly {false}
private

Definition at line 261 of file registry.hpp.

Referenced by GetWriteView(), and SetReadOnly().

◆ m_Registries

TRegistries CGuiRegistry::m_Registries
private

◆ m_WritableSite

int CGuiRegistry::m_WritableSite
private

The priority of the site that writes go to.

Definition at line 259 of file registry.hpp.

Referenced by GetWritableSite(), and SetWritableSite().


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:09:05 2024 by modify_doxy.py rev. 669887