NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CRegistryWriteView Class Reference

Search Toolkit Book for CRegistryWriteView

#include <gui/objutils/reg_view.hpp>

+ Collaboration diagram for CRegistryWriteView:

Public Member Functions

 CRegistryWriteView ()
 
CRegistryWriteView GetWriteView (const string &section)
 
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 &section, CRegistryFile &regFile)
 CRegistryWriteView. More...
 

Private Attributes

string m_Section
 
CRegistryFilem_RegistryFile
 

Friends

class CRegistryFile
 

Detailed Description

Definition at line 137 of file reg_view.hpp.

Constructor & Destructor Documentation

◆ CRegistryWriteView() [1/2]

CRegistryWriteView::CRegistryWriteView ( )
inline

Definition at line 142 of file reg_view.hpp.

Referenced by GetWriteView().

◆ CRegistryWriteView() [2/2]

CRegistryWriteView::CRegistryWriteView ( const string section,
CRegistryFile regFile 
)
private

CRegistryWriteView.

Definition at line 484 of file reg_view.cpp.

Member Function Documentation

◆ DeleteField()

bool CRegistryWriteView::DeleteField ( const string key)

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().

◆ GetWriteView()

CRegistryWriteView CRegistryWriteView::GetWriteView ( const string section)

◆ Set() [1/9]

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

◆ Set() [2/9]

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

Definition at line 557 of file reg_view.cpp.

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

◆ Set() [3/9]

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

Definition at line 584 of file reg_view.cpp.

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

◆ Set() [4/9]

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

◆ Set() [5/9]

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

◆ Set() [6/9]

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

◆ Set() [7/9]

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

◆ Set() [8/9]

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

◆ Set() [9/9]

void CRegistryWriteView::Set ( const string key,
int  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().

◆ SetField()

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

◆ SetFieldToValue()

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().

Friends And Related Function Documentation

◆ CRegistryFile

friend class CRegistryFile
friend

Definition at line 140 of file reg_view.hpp.

Member Data Documentation

◆ m_RegistryFile

CRegistryFile* CRegistryWriteView::m_RegistryFile
private

Definition at line 174 of file reg_view.hpp.

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

◆ m_Section

string CRegistryWriteView::m_Section
private

Definition at line 173 of file reg_view.hpp.

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


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:27 2024 by modify_doxy.py rev. 669887