Medical Imaging Interaction Toolkit  2018.4.99-eed36131
Medical Imaging Interaction Toolkit
berryILog.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 BERRYILOG_H
14 #define BERRYILOG_H
15 
16 template<class T> class QSharedPointer;
17 class ctkPlugin;
18 
19 namespace berry {
20 
21 template<class T> class SmartPointer;
22 struct ILogListener;
23 struct IStatus;
24 
36 struct ILog
37 {
38  virtual ~ILog();
39 
48  virtual void AddLogListener(ILogListener* listener) = 0;
49 
55  virtual QSharedPointer<ctkPlugin> GetBundle() const = 0;
56 
63  virtual void Log(const SmartPointer<IStatus>& status) = 0;
64 
73  virtual void RemoveLogListener(ILogListener* listener) = 0;
74 };
75 
76 }
77 
78 #endif // BERRYILOG_H
virtual ~ILog()
Definition: berryILog.cpp:17
Implements transparent reference counting.
virtual void RemoveLogListener(ILogListener *listener)=0
virtual QSharedPointer< ctkPlugin > GetBundle() const =0
virtual void AddLogListener(ILogListener *listener)=0
virtual void Log(const SmartPointer< IStatus > &status)=0