MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlBackgroundTaskStatusInformation.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2009, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_BACKGROUND_TASK_STATUS_INFORMATION_H
14#define ML_BACKGROUND_TASK_STATUS_INFORMATION_H
15
16// Local includes
18#include "mlBackgroundTask.h"
19
21
22//-----------------------------------------------------------------------
26{
27public:
30
31 std::string statusString() const
32 {
33 return _statusString;
34 }
35 float progress() const
36 {
37 return _progress;
38 }
40 {
41 return _status;
42 }
43 void* owner() const
44 {
45 return _owner;
46 }
48 {
49 return _taskId;
50 }
51
52protected:
53 friend class BackgroundTask;
54
55 std::string _statusString;
56 float _progress;
58 void* _owner;
60};
61
63
64#endif
#define MLBACKGROUNDTASKS_EXPORT
BackgroundTaskStatusInformation creates a snapshot of the status of a given BackgroundTask to allow f...
BackgroundTaskStatusInformation(BackgroundTask *task)
Base class for a task that is started in an extra thread.
Status
Defines current status of the task.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
unsigned int MLuint32
Definition mlTypeDefs.h:185