CGBenchApp Class Reference

Search Toolkit Book for CGBenchApp

#include <gbench_app.hpp>

Inheritance diagram for CGBenchApp:

Inheritance graph
[legend]
Collaboration diagram for CGBenchApp:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 95 of file gbench_app.hpp.

Public Member Functions

void SetGBenchGUIApp (IGBenchGUIApp *app)
virtual wxAppTraits * CreateTraits ()

Public Attributes

vector< string > m_Args

Protected Member Functions

virtual bool x_CreateGUI ()
virtual void x_DestroyGUI ()
 destroy application GUI objects
virtual void x_InitAppJobDispatcher ()
virtual string x_GetGuiRegistryPath ()
 returns the path to the file where registry settings are stored; override in derived classes
virtual bool x_OnIdle ()
 called from OnIdle() and can be overridden in derived classes returns true if something was done
virtual void x_InitGuiRegistry ()
virtual void x_SaveGuiRegistry ()
void x_DumpRegSettings ()

Protected Attributes

CGBenchGUI m_GUI
auto_ptr< CWorkbenchm_Workbench
CAppJobDispatcher::TJobID m_ReadPipeJobID
CRef< CWakeupThreadm_WakeupThread
CRef< CReadPipeThreadm_readPipeThread


Member Function Documentation

wxAppTraits * CGBenchApp::CreateTraits  )  [virtual]
 

Definition at line 734 of file gbench_app.cpp.

void CGBenchApp::SetGBenchGUIApp IGBenchGUIApp app  )  [inline]
 

Definition at line 98 of file gbench_app.hpp.

References m_GUI, and CGBenchGUI::SetGBenchGUIApp().

bool CGBenchApp::x_CreateGUI  )  [protected, virtual]
 

set path in Registry, we need to this before calling Init()

Reimplemented from CwxNCBIApp.

Definition at line 764 of file gbench_app.cpp.

References auto_ptr< X >::get(), ITERATE, LOG_POST, m_Args, m_GUI, m_readPipeThread, m_WakeupThread, m_Workbench, CRef< C, Locker >::Reset(), and auto_ptr< X >::reset().

void CGBenchApp::x_DestroyGUI  )  [protected, virtual]
 

destroy application GUI objects

Reimplemented from CwxNCBIApp.

Definition at line 799 of file gbench_app.cpp.

References LOG_POST, m_GUI, m_readPipeThread, m_WakeupThread, m_Workbench, auto_ptr< X >::reset(), and CGBenchGUI::SetWorkbench().

void CGBenchApp::x_DumpRegSettings  )  [protected]
 

string CGBenchApp::x_GetGuiRegistryPath  )  [protected, virtual]
 

returns the path to the file where registry settings are stored; override in derived classes

Reimplemented from CwxNCBIApp.

Definition at line 821 of file gbench_app.cpp.

References CSystemPath::ResolvePath().

void CGBenchApp::x_InitAppJobDispatcher  )  [protected, virtual]
 

this will register Thread Pool engine

Reimplemented from CwxNCBIApp.

Definition at line 750 of file gbench_app.cpp.

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

void CGBenchApp::x_InitGuiRegistry  )  [protected, virtual]
 

Reimplemented from CwxNCBIApp.

Definition at line 845 of file gbench_app.cpp.

bool CGBenchApp::x_OnIdle  )  [protected, virtual]
 

called from OnIdle() and can be overridden in derived classes returns true if something was done

Reimplemented from CwxNCBIApp.

Definition at line 829 of file gbench_app.cpp.

References auto_ptr< X >::get(), m_Workbench, and CwxNCBIApp::x_OnIdle().

void CGBenchApp::x_SaveGuiRegistry  )  [protected, virtual]
 

Reimplemented from CwxNCBIApp.

Definition at line 851 of file gbench_app.cpp.


Member Data Documentation

vector<string> CGBenchApp::m_Args
 

Definition at line 103 of file gbench_app.hpp.

Referenced by x_CreateGUI().

CGBenchGUI CGBenchApp::m_GUI [protected]
 

Definition at line 126 of file gbench_app.hpp.

Referenced by SetGBenchGUIApp(), x_CreateGUI(), and x_DestroyGUI().

CAppJobDispatcher::TJobID CGBenchApp::m_ReadPipeJobID [protected]
 

Definition at line 128 of file gbench_app.hpp.

CRef<CReadPipeThread> CGBenchApp::m_readPipeThread [protected]
 

Definition at line 131 of file gbench_app.hpp.

Referenced by x_CreateGUI(), and x_DestroyGUI().

CRef<CWakeupThread> CGBenchApp::m_WakeupThread [protected]
 

Definition at line 130 of file gbench_app.hpp.

Referenced by x_CreateGUI(), and x_DestroyGUI().

auto_ptr<CWorkbench> CGBenchApp::m_Workbench [protected]
 

Definition at line 127 of file gbench_app.hpp.

Referenced by x_CreateGUI(), x_DestroyGUI(), and x_OnIdle().


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 11:46:34 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:23:09 2009 by modify_doxy.py rev. 173732