Medical Imaging Interaction Toolkit  2018.4.99-b5518f0d
Medical Imaging Interaction Toolkit
berryNullProgressMonitor.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_nullptrPROGRESSMONITOR_H
14 #define BERRY_nullptrPROGRESSMONITOR_H
15 
16 #include <string>
17 #include "berryIProgressMonitor.h"
18 
19 namespace berry
20 {
21 
33 {
34 
35 public:
36 
38 
43 
51  void BeginTask(const std::string& name, int totalWork) override;
52 
60  void Done() override;
61 
68  void InternalWorked(double work) override;
69 
79  bool IsCanceled() override;
80 
89  void SetCanceled(bool cancelled) override;
90 
98  void SetTaskName(const std::string& name) override;
99 
107  void SubTask(const std::string& name) override;
108 
116  void Worked(int work) override;
117 
118 private:
119 
123  bool m_cancelled;
124 
125 };
126 
127 }
128 
129 #endif /* BERRY_nullptrPROGRESSMONITOR_H */
void SubTask(const std::string &name) override
void InternalWorked(double work) override
void SetTaskName(const std::string &name) override
void BeginTask(const std::string &name, int totalWork) override
void SetCanceled(bool cancelled) override
bool IsCanceled() override
void Worked(int work) override
berryObjectMacro(NullProgressMonitor)