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

Search Toolkit Book for C5ColExporter

+ Inheritance diagram for C5ColExporter:
+ Collaboration diagram for C5ColExporter:

Public Member Functions

 C5ColExporter ()
 
IUIToolManager interface implementation
virtual const IUIObjectGetDescriptor () const
 Returns the object describing this tool (UI meta data). More...
 
virtual void SetServiceLocator (IServiceLocator *srv_locator)
 Sets / unsets Service Locator. More...
 
virtual void SetParentWindow (wxWindow *parent)
 
virtual void InitUI ()
 Initializes the Manager before using it in UI. More...
 
virtual void CleanUI ()
 CleanUI() is called after the host finished using the manager. More...
 
virtual wxPanel * GetCurrentPanel ()
 Return the panel corresponding to the current state of Tool Manager. More...
 
virtual bool IsFinalState ()
 True if Tool Manager has reached its final state, i.e. More...
 
virtual bool IsCompletedState ()
 Manager goes into "Complete" state when "Finish" button is pressed and all input data is gatherred and validated. More...
 
virtual bool CanDo (EAction action)
 Indicates whether given transition is possible in the current state. More...
 
virtual bool DoTransition (EAction action)
 Performs transition if possible and returns true, otherwise the function shall warn the user about the problem preventing the transition (such as insufficient or invalid input) and return false. More...
 
virtual IAppTaskGetTask ()
 Once parameters are gathered and validated this function is called to produce the final Task object that will be executed to do the actual computational work. More...
 
IUIExportTool interface implementation
virtual void SetLocations (const TRelatedObjectsMap &input_map)
 sets objects to be exported. More...
 
virtual void SetObjects (const TConstScopedObjects &input)
 
IRegSettings interface implementation
virtual void SetRegistryPath (const string &path)
 
virtual void SaveSettings () const
 
virtual void LoadSettings ()
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (const CObject &src) THROWS_NONE
 Assignment operator. More...
 
bool CanBeDeleted (void) const THROWS_NONE
 Check if object can be deleted. More...
 
bool IsAllocatedInPool (void) const THROWS_NONE
 Check if object is allocated in memory pool (not system heap) More...
 
bool Referenced (void) const THROWS_NONE
 Check if object is referenced. More...
 
bool ReferencedOnlyOnce (void) const THROWS_NONE
 Check if object is referenced only once. More...
 
void AddReference (void) const
 Add reference to object. More...
 
void RemoveReference (void) const
 Remove reference to object. More...
 
void ReleaseReference (void) const
 Remove reference without deleting object. More...
 
virtual void DoNotDeleteThisObject (void)
 Mark this object as not allocated in heap – do not delete this object. More...
 
virtual void DoDeleteThisObject (void)
 Mark this object as allocated in heap – object can be deleted. More...
 
void * operator new (size_t size)
 Define new operator for memory allocation. More...
 
void * operator new[] (size_t size)
 Define new[] operator for 'array' memory allocation. More...
 
void operator delete (void *ptr)
 Define delete operator for memory deallocation. More...
 
void operator delete[] (void *ptr)
 Define delete[] operator for memory deallocation. More...
 
void * operator new (size_t size, void *place)
 Define new operator. More...
 
void operator delete (void *ptr, void *place)
 Define delete operator. More...
 
void * operator new (size_t size, CObjectMemoryPool *place)
 Define new operator using memory pool. More...
 
void operator delete (void *ptr, CObjectMemoryPool *place)
 Define delete operator. More...
 
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const
 Define method for dumping debug information. More...
 
- Public Member Functions inherited from CDebugDumpable
 CDebugDumpable (void)
 
virtual ~CDebugDumpable (void)
 
void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const
 
void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const
 
void DumpToConsole (void) const
 
- Public Member Functions inherited from IUIExportTool
virtual void SetFileName (const string &)
 
- Public Member Functions inherited from IUIToolManager
virtual wxPanel * GetMaxPanel ()
 Return the panel that occupies max size on display, to calculate dialog window size. More...
 
virtual IUIToolManagerGetAlternateToolManager ()
 If a transition fails, it may make sense to switch to a different tool manger When a tool manager identifies a more appropriate manager for a task, it returns it here, otherwise NULL. More...
 
virtual IExecuteUnitGetExecuteUnit ()
 
virtual IWizardPageGetFirstPage ()
 Returns first options page (if any) of the tool to be shown in wizard dialog. More...
 
virtual IWizardPageGetOptionsPage ()
 Returns page for tool options (long wizard path via "Options" button) More...
 
virtual void SetPrevPage (IWizardPage *)
 Sets a wizard page which should show before the first page of the tool. More...
 
virtual void SetNextPage (IWizardPage *)
 Sets a wizard page which should show after the last page of the tool. More...
 
