OpendTect
7.0
|
The abstraction of something that can be done. It can be an ordinary CallBack, a static function (must return bool) or a TaskFunction on a CallBackerinheriting class, or a Task. The three examples are shown below. More...
Public Member Functions | |
Work () | |
Work (CallBacker *o, TaskFunction f) | |
Work (const CallBack &) | |
Work (StaticTaskFunction f) | |
Work (Task &t, bool takeover) | |
uiString | errMsg () const |
bool | execute () |
const Task * | getTask () const |
bool | isOK () const |
bool | operator== (const Work &) const |
Private Member Functions | |
void | destroy () |
Private Attributes | |
CallBackFunction | cbf_ |
uiString | msg_ |
CallBacker * | obj_ |
StaticTaskFunction | stf_ |
bool | takeover_ =false |
TaskFunction | tf_ |
Friends | |
class | WorkManager |
class | WorkThread |
The abstraction of something that can be done. It can be an ordinary CallBack, a static function (must return bool) or a TaskFunction on a CallBackerinheriting class, or a Task. The three examples are shown below.
Calls to normalCallBack and task functions can be invoked as:
or
or
You can also add Tasks, with the option that they may be deleted when the work is done, or if there is an error.
<>
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
bool Threads::Work::operator== | ( | const Work & | ) | const |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024