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

NCBI C++ ToolKit: include/gui/utils/job_adapter.hpp Source File

1 #ifndef GUI_OBJUTILS___JOB_ADAPTER__HPP 2 #define GUI_OBJUTILS___JOB_ADAPTER__HPP 71  void

x_OnJobNotification(

CEvent

* evt);

133 template

<

typename

TInput,

typename

TOutput>

136  bool

(*func)(TInput&, TOutput&,

string

&,

ICanceled

&),

138  const string

& descr)

142

adapter->

Start

(*job);

CAppJobError Default implementation for IAppJobError - encapsulates a text error message.

CEvent - generic event implementation TODO TODO - Attachments.

Base class to build jobs with cancel functionality.

Interface for testing cancellation request in a long lasting operation.

virtual ~CJobAdapterJob()

virtual EJobState Run()

Function that does all the useful work, called by the Engine.

ICanceled * x_GetICanceled()

CJobAdapterJob(TInput &input, TFunc func, const string &name, const string &descr)

CAppJobDispatcher::TJobID GetJobId() const

CAppJobDispatcher::TJobID m_JobId

virtual CConstIRef< IAppJobProgress > GetProgress()

return progress object, the function shall be synchronized internally.

CJobAdapter(IJobCallback &callback)

IJobCallback * m_Callback

virtual bool IsCanceled() const override

virtual void OnJobResult(CObject *result, CJobAdapter &adapter)=0

CRef< CAppJobError > m_Error

CJobAdapter * LaunchAdapterJob(CJobAdapter::IJobCallback *callback, TInput &input, bool(*func)(TInput &, TOutput &, string &, ICanceled &), const string &name, const string &descr)

EJobState

Job states (describe FSM)

virtual string GetDescr() const

Returns a human readable description of the Job (optional)

virtual string x_GetJobName() const

virtual ~CJobAdapterResult()

virtual CConstIRef< IAppJobError > GetError()

Returns IAppJobError object describing internal error that caused the Job to fail.

virtual CRef< CObject > GetResult()

Returns the Job Result.

virtual void OnJobFailed(const string &errMsg, CJobAdapter &adapter)=0

CJobAdapterResult< TOutput > TResult

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

void Reset(void)

Reset reference object.

TObjectType * Release(void)

Release a reference to the object and return a pointer to the object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define NCBI_GUIUTILS_EXPORT

Defines to provide correct exporting from DLLs in Windows.

Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.


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