Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryIParameterTypeListener.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 
16 #include "berryParameterType.h"
17 
18 namespace berry {
19 
20 void
23 {
24  if (l == nullptr) return;
25 
26  parameterTypeChanged += Delegate(l, &IParameterTypeListener::ParameterTypeChanged);
27 }
28 
29 void
32 {
33  if (l == nullptr) return;
34 
35  parameterTypeChanged -= Delegate(l, &IParameterTypeListener::ParameterTypeChanged);
36 }
37 
39 {
40 }
41 
42 }
43 
void RemoveListener(IParameterTypeListener *listener)
void AddListener(IParameterTypeListener *listener)
virtual void ParameterTypeChanged(const SmartPointer< const ParameterTypeEvent > &parameterTypeEvent)=0