virtual void RestoreDefaults ()
 Restores the default options for the current panel. More...
 
virtual void ResetState ()
 
virtual bool UsesSingleOMScope ()
 
virtual ~IUIToolManager ()
 
- Public Member Functions inherited from IRegSettings
virtual ~IRegSettings ()
 

Protected Types

enum  EState { eInvalid = -1 , eParams , eCompleted }
 defines states of the Tool Manager More...
 

Protected Attributes

CUIObject m_Descriptor
 
wxWindow * m_ParentWindow
 
C5ColExportPagem_Panel
 
string m_RegPath
 
TRelatedObjectsMap m_Objects
 
wxString m_FileName
 
SConstScopedObject m_SeqLoc
 
C5ColExportParams m_Params
 
EState m_State
 tool manager state (int the Run Tool wizard) More...
 

Additional Inherited Members

- Public Types inherited from CObject
enum  EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern }
 Control filling of newly allocated memory. More...
 
typedef CObjectCounterLocker TLockerType
 Default locker type for CRef. More...
 
typedef atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 
- Public Types inherited from IUIToolManager
enum  EAction { eBack = 0 , eNext , eSkip }
 
- Static Public Member Functions inherited from CObject
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (void)
 Define method to throw null pointer exception. More...
 
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (const type_info &type)
 
static EAllocFillMode GetAllocFillMode (void)
 
static void SetAllocFillMode (EAllocFillMode mode)
 
static void SetAllocFillMode (const string &value)
 Set mode from configuration parameter value. More...
 
- Static Public Member Functions inherited from CDebugDumpable
static void EnableDebugDump (bool on)
 
- Static Public Attributes inherited from CObject
static const TCount eCounterBitsCanBeDeleted = 1 << 0
 Define possible object states. More...
 
static const TCount eCounterBitsInPlainHeap = 1 << 1
 Heap signature was found. More...
 
static const TCount eCounterBitsPlaceMask
 Mask for 'in heap' state flags. More...
 
static const int eCounterStep = 1 << 2
 Skip over the "in heap" bits. More...
 
static const TCount eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2)
 Minimal value for valid objects (reference counter is zero) Must be a single bit value. More...
 
static const TCount eCounterStateMask
 Valid object, and object in heap. More...
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Detailed Description

Definition at line 53 of file 5col_exporter.cpp.

Member Enumeration Documentation

◆ EState

enum C5ColExporter::EState
protected

defines states of the Tool Manager

Enumerator
eInvalid 
eParams 
eCompleted 

Definition at line 90 of file 5col_exporter.cpp.

Constructor & Destructor Documentation

◆ C5ColExporter()

C5ColExporter::C5ColExporter ( )

Definition at line 111 of file 5col_exporter.cpp.

References m_Descriptor, and CUIObject::SetLogEvent().

Member Function Documentation

◆ CanDo()

bool C5ColExporter::CanDo ( EAction  action)
virtual

Indicates whether given transition is possible in the current state.

Implements IUIToolManager.

Definition at line 173 of file 5col_exporter.cpp.

References _ASSERT, eCompleted, eInvalid, IUIToolManager::eNext, eParams, and m_State.

◆ CleanUI()

void C5ColExporter::CleanUI ( )
virtual

CleanUI() is called after the host finished using the manager.

This function shall free resources associated with the session and reset internal state.

Implements IUIToolManager.

Definition at line 139 of file 5col_exporter.cpp.

References eInvalid, m_Panel, m_State, and NULL.

◆ DoTransition()

bool C5ColExporter::DoTransition ( EAction  action)
virtual

Performs transition if possible and returns true, otherwise the function shall warn the user about the problem preventing the transition (such as insufficient or invalid input) and return false.

Typically this function would take user input from the current panel, validate the input and go to the next state creating new UI panel if needed.

Implements IUIToolManager.

Definition at line 189 of file 5col_exporter.cpp.

References eCompleted, eInvalid, IUIToolManager::eNext, eParams, C5ColExportPage::GetData(), C5ColExportPage::GetFileName(), C5ColExportPage::GetSeqLoc(), m_FileName, m_Panel, m_Params, m_SeqLoc, m_State, and C5ColExportPage::TransferDataFromWindow().

◆ GetCurrentPanel()

wxPanel * C5ColExporter::GetCurrentPanel ( )
virtual

◆ GetDescriptor()

const IUIObject & C5ColExporter::GetDescriptor ( ) const
virtual

Returns the object describing this tool (UI meta data).

Implements IUIToolManager.

Definition at line 120 of file 5col_exporter.cpp.

References m_Descriptor.

◆ GetTask()

IAppTask * C5ColExporter::GetTask ( )
virtual

Once parameters are gathered and validated this function is called to produce the final Task object that will be executed to do the actual computational work.

