Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryProgressProvider.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 #include "berryProgressProvider.h"
15 
16 namespace berry
17 {
18 
19 // returns the default NullProgressProvider
21 {
22  IProgressMonitor::Pointer sptr_progressGroup(new NullProgressMonitor());
23  return sptr_progressGroup;
24 }
25 
26 // returns the default NullProgressProvider
28 {
29  IProgressMonitor::Pointer sptr_defaultMonitor(new NullProgressMonitor());
30  return sptr_defaultMonitor;
31 }
32 
34  IProgressMonitor::Pointer /*group*/, int /*ticks*/)
35 {
36  //TODO SubProgressMonitor class
37  // not implemented yet ( because the subProgressMonitor class is not implemented )returns a dummy null IProgressMonitor
38  //Pointer
39  //return IProgressMonitor::Pointer sptr_subProgressMonitor (new SubProgressMonitor()) ;
40  IProgressMonitor::Pointer dummy(nullptr);
41  return dummy;
42 }
43 
44 }
virtual IProgressMonitor::Pointer CreateProgressGroup()
virtual IProgressMonitor::Pointer CreateMonitor(Job::Pointer job)=0
virtual IProgressMonitor::Pointer GetDefaultMonitor()