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

Search Toolkit Book for CDemoApp

Derive our application class from CwxNCBIApp and use it together with standard CNCBIwxApplication. More...

+ Inheritance diagram for CDemoApp:
+ Collaboration diagram for CDemoApp:

Public Member Functions

virtual void Init (void)
 Initialize the application. More...
 
virtual int Run (void)
 Run the application. More...
 
virtual void Exit (void)
 Cleanup on application exit. More...
 
void GetIds (CScope &scope, const CSeq_id_Handle &idh)
 
virtual void Init (void)
 Initialize the application. More...
 
virtual int Run (void)
 Run the application. More...
 
 CDemoApp ()
 
virtual ~CDemoApp ()
 
 CDemoApp ()
 
virtual ~CDemoApp ()
 
 CDemoApp ()
 
virtual ~CDemoApp ()
 
- Public Member Functions inherited from CNcbiApplication
virtual ~CNcbiApplication (void)
 Destructor. More...
 
 CNcbiApplication (const SBuildInfo &build_info=NCBI_SBUILDINFO_DEFAULT())
 Constructor. More...
 
- Public Member Functions inherited from CNcbiApplicationAPI
 CNcbiApplicationAPI (const SBuildInfo &build_info)
 Constructor. More...
 
virtual ~CNcbiApplicationAPI (void)
 Destructor. More...
 
