Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryNullProgressMonitor.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 
19 namespace berry
20 {
21 
23  m_cancelled(false)
24 {
25 }
26 
27 void NullProgressMonitor::BeginTask(const std::string& /*name*/, int /*totalWork*/)
28 {
29  // do nothing
30 }
31 
33 {
34  // do nothing
35 }
36 
38 {
39  // do nothing
40 }
41 
43 {
44  return m_cancelled;
45 }
46 
47 void NullProgressMonitor::SetCanceled(bool newcancelled)
48 {
49  this->m_cancelled = newcancelled;
50 }
51 
52 void NullProgressMonitor::SetTaskName(const std::string& /*name*/)
53 {
54  // do nothing
55 }
56 
57 void NullProgressMonitor::SubTask(const std::string& /*name*/)
58 {
59  // do nothing
60 }
61 
62 void NullProgressMonitor::Worked(int /*work*/)
63 {
64  // do nothing
65 }
66 
67 }
virtual void SubTask(const std::string &name) override
virtual void InternalWorked(double work) override
virtual void SetTaskName(const std::string &name) override
virtual void BeginTask(const std::string &name, int totalWork) override
virtual void SetCanceled(bool cancelled) override
virtual bool IsCanceled() override
virtual void Worked(int work) override