Search Toolkit Book for CRegistryReadView
class CRegistryReadView provides a nested hierarchical view at a particular key. More...
#include <gui/objutils/reg_view.hpp>
class CRegistryReadView provides a nested hierarchical view at a particular key.
This is a light-weight object that any observer can hold onto for the life of the application. It provides read-only access to the registry at the key from which it was obtained; it cannot be used to access anything in the list of parent keys. If the key that was used to create the view doesn't exist and is added subsequent to obtaining the view, that key will not show up in the list of keys for this view.
Definition at line 57 of file reg_view.hpp.
◆ TFieldsordered list of subfields to scan
Definition at line 133 of file reg_view.hpp.
◆ TKeysretrieve information about all keys in the registry
Definition at line 68 of file reg_view.hpp.
◆ CRegistryReadView() [1/2] CRegistryReadView::CRegistryReadView ( ) inlineDefinition at line 70 of file reg_view.hpp.
◆ CRegistryReadView() [2/2] CRegistryReadView::CRegistryReadView ( const objects::CUser_field * userField ) protected ◆ DumpAll() void CRegistryReadView::DumpAll ( CNcbiOstream & ostr ) constDump onto the stream all the keys in this view along with their types and data values.
Definition at line 426 of file reg_view.cpp.
References NStr::BoolToString(), copy(), CUser_field_Base::C_Data::e_Bool, CUser_field_Base::C_Data::e_Fields, CUser_field_Base::C_Data::e_Int, CUser_field_Base::C_Data::e_Ints, CUser_field_Base::C_Data::e_Real, CUser_field_Base::C_Data::e_Reals, CUser_field_Base::C_Data::e_Str, CUser_field_Base::C_Data::e_Strs, GetBool(), GetInt(), GetIntVec(), GetKeys(), GetReal(), GetRealVec(), GetString(), GetStringVec(), ITERATE, and ncbi::grid::netcache::search::fields::key.
Referenced by CSettingsSet::DumpAll().
◆ GetBool() [1/2] bool CRegistryReadView::GetBool ( const objects::CUser_field * field, bool default_val ) staticDefinition at line 136 of file reg_view.cpp.
◆ GetBool() [2/2]Definition at line 241 of file reg_view.cpp.
References GetField(), and ncbi::grid::netcache::search::fields::key.
Referenced by DumpAll(), CSeqUtils::GetAnnotSelector(), CGuiRegistry::GetBool(), CSequencingTechnologyPanel::GetReplaceAll(), CSequenceTrackFactory::GetSettings(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CPhyloTreeScheme::LoadCurrentSettings(), CTempTrackProxy::LoadFromRegistry(), CParamsPanel::LoadSettings(), CSelectionService::LoadSettings(), CFileLoadManager::LoadSettings(), CVisibleRangeService::LoadSettings(), CEventTablePanel::LoadSettings(), CBLASTToolManager::LoadSettings(), CClustalOmegaToolParams::LoadSettings(), CClustalwToolParams::LoadSettings(), SGroupAlignmentsParams::LoadSettings(), CKalignToolParams::LoadSettings(), CMafftToolParams::LoadSettings(), SMergeAlignmentsParams::LoadSettings(), CMuscleToolParams::LoadSettings(), CNGAlignParams::LoadSettings(), CProSplignParams::LoadSettings(), CSplignParams::LoadSettings(), C5ColExportParams::LoadSettings(), CAgpExportParams::LoadSettings(), CFastaExportParams::LoadSettings(), CGffExportParams::LoadSettings(), CGtfExportParams::LoadSettings(), CWindowMaskerParams::LoadSettings(), SAutodefParams::LoadSettings(), CDiscrepancyDlg::LoadSettings(), CFeatureTblFr::LoadSettings(), CFindASN1Dlg::LoadSettings(), CMacroFlowEditor::LoadSettings(), CAgpLoadParams::LoadSettings(), CFastaLoadParams::LoadSettings(), CLBLASTLoadParams::LoadSettings(), CWinMaskerFileStorage::LoadSettings(), CSeqGraphicConfig::LoadSettings(), CMainFrame::LoadSettings(), CAdvancedCleanupParams::LoadSettings(), CCDSTranslationPanel::LoadSettings(), CGeneModelConfig::LoadSettings(), CWidgetDisplayStyle::LoadSettings(), CHistParamsManager::LoadSettings(), CMapAssemblyParams::LoadSettings(), SProjectSelectorParams::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CGeneModelConfig::LoadSettingsPartial(), CwxTableListCtrl::LoadTableSettings(), CValidateFrame::OnUpdateDoneBtn(), s_LoadTempTrackRecursive(), CSeqGraphicConfig::x_LoadFeatSettings(), CFeaturePanel::x_LoadSettings(), COpenViewDlg::x_LoadSettings(), CCSVSelectionExportDlg::x_LoadSettings(), CwxCSVExportDlg::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CSixFramesTransTrack::x_LoadSettings(), and CTextPanel::x_ReadRegistry().
◆ GetField()provide raw field access
Definition at line 104 of file reg_view.cpp.
References CUser_field::GetFieldRef(), ITERATE, ncbi::grid::netcache::search::fields::key, m_Fields, and ResolveField().
Referenced by CSettingsSet::CSettingsSet(), GetBool(), CSGConfigUtils::GetColor(), CWndLayoutReg::GetDefaultLayout(), GetInt(), GetIntVec(), CWndLayoutReg::GetLayout(), GetReal(), GetRealVec(), GetString(), GetStringList(), GetStringVec(), CBLASTToolManager::LoadSettings(), CFrameworkDemoGUI::RestoreWindowLayout(), CSettingsSet::x_GetCurrentViewField(), CFeaturePanel::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), and CPhyloTreeScheme::x_UserFieldToColor().
◆ GetInt() [1/2] int CRegistryReadView::GetInt ( const objects::CUser_field * field, int default_val ) staticDefinition at line 124 of file reg_view.cpp.
◆ GetInt() [2/2]access a named key at this level, with no recursion
type-specific field accessors
Definition at line 230 of file reg_view.cpp.
References GetField(), and ncbi::grid::netcache::search::fields::key.
Referenced by DumpAll(), CSGConfigUtils::GetFont(), CGuiRegistry::GetInt(), CSeqUtils::GetMaxSearchSegments(), CSeqUtils::GetMaxSearchTime(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CSGConfigUtils::GetTexFont(), CSequenceEditingEventHandler::IndexerTypeSelection(), CSeqGraphicConfig::InitCategoryConfig(), CTextPanel::InitWidget(), CPhyloTreeScheme::LoadCurrentSettings(), CTempTrackProxy::LoadFromRegistry(), CAsnExportParams::LoadSettings(), CSelectionService::LoadSettings(), CVisibleRangeService::LoadSettings(), CDiagConsoleList::LoadSettings(), CFindOverlapParams::LoadSettings(), SMergeAlignmentsParams::LoadSettings(), CMuscleToolParams::LoadSettings(), CNeedlemanWunschToolParams::LoadSettings(), CNGAlignParams::LoadSettings(), CProSplignParams::LoadSettings(), CSplignParams::LoadSettings(), CCleanupParams::LoadSettings(), CFlatFileExportParams::LoadSettings(), CWiggleExportParams::LoadSettings(), CWindowMaskerParams::LoadSettings(), CAECRFrame::LoadSettings(), CApplyRNAITSDlg::LoadSettings(), CBulkEditFeatDlg::LoadSettings(), CDiscrepancyDlg::LoadSettings(), CEditPubDlg::LoadSettings(), CFeatureTblFr::LoadSettings(), CFindASN1Dlg::LoadSettings(), CParseTextDlg::LoadSettings(), CSUCRefreshCntrl::LoadSettings(), CValidateFrame::LoadSettings(), CEditSequence::LoadSettings(), CGenericReportDlg::LoadSettings(), CMacroFlowEditor::LoadSettings(), CAgpLoadParams::LoadSettings(), CAssemblyListPanel::LoadSettings(), CBedLoadParams::LoadSettings(), CFastaLoadParams::LoadSettings(), CGBFlatFileLoadParams::LoadSettings(), CGffLoadParams::LoadSettings(), CTextAlignParams::LoadSettings(), CWigLoadParams::LoadSettings(), CSeqGraphicConfig::LoadSettings(), CAdvancedCleanupParams::LoadSettings(), CAssignColumnValueDlg::LoadSettings(), CCopyColumnDlg::LoadSettings(), CTableXformPanel::LoadSettings(), CGeneModelConfig::LoadSettings(), CRulerPanel::LoadSettings(), CHistParamsManager::LoadSettings(), CSequenceEditingEventHandler::LoadSettings(), SProjectSelectorParams::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CGeneModelConfig::LoadSettingsPartial(), CwxTableListCtrl::LoadTableSettings(), LoadWindowRectFromRegistry(), CGenBankUIDataSource::Open(), s_LoadTempTrackRecursive(), CwxGridTableAdapter::SetView(), sGetFont(), CValidateFrame::x_AllowDoneButton(), CGBDocument::x_GetUndoSize(), CAlignmentTrack::x_LoadAlignmentSettings(), CwxGridTableAdapter::x_LoadColumnWidth(), CDeleteFromBioseq_setDlg::x_LoadSettings(), CResolveIdDlg::x_LoadSettings(), CConfigureTracksDlg::x_LoadSettings(), CFeatureTrack::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CSixFramesTransTrack::x_LoadSettings(), and CTextPanel::x_ReadRegistry().
◆ GetIntVec() [1/2] void CRegistryReadView::GetIntVec ( const objects::CUser_field * field, vector< int > & val ) static ◆ GetIntVec() [2/2] void CRegistryReadView::GetIntVec ( const string & key, vector< int > & val ) constDefinition at line 252 of file reg_view.cpp.
References GetField(), ncbi::grid::netcache::search::fields::key, and val.
Referenced by DumpAll(), CGuiRegistry::GetIntVec(), CItemSelectionPanel::LoadSettings(), CwxGridTableAdapter::LoadSettings(), COpenObjectsPanel::LoadSettings(), CWidgetDisplayStyle::LoadSettings(), CTrackListCtrl::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CwxTableListCtrl::LoadTableSettings(), COpenDlg::x_LoadSettings(), and COrfSearchForm::x_LoadSettings().
◆ GetKeys() void CRegistryReadView::GetKeys ( TKeys & keys ) const ◆ GetReadView() [1/2] ◆ GetReadView() [2/2] ◆ GetReal() [1/2] double CRegistryReadView::GetReal ( const objects::CUser_field * field, double default_val ) staticDefinition at line 130 of file reg_view.cpp.
◆ GetReal() [2/2] double CRegistryReadView::GetReal ( const string & key, double default_val =0
) const ◆ GetRealVec() [1/2] void CRegistryReadView::GetRealVec ( const objects::CUser_field * field, vector< double > & val ) static ◆ GetRealVec() [2/2] void CRegistryReadView::GetRealVec ( const string & key, vector< double > & val ) const ◆ GetString() [1/2] ◆ GetString() [2/2]
Definition at line 246 of file reg_view.cpp.
References GetField(), and ncbi::grid::netcache::search::fields::key.
Referenced by CPhyloTreePane::CPhyloTreePane(), DumpAll(), CSeqUtils::GetAnnotSelector(), CSGConfigUtils::GetFont(), CSeqUtils::GetMaxSearchSegmentsAction(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CGuiRegistry::GetString(), CSGConfigUtils::GetTexFont(), CSeqGraphicConfig::InitCategoryConfig(), CPhyloTreeScheme::LoadCurrentSettings(), CTempTrackProxy::LoadFromRegistry(), CAsnExportParams::LoadSettings(), CDataMiningPanel::LoadSettings(), CFileLoadManager::LoadSettings(), CAlignTabExportParams::LoadSettings(), CClustalOmegaToolParams::LoadSettings(), CClustalwToolParams::LoadSettings(), CFindOverlapParams::LoadSettings(), CKalignToolParams::LoadSettings(), CMafftToolParams::LoadSettings(), CMuscleToolParams::LoadSettings(), CNGAlignParams::LoadSettings(), CPhyExportParams::LoadSettings(), CTreeBuilderParams::LoadSettings(), C5ColExportParams::LoadSettings(), CAgpExportParams::LoadSettings(), CBamUILoadManager::LoadSettings(), CFastaExportParams::LoadSettings(), CFlatFileExportParams::LoadSettings(), CGffExportParams::LoadSettings(), CGtfExportParams::LoadSettings(), CWiggleExportParams::LoadSettings(), CCompareWithBiosample::LoadSettings(), CDebugMacroToolParams::LoadSettings(), CDiscrepancyDlg::LoadSettings(), CMacroFlowEditor::LoadSettings(), CAgpLoadParams::LoadSettings(), CFileLoadWizard::LoadSettings(), CGffLoadParams::LoadSettings(), CLBLASTLoadParams::LoadSettings(), COpenObjectsPanel::LoadSettings(), CTextAlignParams::LoadSettings(), CSeqGraphicConfig::LoadSettings(), C5ColExporter::LoadSettings(), CwxExportAlnmultiImgDlg::LoadSettings(), CAssignColumnValueDlg::LoadSettings(), CCopyColumnDlg::LoadSettings(), CTableColumnIdPanel::LoadSettings(), CwxExportVectorImageDlg::LoadSettings(), CGeneModelConfig::LoadSettings(), CWidgetDisplayStyle::LoadSettings(), CRulerPanel::LoadSettings(), CHistParamsManager::LoadSettings(), CwxSavePdfBaseDlg::LoadSettings(), CGenBankLoadOptionPanel::LoadSettings(), CMapAssemblyParams::LoadSettings(), SProjectSelectorParams::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CGeneModelConfig::LoadSettingsPartial(), CSeqGraphicConfig::LoadSettingStyles(), CwxTableListCtrl::LoadTableSettings(), CWidgetDisplayStyle::ReadColor(), s_GetProductRules(), s_LoadTempTrackRecursive(), sGetFont(), sReadFont(), CSaveImagesSetupDlg::x_Init(), CAlignmentTrack::x_LoadAlignmentSettings(), CSeqGraphicConfig::x_LoadFeatSettings(), CFeaturePanel::x_LoadSettings(), COpenDlg::x_LoadSettings(), COpenViewDlg::x_LoadSettings(), CwxCSVExportDlg::x_LoadSettings(), CCpgSearchForm::x_LoadSettings(), CEntrezSearchForm::x_LoadSettings(), CFeatureSearchForm::x_LoadSettings(), COrfSearchForm::x_LoadSettings(), CSequenceSearchForm::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CSixFramesTransTrack::x_LoadSettings(), and CTextPanel::x_ReadRegistry().
◆ GetStringList() void CRegistryReadView::GetStringList ( const string & key, list< string > & val ) constDefinition at line 268 of file reg_view.cpp.
References copy(), GetField(), GetStringVec(), ncbi::grid::netcache::search::fields::key, and val.
Referenced by CStringHistory::Load(), CDataMiningPanel::LoadSettings(), CBamUILoadManager::LoadSettings(), CMacroFlowEditor::LoadSettings(), CTableColumnIdPanel::LoadSettings(), CRunToolDlg::x_LoadSettings(), and CFeatureSearchForm::x_LoadSettings().
◆ GetStringVec() [1/2] void CRegistryReadView::GetStringVec ( const objects::CUser_field * field, vector< string > & val ) static ◆ GetStringVec() [2/2] void CRegistryReadView::GetStringVec ( const string & key, vector< string > & val ) constDefinition at line 263 of file reg_view.cpp.
References GetField(), ncbi::grid::netcache::search::fields::key, and val.
Referenced by DumpAll(), GetStringList(), CGuiRegistry::GetStringList(), CGuiRegistry::GetStringVec(), CAggregateFeatureTrack::GetSubtypeListAsString(), CPkgManager::LoadPackages(), CProjectService::LoadSettings(), CSelectionService::LoadSettings(), CFileLoadManager::LoadSettings(), CItemSelectionPanel::LoadSettings(), CAlignTabExportParams::LoadSettings(), CDiscrepancyDlg::LoadSettings(), CQueryParsePanel::LoadSettings(), CFileLoadWizard::LoadSettings(), CUIToolRegistry::LoadSettings(), CWidgetDisplayStyle::LoadSettings(), CGenBankLoadOptionPanel::LoadSettings(), CEditingBtnsPanel::LoadSettings(), CAggregateFeatureTrack::x_GetSubkeyStringVec(), CGridWidget::x_InitGrid(), and CFeatureCheckDialog::x_Serialize().
◆ GetTopKeys() void CRegistryReadView::GetTopKeys ( TKeys & keys ) const ◆ HasField()Does a field with this section and key exist in this view?
Definition at line 352 of file reg_view.cpp.
References CUser_field::HasField(), ITERATE, ncbi::grid::netcache::search::fields::key, and m_Fields.
Referenced by CPhyloTreeScheme::LoadCurrentSettings(), CSelectionService::LoadSettings(), CBLASTToolManager::LoadSettings(), CSeqGraphicConfig::LoadSettings(), CSeqGraphicConfig::LoadSettingStyles(), CwxTableListCtrl::LoadTableSettings(), CValidateFrame::OnUpdateDoneBtn(), CSeqGraphicConfig::x_LoadFeatSettings(), and CFeatureCheckDialog::x_Serialize().
◆ IsEmpty() bool CRegistryReadView::IsEmpty ( void ) ◆ operator+=() ◆ ResolveField()Definition at line 368 of file reg_view.cpp.
References f, CUser_field_Base::GetData(), CUser_field::GetFieldRef(), CUser_field_Base::C_Data::GetStr(), CUser_field_Base::C_Data::IsStr(), ITERATE, CRef< C, Locker >::Release(), CRef< C, Locker >::Reset(), CUser_field_Base::SetData(), str(), and NStr::ToLower().
Referenced by GetField(), and CGuiRegistry::GetField().
◆ x_AppendToReadView() ◆ x_GetKeys() void CRegistryReadView::x_GetKeys ( TKeys & keys, bool recurse ) const protected ◆ CRegistryFile ◆ m_Fields TFields CRegistryReadView::m_Fields protectedThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4