A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/task__progress_8hpp_source.html below:

NCBI C++ ToolKit: include/objtools/alnmgr/task_progress.hpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef OBJECTS_ALNMGR___TASK_PROGRESS__HPP 2 #define OBJECTS_ALNMGR___TASK_PROGRESS__HPP 63

m_Callback = callback;

70

m_Callback->SetTaskName(name);

75

m_Callback->SetTaskCompleted(completed);

80

m_Callback->SetTaskTotal(total);

87  return

m_Callback->InterruptTask();

Tasks that report progress derive from this class.

void x_SetTaskCompleted(int completed)

CTaskProgressReporter()

Constructor.

void x_SetTaskName(const string &name)

Methods for reporting task progress.

ITaskProgressCallback * x_GetTaskProgressCallback() const

Callback accessor.

void x_SetTaskTotal(int total)

bool x_InterruptTask()

Check if the task should be interrupted.

void SetTaskProgressCallback(ITaskProgressCallback *callback)

Hook a callback to a task.

ITaskProgressCallback * m_Callback

Task clients implement this callback interface.

virtual void SetTaskCompleted(int completed)=0

virtual ~ITaskProgressCallback()

virtual void SetTaskName(const string &name)=0

virtual void SetTaskTotal(int total)=0

virtual bool InterruptTask()=0

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define NCBI_XALNMGR_EXPORT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4