NCBI C++ ToolKit
|
Search Toolkit Book for CRegistryWriteView
#include <gui/objutils/reg_view.hpp>
Public Member Functions | |
CRegistryWriteView () | |
CRegistryWriteView | GetWriteView (const string §ion) |
void | Set (const string &key, int val) |
access a named key at this level, with no recursion 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) |
CRef< objects::CUser_field > | SetField (const string &key) |
provide raw field access More... | |
CRef< objects::CUser_field > | SetFieldToValue (const string &key) |
same as SetField, but complain loudly if the field has subfields in it already. More... | |
bool | DeleteField (const string &key) |
delete the specified field (and any of its subfields) from this view and from its registry. More... | |
Private Member Functions | |
CRegistryWriteView (const string §ion, CRegistryFile ®File) | |
CRegistryWriteView. More... | |
Private Attributes | |
string | m_Section |
CRegistryFile * | m_RegistryFile |
Friends | |
class | CRegistryFile |
Definition at line 137 of file reg_view.hpp.
|
inline |
Definition at line 142 of file reg_view.hpp.
Referenced by GetWriteView().
|
private |
Definition at line 484 of file reg_view.cpp.
delete the specified field (and any of its subfields) from this view and from its registry.
returns true on success, false if the field does not exist in the writable site.
Definition at line 523 of file reg_view.cpp.
References CRegistryFile::DeleteField(), Error(), kDecimalDot, kEmptyViewError, ncbi::grid::netcache::search::fields::key, LOG_POST, m_RegistryFile, and m_Section.
Referenced by CFeaturePanel::LoadDefaultTracks(), CWndLayoutReg::Reset(), CSeqGraphicConfig::SaveSettings(), CwxTableListCtrl::SaveTableSettings(), CWndLayoutReg::SetLayout(), and CFeaturePanel::x_SaveSettings().
CRegistryWriteView CRegistryWriteView::GetWriteView | ( | const string & | section | ) |
Definition at line 491 of file reg_view.cpp.
References CRegistryWriteView(), Error(), kDecimalDot, kEmptyViewError, LOG_POST, m_RegistryFile, and m_Section.
Referenced by CUIToolRegistry::SaveSettings(), CProjectSelectorDlg::x_SaveSettings(), CUpdateMultiSeq_Dlg::x_SaveSettings(), CUpdateSeq_Dlg::x_SaveSettings(), and CConfigureTracksDlg::x_SaveSettings().
Definition at line 545 of file reg_view.cpp.
References ncbi::grid::netcache::search::fields::key, CUser_field_Base::SetData(), SetFieldToValue(), and val.
Definition at line 557 of file reg_view.cpp.
References ncbi::grid::netcache::search::fields::key, Set(), and val.
Definition at line 584 of file reg_view.cpp.
References ITERATE, ncbi::grid::netcache::search::fields::key, Set(), and val.
Definition at line 551 of file reg_view.cpp.
References ncbi::grid::netcache::search::fields::key, CUser_field_Base::SetData(), SetFieldToValue(), and val.
Definition at line 568 of file reg_view.cpp.
References ncbi::grid::netcache::search::fields::key, CUser_field_Base::SetData(), SetFieldToValue(), and val.
Definition at line 562 of file reg_view.cpp.
References ncbi::grid::netcache::search::fields::key, CUser_field_Base::SetData(), SetFieldToValue(), and val.
Definition at line 574 of file reg_view.cpp.
References ITERATE, ncbi::grid::netcache::search::fields::key, CUser_field_Base::SetData(), SetFieldToValue(), and val.
Definition at line 539 of file reg_view.cpp.
References ncbi::grid::netcache::search::fields::key, CUser_field_Base::SetData(), SetFieldToValue(), and val.
access a named key at this level, with no recursion
set specific values
Definition at line 533 of file reg_view.cpp.
References ncbi::grid::netcache::search::fields::key, CUser_field_Base::SetData(), SetFieldToValue(), and val.
Referenced by CDiscrepancyDlg::Destroy(), CSequesterSets::EnableSmartPackageDone(), CSequenceEditingEventHandler::IndexerTypeSelection(), 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(), CVisibleRangeService::SaveSettings(), CDiagConsoleList::SaveSettings(), CEventTablePanel::SaveSettings(), CItemSelectionPanel::SaveSettings(), CAlignTabExportParams::SaveSettings(), CBLASTToolManager::SaveSettings(), CClustalOmegaToolParams::SaveSettings(), CClustalwToolParams::SaveSettings(), CFindOverlapParams::SaveSettings(), SGroupAlignmentsParams::SaveSettings(), CKalignToolParams::SaveSettings(), CMafftToolParams::SaveSettings(), SMergeAlignmentsParams::SaveSettings(), CMuscleToolParams::SaveSettings(), CNeedlemanWunschToolParams::SaveSettings(), CNetBLASTUILoadManager::SaveSettings(), CNGAlignParams::SaveSettings(), CPhyExportParams::SaveSettings(), CProSplignParams::SaveSettings(), CSplignParams::SaveSettings(), CTreeBuilderParams::SaveSettings(), C5ColExportParams::SaveSettings(), CAgpExportParams::SaveSettings(), CBamUILoadManager::SaveSettings(), CCleanupParams::SaveSettings(), CFastaExportParams::SaveSettings(), CFlatFileExportParams::SaveSettings(), CGffExportParams::SaveSettings(), CGtfExportParams::SaveSettings(), CWiggleExportParams::SaveSettings(), CWindowMaskerParams::SaveSettings(), CAECRFrame::SaveSettings(), CApplyRNAITSDlg::SaveSettings(), SAutodefParams::SaveSettings(), CBulkEditFeatDlg::SaveSettings(), CCompareWithBiosample::SaveSettings(), CDebugMacroToolParams::SaveSettings(), CEditPubDlg::SaveSettings(), CFeatureTblFr::SaveSettings(), CFindASN1Dlg::SaveSettings(), CParseTextDlg::SaveSettings(), CSUCRefreshCntrl::SaveSettings(), CValidateFrame::SaveSettings(), CQueryParsePanel::SaveSettings(), CEditSequence::SaveSettings(), CGenericReportDlg::SaveSettings(), CMacroFlowEditor::SaveSettings(), CSequencingTechnologyPanel::SaveSettings(), CwxGridTableAdapter::SaveSettings(), CAgpLoadParams::SaveSettings(), CAssemblyListPanel::SaveSettings(), CBedLoadParams::SaveSettings(), CFastaLoadParams::SaveSettings(), CFileLoadWizard::SaveSettings(), CGBFlatFileLoadParams::SaveSettings(), CGffLoadParams::SaveSettings(), CLBLASTLoadParams::SaveSettings(), COpenObjectsPanel::SaveSettings(), CTextAlignParams::SaveSettings(), CWigLoadParams::SaveSettings(), CWinMaskerFileStorage::SaveSettings(), CMainFrame::SaveSettings(), CUIToolRegistry::SaveSettings(), CAdvancedCleanupParams::SaveSettings(), C5ColExporter::SaveSettings(), CwxExportAlnmultiImgDlg::SaveSettings(), CCDSTranslationPanel::SaveSettings(), CAssignColumnValueDlg::SaveSettings(), CCopyColumnDlg::SaveSettings(), CTableColumnIdPanel::SaveSettings(), CwxExportVectorImageDlg::SaveSettings(), CSeqGraphicConfig::SaveSettings(), CGeneModelConfig::SaveSettings(), CHistParamsManager::SaveSettings(), CwxSavePdfBaseDlg::SaveSettings(), CGenBankLoadOptionPanel::SaveSettings(), CSequenceEditingEventHandler::SaveSettings(), CMapAssemblyParams::SaveSettings(), SProjectSelectorParams::SaveSettings(), CTrackListCtrl::SaveSettings(), CWidgetDisplayStyle::SaveSettings(), CEditingBtnsPanel::SaveSettings(), CwxTableListCtrl::SaveTableSettings(), CTempTrackProxy::SaveToRegistry(), CDiscrepancyPanel::SaveTreeState(), SaveWindowRectToRegistry(), Set(), CSGConfigUtils::SetFont(), CPkgManager::SetPackagesToLoad(), CSGConfigUtils::SetTexFont(), sSetFont(), CTextPanel::UpdateRegistry(), CAlignmentTrack::x_SaveAlignmentSettings(), CwxGridTableAdapter::x_SaveColumnWidth(), CAlignmentTrack::x_SaveConfiguration(), CSegmentMapTrack::x_SaveConfiguration(), CSequenceTrack::x_SaveConfiguration(), CAlignmentTrack::x_SaveMatePairSettings(), CFeaturePanel::x_SaveSettings(), COpenDlg::x_SaveSettings(), COpenViewDlg::x_SaveSettings(), CRunToolDlg::x_SaveSettings(), CCSVSelectionExportDlg::x_SaveSettings(), CwxCSVExportDlg::x_SaveSettings(), CCpgSearchForm::x_SaveSettings(), CEntrezSearchForm::x_SaveSettings(), CFeatureSearchForm::x_SaveSettings(), COrfSearchForm::x_SaveSettings(), CSequenceSearchForm::x_SaveSettings(), CDeleteFromBioseq_setDlg::x_SaveSettings(), CResolveIdDlg::x_SaveSettings(), CConfigureTracksDlg::x_SaveSettings(), CTextPanel::x_SaveViewType(), and CFeatureCheckDialog::x_Serialize().
CRef< CUser_field > CRegistryWriteView::SetField | ( | const string & | key | ) |
provide raw field access
retrieve a writeable field at a particular section and key
Definition at line 502 of file reg_view.cpp.
References Error(), kDecimalDot, kEmptyViewError, ncbi::grid::netcache::search::fields::key, LOG_POST, m_RegistryFile, m_Section, and CRegistryFile::SetField().
Referenced by CBLASTToolManager::SaveSettings(), CSGConfigUtils::SetColor(), SetFieldToValue(), CWndLayoutReg::SetLayout(), CPhyloTreeScheme::x_ColorToUserField(), and CFeaturePanel::x_SaveSettings().
CRef< CUser_field > CRegistryWriteView::SetFieldToValue | ( | const string & | key | ) |
same as SetField, but complain loudly if the field has subfields in it already.
Definition at line 512 of file reg_view.cpp.
References eUnknown, CUser_field_Base::GetData(), CUser_field_Base::C_Data::IsFields(), ncbi::grid::netcache::search::fields::key, NCBI_THROW, and SetField().
Referenced by Set().
|
friend |
Definition at line 140 of file reg_view.hpp.
|
private |
Definition at line 174 of file reg_view.hpp.
Referenced by DeleteField(), GetWriteView(), and SetField().
|
private |
Definition at line 173 of file reg_view.hpp.
Referenced by DeleteField(), GetWriteView(), and SetField().