Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryICommandListener.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 BERRYICOMMANDLISTENER_H_
15 #define BERRYICOMMANDLISTENER_H_
16 
17 #include <berryMessage.h>
18 
20 
21 namespace berry {
22 
23 template<class T> class SmartPointer;
24 
25 class CommandEvent;
26 
38 {
39 
40  struct Events {
41 
43 
45 
46  void AddListener(ICommandListener* listener);
47  void RemoveListener(ICommandListener* listener);
48 
49  private:
51  };
52 
53  virtual ~ICommandListener();
54 
63  virtual void CommandChanged(const SmartPointer<const CommandEvent>& commandEvent) = 0;
64 };
65 
66 }
67 
68 #endif /* BERRYICOMMANDLISTENER_H_ */
Implements transparent reference counting.
Message1< const SmartPointer< const CommandEvent > & > Event