int AppMain (int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
 Main function (entry point) for the NCBI application. More...
 
virtual int DryRun (void)
 Test run the application. More...
 
const CNcbiArgumentsGetArguments (void) const
 Get the application's cached unprocessed command-line arguments. More...
 
virtual const CArgsGetArgs (void) const
 Get parsed command line arguments. More...
 
const CNcbiEnvironmentGetEnvironment (void) const
 Get the application's cached environment. More...
 
CNcbiEnvironmentSetEnvironment (void)
 Get a non-const copy of the application's cached environment. More...
 
void SetEnvironment (const string &name, const string &value)
 Set a specified environment variable by name. More...
 
bool HasLoadedConfig (void) const
 Check if the config file has been loaded. More...
 
bool FinishedLoadingConfig (void) const
 Check if the application has finished loading config file (successfully or not). More...
 
const CNcbiRegistryGetConfig (void) const
 Get the application's cached configuration parameters (read-only). More...
 
CNcbiRegistryGetConfig (void)
 
const stringGetConfigPath (void) const
 Get the full path to the configuration file (if any) we ended up using. More...
 
bool ReloadConfig (CMetaRegistry::TFlags flags=CMetaRegistry::fReloadIfChanged, IRegistry::TFlags reg_flags=IRegistry::fWithNcbirc)
 Reload the configuration file. More...
 
SIZE_TYPE FlushDiag (CNcbiOstream *os, bool close_diag=false)
 Flush the in-memory diagnostic stream (for "eDS_ToMemory" case only). More...
 
const stringGetProgramDisplayName (void) const
 Get the application's "display" name. More...
 
const stringGetProgramExecutablePath (EFollowLinks follow_links=eIgnoreLinks) const
 Get the application's executable path. More...
 
CVersionInfo GetVersion (void) const
 Get the program version information. More...
 
const CVersionAPIGetFullVersion (void) const
 Get the program version information. More...
 
bool IsDryRun (void) const
 Check if it is a test run. More...
 
virtual bool SetupDiag_AppSpecific (void)
 Setup application specific diagnostic stream. More...
 
template<class TFunc >
void AddOnExitAction (TFunc func)
 Add callback to be executed from CNcbiApplicationAPI destructor. More...
 
- Public Member Functions inherited from CwxNCBIApp
 CwxNCBIApp (bool use_job_disp=true)
 CwxNCBIApp. More...
 
virtual ~CwxNCBIApp ()
 
virtual bool OnInit ()
 Initialises the application. More...
 
virtual int OnExit ()
 Called on exit. More...
 
void OnIdle (wxIdleEvent &event)
 

Protected Member Functions

virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual void x_InitAppJobDispatcher ()
 override this function to configure / register engines More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual void x_InitAppJobDispatcher ()
 override this function to configure / register engines More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual bool x_CreateGUI ()
 create main application window and initialize associated objects return true if successful More...
 
virtual wxString x_GetGuiRegistryPath ()
 
- Protected Member Functions inherited from CNcbiApplicationAPI
virtual EPreparseArgs PreparseArgs (int argc, const char *const *argv)
 Check the command line arguments before parsing them. More...
 
void DisableArgDescriptions (TDisableArgDesc disable=fDisableStdArgs)
 
void HideStdArgs (THideStdArgs hide_mask)
 Set the hide mask for the Hide Std Flags. More...
 
void SetStdioFlags (TStdioSetupFlags stdio_flags)
 Adjust the behavior of standard I/O streams. More...
 
void SetVersion (const CVersionInfo &version)
 Set the version number for the program. More...
 
void SetVersion (const CVersionInfo &version, const SBuildInfo &build_info)
 
void SetVersionByBuild (int major)
 
void SetFullVersion (CRef< CVersionAPI > version)
 Set version data for the program. More...
 
virtual void SetupArgDescriptions (CArgDescriptions *arg_desc)
 Setup the command line argument descriptions. More...
 
const CArgDescriptionsGetArgDescriptions (void) const
 Get argument descriptions (set by SetupArgDescriptions) More...
 
bool SetupDiag (EAppDiagStream diag)
 Setup the application diagnostic stream. More...
 
virtual bool LoadConfig (CNcbiRegistry &reg, const string *conf, CNcbiRegistry::TFlags reg_flags)
 Load settings from the configuration file to the registry. More...
 
virtual bool LoadConfig (CNcbiRegistry &reg, const string *conf)
 Load settings from the configuration file to the registry. More...
 
CNcbiRegistryGetRWConfig (void)
 Get the application's cached configuration parameters, accessible for read-write for an application's internal use only. More...
 
void SetProgramDisplayName (const string &app_name)
 Set program's display name. More...
 
virtual void AppStart (void)
 Method to be called before application start. More...
 
virtual void AppStop (int exit_code)
 Method to be called before application exit. More...
 
void SetExitCode (int exit_code, EExitMode when=eExceptionalExits)
 Force the program to return a specific exit code later, either when it exits due to an exception or unconditionally. More...
 
void SetAppFlags (TAppFlags flags)
 
void ExecuteOnExitActions ()
 Should only be called from the destructors of classes derived from CNcbiApplicationAPI - if it is necessary to access their data members and virtual methods; or to dynamic_cast<> from the base app class. More...
 
void SetPhoneHomePolicy (IPhoneHomePolicy *policy, ENcbiOwnership ownership=eNoOwnership)
 Set Phone Home Policy. More...
 
IPhoneHomePolicyGetPhoneHomePolicy () const
 Return pointer to current Phone Home Policy or NULL. More...
 
- Protected Member Functions inherited from CwxNCBIApp
virtual bool x_TestNcbiConnection ()
 override this to test/configure NCBI connection before access to NCBI network services More...
 
virtual void x_DestroyGUI ()
 destroy application GUI objects More...
 
virtual void x_LoadGuiRegistry ()
 
virtual void x_SaveGuiRegistry ()
 
virtual void x_RegisterImageHandlers ()
 register wxWidgets image handlers More...
 
virtual bool x_OnIdle ()
 called from OnIdle() and can be overridden in derived classes returns true if something was done More...
 

Protected Attributes

CFlatFileDemoDlgm_Dlg
 
CSeqTreeDemoDlgm_Dlg
 
- Protected Attributes inherited from CwxNCBIApp
bool m_UseJobDisp
 
int m_MaxThreads
 
int m_MaxJobs
 
bool m_RegistryLoaded
 

Private Member Functions

 CDemoApp (const CDemoApp &)
 
CDemoAppoperator= (const CDemoApp &)
 
 CDemoApp (const CDemoApp &)
 
CDemoAppoperator= (const CDemoApp &)
 
 CDemoApp (const CDemoApp &)
 
CDemoAppoperator= (const CDemoApp &)
 
virtual int Run (void)
 Run the application. More...
 
void Dispatch (size_t offset, const CConstObjectInfo &info)
 
void WalkPrimitive (size_t offset, const CConstObjectInfo &info)
 
void WalkClass (size_t offset, const CConstObjectInfo &info)
 
void WalkChoice (size_t offset, const CConstObjectInfo &info)
 
void WalkContainer (size_t offset, const CConstObjectInfo &info)
 
void WalkPointer (size_t offset, const CConstObjectInfo &info)
 
virtual int Run (void)
 Run the application. More...
 
void Dispatch (int depth, size_t offset, const CObjectTypeInfo &info)
 
void WalkPrimitive (int depth, size_t offset, const CObjectTypeInfo &info)
 
void WalkClass (int depth, size_t offset, const CObjectTypeInfo &info)
 
void WalkChoice (int depth, size_t offset, const CObjectTypeInfo &info)
 
void WalkContainer (int depth, size_t offset, const CObjectTypeInfo &info)
 
void WalkPointer (int depth, size_t offset, const CObjectTypeInfo &info)
 
virtual int Run (void)
 Run the application. More...
 
void SetDispatch (int depth, size_t offset, CObjectInfo &info)
 
void SetPrimitive (int depth, size_t offset, CObjectInfo &info)
 
void SetClass (int depth, size_t offset, CObjectInfo &info)
 
void SetChoice (int depth, size_t offset, CObjectInfo &info)
 
void SetContainer (int depth, size_t offset, CObjectInfo &info)
 
void SetPointer (int depth, size_t offset, CObjectInfo &info)
 

Private Attributes

int m_MaxDepth
 

Additional Inherited Members

- Public Types inherited from CNcbiApplicationAPI
enum  EAppNameType { eBaseName , eFullName , eRealName }
 
- Static Public Member Functions inherited from CNcbiApplication
static CNcbiApplicationInstance (void)
 Singleton method. More...
 
- Static Public Member Functions inherited from CNcbiApplicationAPI
static CNcbiApplicationAPIInstance (void)
 Singleton method. More...
 
static CNcbiApplicationGuard InstanceGuard (void)
 Singleton method. More...
 
static SSystemMutex & GetInstanceMutex (void)
 Mutex for application singleton object. More...
 
static string GetAppName (EAppNameType name_type=eBaseName, int argc=0, const char *const *argv=NULL)
 
- Protected Types inherited from CNcbiApplicationAPI
enum  EPreparseArgs { ePreparse_Continue , ePreparse_Exit }
 Result of PreparseArgs() More...
 
enum  EDisableArgDesc { fDisableStdArgs = 0x01 }
 Disable argument descriptions. More...
 
enum  EHideStdArgs {
  fHideLogfile = CArgDescriptions::fHideLogfile , fHideConffile = CArgDescriptions::fHideConffile , fHideVersion = CArgDescriptions::fHideVersion , fHideFullVersion = CArgDescriptions::fHideFullVersion ,
  fHideDryRun = CArgDescriptions::fHideDryRun , fHideHelp = CArgDescriptions::fHideHelp , fHideFullHelp = CArgDescriptions::fHideFullHelp , fHideXmlHelp = CArgDescriptions::fHideXmlHelp ,
  fHideAll = CArgDescriptions::fHideAll
}
 Which standard flag's descriptions should not be displayed in the usage message. More...
 
enum  EStdioSetup {
  fNoSyncWithStdio = 0x01 , fDefault_CinBufferSize = 0x02 , fBinaryCin = 0x04 , fBinaryCout = 0x08 ,
  fDefault_SyncWithStdio = 0x00
}
 Flags to adjust standard I/O streams' behaviour. More...
 
enum  EExitMode { eNoExits , eExceptionalExits , eAllExits }
 When to return a user-set exit code. More...
 
enum  EAppFlags { fSkipSafeStaticDestroy = 1 << 0 }
 
typedef int TDisableArgDesc
 Binary OR of "EDisableArgDesc". More...
 
typedef int THideStdArgs
 Binary OR of "EHideStdArgs". More...
 
typedef int TStdioSetupFlags
 Binary OR of "EStdioSetup". More...
 
typedef int TAppFlags
 
- Static Protected Member Functions inherited from CNcbiApplicationAPI
static CRWLockGetInstanceLock (void)
 
static string FindProgramExecutablePath (int argc, const char *const *argv, string *real_path=0)
 Find the application's executable file. More...
 

Detailed Description

Derive our application class from CwxNCBIApp and use it together with standard CNCBIwxApplication.

Definition at line 119 of file objmgr_demo.cpp.

Constructor & Destructor Documentation

◆ CDemoApp() [1/6]

CDemoApp::CDemoApp ( )
inline

Definition at line 46 of file demo_combo_app.cpp.

Referenced by main().

◆ ~CDemoApp() [1/3]

virtual CDemoApp::~CDemoApp ( )
inlinevirtual

Definition at line 47 of file demo_combo_app.cpp.

◆ CDemoApp() [2/6]

CDemoApp::CDemoApp ( const CDemoApp )
private

◆ CDemoApp() [3/6]

CDemoApp::CDemoApp ( )
inline

Definition at line 46 of file demo_wx_empty_app.cpp.

◆ ~CDemoApp() [2/3]

virtual CDemoApp::~CDemoApp ( )
inlinevirtual

Definition at line 47 of file demo_wx_empty_app.cpp.

◆ CDemoApp() [4/6]

CDemoApp::CDemoApp ( const CDemoApp )
private

◆ CDemoApp() [5/6]

CDemoApp::CDemoApp ( )
inline

Definition at line 48 of file demo_wx_tree.cpp.

◆ ~CDemoApp() [3/3]

virtual CDemoApp::~CDemoApp ( )
inlinevirtual

Definition at line 49 of file demo_wx_tree.cpp.

◆ CDemoApp() [6/6]

CDemoApp::CDemoApp ( const CDemoApp )
private

Member Function Documentation

◆ Dispatch() [1/2]

void CDemoApp::Dispatch ( int  depth,
size_t  offset,
const CObjectTypeInfo info 
)
private

◆ Dispatch() [2/2]

void CDemoApp::Dispatch ( size_t  offset,
const CConstObjectInfo info 
)
private

◆ Exit()

void CDemoApp::Exit ( void  )
virtual

Cleanup on application exit.

Perform cleanup before exiting. The default behavior of this is "do nothing". If you have special cleanup logic that needs to be performed, then you must override this method with your own logic.

Reimplemented from CNcbiApplicationAPI.

Definition at line 3263 of file objmgr_demo.cpp.

◆ GetIds()

void CDemoApp::GetIds ( CScope scope,
const CSeq_id_Handle idh 
)

◆ Init() [1/2]

void CDemoApp::Init ( void  )
virtual

Initialize the application.

The default behavior of this is "do nothing". If you have special initialization logic that needs to be peformed, then you must override this method with your own logic.

Reimplemented from CNcbiApplicationAPI.

Definition at line 137 of file objmgr_demo.cpp.

References CONNECT_Init(), CArgDescriptions::eDouble, eGi, CArgDescriptions::eInputFile, CArgDescriptions::eInt8, CArgDescriptions::eInteger, CArgDescriptions::eString, CArgDescriptions::fBinary, CNcbiApplicationAPI::GetArguments(), CNcbiApplicationAPI::GetConfig(), and CNcbiApplicationAPI::SetupArgDescriptions().

◆ Init() [2/2]

virtual void CDemoApp::Init ( void  )
virtual

Initialize the application.

The default behavior of this is "do nothing". If you have special initialization logic that needs to be peformed, then you must override this method with your own logic.

Reimplemented from CNcbiApplicationAPI.

◆ operator=() [1/3]

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

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

◆ Run() [1/5]

int CDemoApp::Run ( void  )
virtual

Run the application.

It is defined as a pure virtual method – so you must(!) supply the Run() method to implement the application-specific logic.

Returns
Exit code.

Implements CNcbiApplicationAPI.

Definition at line 872 of file objmgr_demo.cpp.

References _ASSERT, _VERIFY, CPrefetchManager::AddAction(), CScope::AddBioseq(), CChecksum::AddChars(), CLDS2_Manager::AddDataDir(), CScope::AddDataLoader(), CScope::AddDefaults(), SAnnotSelector::AddNamedAnnots(), CScope::AddSeq_annot(), CScope::AddSeq_submit(), CScope::AddTopLevelSeqEntry(), SAnnotSelector::AddUnnamedAnnots(), all, AsGi, CSerialObject::Assign(), CSeq_id_Handle::AsString(), CSeqMap::begin(), buffer, CSeqVector::CanGetRange(), check_cds(), cnt, Compare(), CDirEntry::ConcatPath(), ConstRef(), count, DBAPI_RegisterDriver_FTDS(), depth, CSeq_id_Mapper::Dump(), CSeqFeatData_Base::e_Cdregion, CSeqFeatData_Base::e_Gene, CSeq_annot_Base::C_Data::e_Locs, CSeqFeatData_Base::e_MaxChoice, CSeq_annot_Base::C_Data::e_not_set, CSeqFeatData_Base::e_not_set, CSeq_annot_Base::C_Data::e_Seq_table, CBioseq_Handle::eCoding_Iupac, CSeq_id_Mapper::eCountTotalBytes, CChecksum::eCRC32C, CLDS2_Manager::eDir_Recurse, CSeq_id_Mapper::eDumpAllIds, CSeq_id_Mapper::eDumpStatistics, SAnnotSelector::eFailUnresolved, SAnnotSelector::eIgnoreUnresolved, CGBDataLoader::eIncludeHUP, CStopWatch::Elapsed(), SAnnotSelector::eMaxSearchSegmentsLog, SAnnotSelector::eMaxSearchSegmentsSilent, SAnnotSelector::eMaxSearchSegmentsThrow, map_checker< Container >::empty(), eNa_strand_minus, eNa_strand_plus, eNa_strand_unknown, CSeqMap::end(), CBlastDbDataLoader::eNucleotide, eOverlap_Contained, SAnnotSelector::eOverlap_Intervals, SAnnotSelector::eOverlap_TotalRange, CBlastDbDataLoader::eProtein, SAnnotSelector::eResolve_All, SAnnotSelector::eResolve_None, SAnnotSelector::eResolve_TSE, ERR_FATAL, ERR_POST, Error(), CSeq_annot_CI::eSearch_entry, SAnnotSelector::eSearchUnresolved, CSeqMap::eSeqData, CSeqMap::eSeqEnd, CSeqMap::eSeqGap, CSeq_loc_Mapper::eSeqMap_Up, CSeqMap::eSeqRef, CSeq_id::eSNPScaleLimit_Default, SAnnotSelector::eSortOrder_None, SAnnotSelector::eSortOrder_Normal, SAnnotSelector::eSortOrder_Reverse, CStopWatch::eStart, CSeqFeatData::eSubtype_any, CSeqFeatData::eSubtype_gene, CSeqFeatData::eSubtype_max, CSeqFeatData::eSubtype_mRNA, CSeqFeatData::eSubtype_ncRNA, CTSE_Handle::eTopLevel_Bioseq, CTSE_Handle::eTopLevel_Seq_annot, CTSE_Handle::eTopLevel_Seq_entry, CTSE_Handle::eTopLevel_Seq_submit, CBlastDbDataLoader::eUnknown, SAnnotSelector::ExcludeFeatSubtype(), SAnnotSelector::ExcludeFeatType(), SAnnotSelector::ExcludeNamedAnnots(), exit(), SAnnotSelector::fAdaptive_ByPolicy, fCompareOverlapping, CSeqMap::fDefaultFlags, fFGL_Both, CSeqMap::fFindExactLevel, CSeqMap::fFindGap, CSeqMap::fFindLeafRef, flags, NStr::fSplit_ByPattern, g(), GenBankReaders_Register_Pubseq(), GenBankReaders_Register_Pubseq2(), IRegistry::Get(), SAnnotSelector::GetAdaptiveDepthFlags(), CAnnotTypes_CI::GetAnnot(), CAnnotTypes_CI::GetAnnotNames(), CAnnotTypes_CI::GetAnnotTypes(), CNcbiApplicationAPI::GetArgs(), GetBestCdsForMrna(), GetBestGeneForFeat(), GetBestGeneForMrna(), GetBestOverlappingFeat(), CBioseq_Handle::GetBioseqCore(), CScope::GetBioseqHandle(), CScope::GetBioseqHandleFromTSE(), CBioseq_Handle::GetBioseqLength(), CDataLoader::GetBlobId(), CTSE_Handle::GetBlobId(), CGBDataLoader::GetBlobIdFromSatSatKey(), CSeq_graph_Base::C_Graph::GetByte(), CChecksum::GetChecksum(), CSeq_feat_Handle::GetComment(), CBioseq_Handle::GetCompleteObject(), CSeq_annot_Handle::GetCompleteObject(), CTSE_Handle::GetCompleteObject(), CSeq_entry_Handle::GetCompleteSeq_entry(), CNcbiApplicationAPI::GetConfig(), CAnnotTypes_CI::GetCostOfLoadingInBytes(), CAnnotTypes_CI::GetCostOfLoadingInSeconds(), CSeq_feat_Handle::GetData(), CTSE_Handle::GetDataLoader(), CSeq_feat_Handle::GetDbxref(), CBioseq_Handle::GetEditHandle(), CSeq_annot_Handle::GetEditHandle(), CSeq_entry_Handle::GetEditHandle(), CSeqMap_CI::GetEndPosition(), CSeq_feat_Handle::GetExcept(), CSeq_feat_Handle::GetExcept_text(), CSeq_feat_Handle::GetExp_ev(), CSeq_align_Base::GetExt(), CSeq_feat_Handle::GetExt(), CStdPrefetch::GetFeat_CI(), CSeq_feat_Handle::GetFeatSubtype(), CSeq_feat_Handle::GetFeatType(), CTSE_Handle::GetFeaturesWithId(), CTSE_Handle::GetFeaturesWithXref(), CTSE_Handle::GetFeatureWithId(), CUser_object::GetFieldRef(), CSeqVector::GetGapSeq_literal(), CSeqVector::GetGapSizeForward(), CSeq_graph_Base::GetGraph(), CSeq_id_Handle::GetHandle(), CBioseq_Base::GetId(), CSeq_loc::GetId(), CSeq_feat_Handle::GetId(), GetIdHandle(), GetIds(), CSeq_id_Mapper::GetInstance(), CObjectManager::GetInstance(), CSeq_graph_Base::C_Graph::GetInt(), GetLabel(), CScope::GetLabel(), CSeqMap_CI::GetLength(), SRegisterLoaderInfo< TLoader >::GetLoader(), CSeq_graph_Base::GetLoc(), CMappedGraph::GetLoc(), CSeq_feat_Base::GetLocation(), CMappedFeat::GetLocation(), CMappedFeat::GetLocationId(), CMappedFeat::GetMappedFeature(), CMappedGraph::GetMappedGraph(), CSeqMap::GetMol(), CSeqVector::GetMutex(), CDataLoader::GetName(), CSeq_annot_Handle::GetName(), CGBDataLoader::GetNamedAnnotAccessions(), CSeq_graph_Base::GetNumval(), CMappedFeat::GetOriginalFeature(), CMappedGraph::GetOriginalGraph(), CAlign_CI::GetOriginalSeq_align(), CSeq_feat_Handle::GetOriginalSeq_feat(), CBioseq_Handle::GetParentEntry(), CSeq_entry_Handle::GetParentEntry(), CSeq_feat_Base::GetPartial(), CMappedFeat::GetPartial(), CSeqMap_CI::GetPosition(), CMappedFeat::GetProduct(), CSeq_feat_Handle::GetPseudo(), CSeq_feat_Handle::GetQual(), CMappedFeat::GetRange(), CSeqMap_CI::GetRefData(), CSeqMap_CI::GetRefEndPosition(), CSeqMap_CI::GetRefGapLiteral(), CSeqMap_CI::GetRefMinusStrand(), CSeqMap_CI::GetRefPosition(), CSeqMap_CI::GetRefSeqid(), CPrefetchFeat_CI::GetResult(), CPrefetchSeqData::GetResult(), CNcbiApplicationAPI::GetRWConfig(), CBioseq_Handle::GetScope(), CScope::GetSeq_entryHandle(), CSeq_feat_Handle::GetSeq_feat(), CMappedFeat::GetSeq_feat_Handle(), CScope::GetSeq_featHandle(), CSynonymsSet::GetSeq_id_Handle(), CSeq_annot_Handle::GetSeq_tableNumRows(), CSeqVector::GetSeqData(), CBioseq_Handle::GetSeqMap(), CAnnotTypes_CI::GetSize(), CSeq_id::GetSNPScaleLimit_Value(), CBioseq_Handle::GetState(), CObject_id_Base::GetStr(), CSeq_loc::GetStrand(), CSeq_submit_Base::GetSub(), CScope::GetSynonyms(), CSeq_graph_Base::GetTitle(), CSeq_feat_Handle::GetTitle(), CBioseq_Handle::GetTopLevelEntry(), CTSE_Handle::GetTopLevelObjectType(), CTSE_Handle::GetTopLevelSeq_submit(), CSeq_entry_Handle::GetTopLevelSeq_submit(), CSeq_entry_Handle::GetTopLevelSubmit_block(), CSeq_loc::GetTotalRange(), CBioseq_Handle::GetTSE_Handle(), CSeq_annot_Handle::GetTSE_Handle(), CSeq_entry_Handle::GetTSE_Handle(), CUser_object_Base::GetType(), CSeqMap_CI::GetType(), CSeqFeatData::GetTypeFromSubtype(), CSeq_feat_Handle::GetXref(), GI_FROM, hex(), i, in(), SAnnotSelector::IncludeFeatSubtype(), SAnnotSelector::IncludeFeatType(), SAnnotSelector::IncludeNamedAnnotAccession(), map_checker< Container >::insert(), set< Key, Compare >::insert(), CNcbiApplication::Instance(), CSeq_graph_Base::C_Graph::IsByte(), SAnnotSelector::IsIncludedAnyNamedAnnotAccession(), CSeqVector::IsInGap(), CSeq_feat_Handle::IsPlainFeat(), CSeq_feat_Handle::IsSetComment(), CSeq_feat_Handle::IsSetDbxref(), CSeq_feat_Handle::IsSetExcept(), CSeq_feat_Handle::IsSetExcept_text(), CSeq_feat_Handle::IsSetExp_ev(), CSeq_feat_Handle::IsSetExt(), CSeq_feat_Handle::IsSetId(), CSeq_feat_Base::IsSetPartial(), CMappedFeat::IsSetPartial(), CSeq_feat_Handle::IsSetProduct(), CSeq_feat_Handle::IsSetPseudo(), CSeq_feat_Handle::IsSetQual(), CSeq_graph_Base::IsSetTitle(), CSeq_feat_Handle::IsSetTitle(), CSeq_feat_Handle::IsSetXref(), CObject_id_Base::IsStr(), CSeq_feat_Handle::IsTableFeat(), CSeq_entry_Handle::IsTopLevelSeq_submit(), ITERATE, ncbi::grid::netcache::search::fields::key, kInvalidSeqPos, label, LOG_POST, CSeq_loc_Mapper_Base::Map(), CAnnotTypes_CI::MaxSearchSegmentsLimitIsReached(), min(), MSerial_AsnBinary, MSerial_AsnText, names, NcbiCout, NcbiEndl, NcbiFlush, NPOS, NULL, out(), NStr::PrintableString(), compile_time_bits::range(), CObjectManager::RegisterDataLoader(), CLDS2_DataLoader::RegisterInObjectManager(), CBlastDbDataLoader::RegisterInObjectManager(), CGBDataLoader::RegisterInObjectManager(), CBioseq_EditHandle::Remove(), CScope::RemoveFromHistory(), CRef< C, Locker >::Reset(), CBioseq_Handle::Reset(), SAnnotSelector::ResetAnnotsNames(), CScope::ResetHistory(), SAnnotSelector::ResetNamedAnnotAccessions(), CSeqMap::ResolvedRangeIterator(), CStopWatch::Restart(), row, s_GetFeatureKey(), s_GetLength(), s_PrintTree(), s_VerifyTree(), CSeqFeatData_Base::SelectionName(), CSeq_entry_EditHandle::SelectNone(), CSeq_entry_EditHandle::SelectSeq(), SerialClone(), IRWRegistry::Set(), SAnnotSelector::SetAdaptiveDepth(), SAnnotSelector::SetAdaptiveDepthFlags(), SAnnotSelector::SetAllNamedAnnots(), SAnnotSelector::SetAnnotType(), SAnnotSelector::SetBitFilter(), SAnnotSelector::SetByProduct(), SAnnotSelector::SetCollectCostOfLoading(), SAnnotSelector::SetCollectNames(), SAnnotSelector::SetCollectTypes(), CSeq_annot_Base::SetData(), SAnnotSelector::SetExactDepth(), SAnnotSelector::SetExcludeExternal(), SAnnotSelector::SetExcludeIfGeneIsSuppressed(), SAnnotSelector::SetFeatComparator(), SAnnotSelector::SetFeatType(), SSeqMapSelector::SetFlags(), CObject_id_Base::SetId(), SAnnotSelector::SetIgnoreStrand(), CSeq_loc::SetInt(), SAnnotSelector::SetLimitSeqAnnot(), SAnnotSelector::SetLimitSeqEntry(), SAnnotSelector::SetLimitTSE(), SAnnotSelector::SetMaxSearchSegments(), SAnnotSelector::SetMaxSearchSegmentsAction(), SAnnotSelector::SetMaxSearchTime(), SAnnotSelector::SetMaxSize(), SAnnotSelector::SetNoMapping(), SAnnotSelector::SetOverlapType(), SSeqMapSelector::SetRange(), SSeqMapSelector::SetResolveCount(), SAnnotSelector::SetResolveDepth(), SAnnotSelector::SetResolveMethod(), SAnnotSelector::SetSearchExternal(), SAnnotSelector::SetSNPScaleLimit(), SAnnotSelector::SetSortOrder(), SAnnotSelector::SetUnresolvedFlag(), CSeq_loc::SetWhole(), ncbi::grid::netcache::search::fields::size, CSeqVector::size(), SleepSec(), NStr::Split(), st(), NStr::StartsWith(), str(), NStr::StringToInt(), sw, t, text(), CBlobIdKey::ToString(), CLDS2_Manager::UpdateData(), v2, rapidjson::value, CStdPrefetch::Wait(), CException::what(), and x_Pause().

◆ Run() [2/5]

virtual int CDemoApp::Run ( void  )
virtual

Run the application.

It is defined as a pure virtual method – so you must(!) supply the Run() method to implement the application-specific logic.

Returns
Exit code.

Implements CNcbiApplicationAPI.

◆ Run() [3/5]

virtual int CDemoApp::Run ( void  )
privatevirtual

Run the application.

It is defined as a pure virtual method – so you must(!) supply the Run() method to implement the application-specific logic.

Returns
Exit code.

Implements CNcbiApplicationAPI.

◆ Run() [4/5]

virtual int CDemoApp::Run ( void  )
privatevirtual

Run the application.

It is defined as a pure virtual method – so you must(!) supply the Run() method to implement the application-specific logic.

Returns
Exit code.

Implements CNcbiApplicationAPI.

◆ Run() [5/5]

virtual int CDemoApp::Run ( void  )
privatevirtual

Run the application.

It is defined as a pure virtual method – so you must(!) supply the Run() method to implement the application-specific logic.

Returns
Exit code.

Implements CNcbiApplicationAPI.

◆ SetChoice()

void CDemoApp::SetChoice ( int  depth,
size_t  offset,
CObjectInfo info 
)
private

Definition at line 178 of file asnwalk_write.cpp.

References depth, info, m_MaxDepth, offset, and SetDispatch().

Referenced by SetDispatch().

◆ SetClass()

void CDemoApp::SetClass ( int  depth,
size_t  offset,
CObjectInfo info 
)
private

◆ SetContainer()

void CDemoApp::SetContainer ( int  depth,
size_t  offset,
CObjectInfo info 
)
private

Definition at line 197 of file asnwalk_write.cpp.

References depth, eTypeFamilyPointer, i, info, offset, and SetDispatch().

Referenced by SetDispatch().

◆ SetDispatch()

void CDemoApp::SetDispatch ( int  depth,
size_t  offset,
CObjectInfo info 
)
private

◆ SetPointer()

void CDemoApp::SetPointer ( int  depth,
size_t  offset,
CObjectInfo info 
)
private

Definition at line 214 of file asnwalk_write.cpp.

References depth, info, offset, and SetDispatch().

Referenced by SetDispatch().

◆ SetPrimitive()

void CDemoApp::SetPrimitive ( int  depth,
size_t  offset,
CObjectInfo info 
)
private

◆ WalkChoice() [1/2]

void CDemoApp::WalkChoice ( int  depth,
size_t  offset,
const CObjectTypeInfo info 
)
private

◆ WalkChoice() [2/2]

void CDemoApp::WalkChoice ( size_t  offset,
const CConstObjectInfo info 
)
private

◆ WalkClass() [1/2]

void CDemoApp::WalkClass ( int  depth,
size_t  offset,
const CObjectTypeInfo info 
)
private

◆ WalkClass() [2/2]

void CDemoApp::WalkClass ( size_t  offset,
const CConstObjectInfo info 
)
private

◆ WalkContainer() [1/2]

void CDemoApp::WalkContainer ( int  depth,
size_t  offset,
const CObjectTypeInfo info 
)
private

Definition at line 214 of file asnwalk_type.cpp.

References depth, Dispatch(), info, and offset.

◆ WalkContainer() [2/2]

void CDemoApp::WalkContainer ( size_t  offset,
const CConstObjectInfo info 
)
private

◆ WalkPointer() [1/2]

void CDemoApp::WalkPointer ( int  depth,
size_t  offset,
const CObjectTypeInfo info 
)
private

Definition at line 223 of file asnwalk_type.cpp.

References depth, Dispatch(), info, and offset.

◆ WalkPointer() [2/2]

void CDemoApp::WalkPointer ( size_t  offset,
const CConstObjectInfo info 
)
private

Definition at line 200 of file asnwalk_read.cpp.

References Dispatch(), info, and offset.

Referenced by Dispatch().

◆ WalkPrimitive() [1/2]

void CDemoApp::WalkPrimitive ( int  depth,
size_t  offset,
const CObjectTypeInfo info 
)
private

◆ WalkPrimitive() [2/2]

void CDemoApp::WalkPrimitive ( size_t  offset,
const CConstObjectInfo info 
)
private

◆ x_CreateGUI() [1/9]

IMPLEMENT_WX_THEME_SUPPORT bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

Definition at line 62 of file demo_edit_object_app.cpp.

References init_w_edit(), and NULL.

◆ x_CreateGUI() [2/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_CreateGUI() [3/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_CreateGUI() [4/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_CreateGUI() [5/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_CreateGUI() [6/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_CreateGUI() [7/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_CreateGUI() [8/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_CreateGUI() [9/9]

virtual bool CDemoApp::x_CreateGUI ( )
protectedvirtual

create main application window and initialize associated objects return true if successful

Reimplemented from CwxNCBIApp.

◆ x_GetGuiRegistryPath()

wxString CDemoApp::x_GetGuiRegistryPath ( )
protectedvirtual

Reimplemented from CwxNCBIApp.

Definition at line 73 of file wx_ncbi_app_demo.cpp.

References CSysPath::ResolvePath(), and wxT.

◆ x_InitAppJobDispatcher() [1/2]

void CDemoApp::x_InitAppJobDispatcher ( )
protectedvirtual

override this function to configure / register engines

Reimplemented from CwxNCBIApp.

Definition at line 73 of file flatfile_demo_app.cpp.

References CAppJobDispatcher::GetInstance(), CAppJobDispatcher::RegisterEngine(), and CwxNCBIApp::x_InitAppJobDispatcher().

◆ x_InitAppJobDispatcher() [2/2]

virtual void CDemoApp::x_InitAppJobDispatcher ( )
protectedvirtual

override this function to configure / register engines

Reimplemented from CwxNCBIApp.

Member Data Documentation

◆ m_Dlg [1/2]

CFlatFileDemoDlg* CDemoApp::m_Dlg
protected

Definition at line 55 of file flatfile_demo_app.cpp.

◆ m_Dlg [2/2]

CSeqTreeDemoDlg* CDemoApp::m_Dlg
protected

Definition at line 55 of file seq_tree_demo_app.cpp.

◆ m_MaxDepth

int CDemoApp::m_MaxDepth
private

Definition at line 57 of file asnwalk_type.cpp.

Referenced by Dispatch(), SetChoice(), and SetClass().


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