Medical Imaging Interaction Toolkit  2018.4.99-6aa36ba9
Medical Imaging Interaction Toolkit
berryIProgressMonitor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRY_IPROGRESS_MONITOR_H
14 #define BERRY_IPROGRESS_MONITOR_H
15 
17 #include "berryObject.h"
18 #include <string>
19 
20 namespace berry
21 {
22 
23 struct IProgressMonitor: public Object
24 {
25 
27 
28 
30  static const int UNKNOWN = -1;
31 
42  virtual void BeginTask(const std::string& name, int totalWork) = 0;
43 
49  virtual void Done() = 0;
50 
58  virtual void InternalWorked(double work) = 0;
59 
69  virtual bool IsCanceled() = 0;
70 
79  virtual void SetCanceled(bool value) = 0;
80 
89  virtual void SetTaskName(const std::string& name) = 0;
90 
97  virtual void SubTask(const std::string& name) = 0;
98 
107  virtual void Worked(int work) = 0;
108 
109 };
110 
111 }
112 
113 #endif /* _BERRY_IPROGRESS_MONITOR_H */
virtual bool IsCanceled()=0
virtual void SetCanceled(bool value)=0
virtual void InternalWorked(double work)=0
virtual void SetTaskName(const std::string &name)=0
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
virtual void Done()=0
virtual void BeginTask(const std::string &name, int totalWork)=0
virtual void Worked(int work)=0
virtual void SubTask(const std::string &name)=0
berryObjectMacro(berry::IProgressMonitor) static const int UNKNOWN