Medical Imaging Interaction Toolkit  2018.4.99-6ca56567
Medical Imaging Interaction Toolkit
berryIParameterTypeListener.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 
14 #ifndef BERRYIPARAMETERTYPELISTENER_H_
15 #define BERRYIPARAMETERTYPELISTENER_H_
16 
17 #include <berryMessage.h>
18 
20 
21 namespace berry {
22 
23 template<class T> class SmartPointer;
24 
25 class ParameterTypeEvent;
26 
38 {
39 
40  struct Events {
41 
43 
45 
46  void AddListener(IParameterTypeListener* listener);
47  void RemoveListener(IParameterTypeListener* listener);
48 
50  };
51 
52  virtual ~IParameterTypeListener();
53 
62  virtual void ParameterTypeChanged(const SmartPointer<const ParameterTypeEvent>& parameterTypeEvent) = 0;
63 
64 };
65 
66 
67 }
68 
69 #endif /* BERRYIPARAMETERTYPELISTENER_H_ */
Implements transparent reference counting.
MessageDelegate1< IParameterTypeListener, const SmartPointer< const ParameterTypeEvent > &> Delegate
Message1< const SmartPointer< const ParameterTypeEvent > &> Event