Implements IUIToolManager.

Definition at line 209 of file 5col_exporter.cpp.

References m_FileName, m_Params, and m_SeqLoc.

◆ InitUI()

void C5ColExporter::InitUI ( )
virtual

Initializes the Manager before using it in UI.

This function shall reset Internal state of the tool.

Implements IUIToolManager.

Definition at line 134 of file 5col_exporter.cpp.

References eParams, and m_State.

◆ IsCompletedState()

bool C5ColExporter::IsCompletedState ( )
virtual

Manager goes into "Complete" state when "Finish" button is pressed and all input data is gatherred and validated.

Typically this is the last state after Final state. This state does not have an associated UI panel. When manager reaches the “Completed” state the framework hides the dialog and calls GetTask() function.

Implements IUIToolManager.

Definition at line 168 of file 5col_exporter.cpp.

References eCompleted, and m_State.

◆ IsFinalState()

bool C5ColExporter::IsFinalState ( )
virtual

True if Tool Manager has reached its final state, i.e.

the last page (panel) in the sequence is displayed and "Finish" button is shown. The framework calls this function to decide whether “Finish” or “Next” button needs to be shown.

Implements IUIToolManager.

Definition at line 163 of file 5col_exporter.cpp.

References eParams, and m_State.

◆ LoadSettings()

void C5ColExporter::LoadSettings ( )
virtual

◆ SaveSettings()

void C5ColExporter::SaveSettings ( ) const
virtual

◆ SetLocations()

void C5ColExporter::SetLocations ( const TRelatedObjectsMap )
virtual

sets objects to be exported.

Implements IUIExportTool.

Definition at line 221 of file 5col_exporter.cpp.

References m_Objects.

◆ SetObjects()

void C5ColExporter::SetObjects ( const TConstScopedObjects input)
virtual

◆ SetParentWindow()

void C5ColExporter::SetParentWindow ( wxWindow *  parent)
virtual

Implements IUIToolManager.

Definition at line 129 of file 5col_exporter.cpp.

References m_ParentWindow.

◆ SetRegistryPath()

void C5ColExporter::SetRegistryPath ( const string path)
virtual

Implements IRegSettings.

Definition at line 215 of file 5col_exporter.cpp.

References m_Params, m_RegPath, and C5ColExportParams::SetRegistryPath().

◆ SetServiceLocator()

void C5ColExporter::SetServiceLocator ( IServiceLocator srv_locator)
virtual

Sets / unsets Service Locator.

Tool Manager can use the locator to obtain the services necessary services.

Implements IUIToolManager.

Definition at line 125 of file 5col_exporter.cpp.

Member Data Documentation

◆ m_Descriptor

CUIObject C5ColExporter::m_Descriptor
protected

Definition at line 96 of file 5col_exporter.cpp.

Referenced by C5ColExporter(), and GetDescriptor().

◆ m_FileName

wxString C5ColExporter::m_FileName
protected

Definition at line 102 of file 5col_exporter.cpp.

Referenced by DoTransition(), GetCurrentPanel(), GetTask(), LoadSettings(), and SaveSettings().

◆ m_Objects

TRelatedObjectsMap C5ColExporter::m_Objects
protected

Definition at line 101 of file 5col_exporter.cpp.

Referenced by GetCurrentPanel(), SetLocations(), and SetObjects().

◆ m_Panel

C5ColExportPage* C5ColExporter::m_Panel
protected

Definition at line 98 of file 5col_exporter.cpp.

Referenced by CleanUI(), DoTransition(), GetCurrentPanel(), and SaveSettings().

◆ m_Params

C5ColExportParams C5ColExporter::m_Params
protected

◆ m_ParentWindow

wxWindow* C5ColExporter::m_ParentWindow
protected

Definition at line 97 of file 5col_exporter.cpp.

Referenced by GetCurrentPanel(), and SetParentWindow().

◆ m_RegPath

string C5ColExporter::m_RegPath
protected

Definition at line 99 of file 5col_exporter.cpp.

Referenced by GetCurrentPanel(), LoadSettings(), SaveSettings(), and SetRegistryPath().

◆ m_SeqLoc

SConstScopedObject C5ColExporter::m_SeqLoc
protected

Definition at line 103 of file 5col_exporter.cpp.

Referenced by DoTransition(), and GetTask().

◆ m_State

EState C5ColExporter::m_State
protected

tool manager state (int the Run Tool wizard)

Definition at line 107 of file 5col_exporter.cpp.

Referenced by CanDo(), CleanUI(), DoTransition(), InitUI(), IsCompletedState(), and IsFinalState().


The documentation for this class was generated from the following file:
Modified on Thu Jun 27 18:26:17 2024 by modify_doxy.py rev. 669887