MeVisLab Toolbox Reference
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 { return _statusString; }
32 float progress() const { return _progress; }
33 BackgroundTask::Status status() const { return _status; }
34 void* owner() const { return _owner; }
35 MLuint32 taskId() const { return _taskId; }
36
37protected:
38 friend class BackgroundTask;
39
40 std::string _statusString;
41 float _progress;
43 void* _owner;
45};
46
48
49#endif
50
51
#define MLBACKGROUNDTASKS_EXPORT
Project global and OS specific declarations.
BackgroundTaskStatusInformation creates a snapshot of the status of a given BackgroundTask,...
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