Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIParameterTypeListener.h
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 
17 
18 #ifndef BERRYIPARAMETERTYPELISTENER_H_
19 #define BERRYIPARAMETERTYPELISTENER_H_
20 
21 #include <berryMessage.h>
22 
24 
25 namespace berry {
26 
27 template<class T> class SmartPointer;
28 
29 class ParameterTypeEvent;
30 
42 {
43 
44  struct Events {
45 
47 
49 
50  void AddListener(IParameterTypeListener* listener);
51  void RemoveListener(IParameterTypeListener* listener);
52 
54  };
55 
56  virtual ~IParameterTypeListener();
57 
66  virtual void ParameterTypeChanged(const SmartPointer<const ParameterTypeEvent>& parameterTypeEvent) = 0;
67 
68 };
69 
70 
71 }
72 
73 #endif /* BERRYIPARAMETERTYPELISTENER_H_ */
Implements transparent reference counting.
MessageDelegate1< IParameterTypeListener, const SmartPointer< const ParameterTypeEvent > & > Delegate
Message1< const SmartPointer< const ParameterTypeEvent > & > Event