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/app__job__task_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/framework/app_job_task.cpp Source File

44 #include <wx/msgdlg.h> 62  const string

& engine_name,

64

:

CAppTask

(descr, visible, display_delay),

65

m_EngineName(engine_name),

66

m_ProgressReportPeriod(prog_rep_period),

67

m_ReportErrors(

true

),

77  const string

& engine_name,

79

:

CAppTask

(descr, visible, display_delay),

80

m_EngineName(engine_name),

82

m_ProgressReportPeriod(prog_rep_period),

83

m_ReportErrors(

true

),

114  ERR_POST

(

"CAppJobTask::Run() - m_Job is empty!"

);

123  if

(!

m_Job

->BeforeRun()) {

141  ERR_POST

(

"CAppJobTask::Run() - Dispatcher failed to launch the job"

);

241  "CAppJobTask::OnAppJobNotification() - unknown or invalid Job ID " 255  if

( !

text

.empty() ){

258

wxOK | wxICON_INFORMATION

326  ERR_POST

(

"CAppJobTask::OnAppJobNotification() - unknown or invalid Job ID "

<< job_id);

ON_EVENT(CAppJobNotification, CAppJobNotification::eStateChanged, &CAppJobTask::OnAppJobNotification) ON_EVENT(CAppJobNotification

CAppJobTask.

IAppJobListener Interface for components that need to be notified about changes in Jobs.

CAppJobNotification Notification send by CAppJobEventTranslator.

CAppJobProgress Default implementation for IAppJobProgress - the class encapsulates a text message an...

CAppJobTask CAppJobTask is an adapter that allows for running IAppJobs as Tasks in App Task Service.

CAppJobTextResult Default implementation for result object - encapsulates a text error message.

CAppTask - default implementation of IAppTask, use it as a base class for custom tasks.

CEventHandler * m_Listener

virtual string GetDescr() const

returns a human-readable description of the Task (optional)

string m_Descr

task description

CEvent - generic event implementation TODO TODO - Attachments.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

CIRef< IAppJob > GetJob()

void SetReportErrors(bool report)

enabled / disbale error reporting for failed Jobs

void OnAppJobNotification(CEvent *event)

functions below handle notifications from the IAppJob

virtual string GetStatusText() const

returns human-readable text describing the current task state

TOnAppJobProgressCallback m_OnAppJobProgress

virtual ETaskState x_OnWakeUp()

"wakes up" a backgrounded job to resume processing

void OnAppJobProgress(CEvent *event)

ETaskState

List of task states defining the task management FSM.

int m_ProgressReportPeriod

virtual void CancelBackgrounded()

make a request to cancel backgrounded task (not called for foreground tasks)

virtual void x_ReportError()

IAppJob::EJobState m_JobState

virtual ETaskState Run()

execute the task, this function is called on the main UI thread if a task needs to execute in backgro...

virtual void x_Finish(IAppJob::EJobState state)

CAppJobTask(bool visible, const string &descr=kEmptyStr, int prog_rep_period=5, const string &engine_name="ThreadPool", int display_delay=0)

@ eCanceled

canceled by Task Manager

@ eBackgrounded

task is executing in background

@ eFailed

failed during execution

@ eCompleted

successfully finished

@ eInitial

has not been executed yet

@ eRunning

task is executing on the main UI thread

CConstIRef< IAppJobError > GetError() const

returns non-null pointer only if job Failed

static CAppJobDispatcher & GetInstance()

void NcbiErrorBox(const string &message, const string &title="Error")

specialized Message Box function for reporting critical errors

void Post(CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)

Handles an event asynchronously (process and/or dispatch).

EJobState

Job states (describe FSM)

TJobID StartJob(IAppJob &job, const string &engine_name, IEngineParams *params=NULL)

Starts a Job on the specified engine in "passive mode" - no notifications or progress reports will be...

CConstIRef< IAppJobProgress > GetProgress() const

returns non-null pointer only if notification type is eProgress

#define END_EVENT_MAP()

Ends definition of Command Map.

#define BEGIN_EVENT_MAP(thisClass, baseClass)

Begins definition of Command Map for CEventHandler-derived class.

TJobState GetState() const

virtual string GetText() const

virtual string GetText() const override

returns a text string describing current state

void CancelJob(TJobID job_id)

TObjectType * GetPointer(void) const THROWS_NONE

Get pointer,.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static void text(MDB_val *v)

wxString ToWxString(const string &s)


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