Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
berryNullProgressMonitor.cpp
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 
14 
15 namespace berry
16 {
17 
19  m_cancelled(false)
20 {
21 }
22 
23 void NullProgressMonitor::BeginTask(const std::string& /*name*/, int /*totalWork*/)
24 {
25  // do nothing
26 }
27 
29 {
30  // do nothing
31 }
32 
34 {
35  // do nothing
36 }
37 
39 {
40  return m_cancelled;
41 }
42 
43 void NullProgressMonitor::SetCanceled(bool newcancelled)
44 {
45  this->m_cancelled = newcancelled;
46 }
47 
48 void NullProgressMonitor::SetTaskName(const std::string& /*name*/)
49 {
50  // do nothing
51 }
52 
53 void NullProgressMonitor::SubTask(const std::string& /*name*/)
54 {
55  // do nothing
56 }
57 
58 void NullProgressMonitor::Worked(int /*work*/)
59 {
60  // do nothing
61 }
62 
63 }
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