Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryParameterTypeEvent.cpp
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 
18 #include "berryParameterType.h"
19 
20 namespace berry
21 {
22 
24 {
25  return parameterType;
26 }
27 
29  const SmartPointer<ParameterType> parameterType, bool definedChanged) :
30  AbstractHandleObjectEvent(definedChanged), parameterType(parameterType)
31 {
32  if (!parameterType)
33  {
34  throw Poco::NullPointerException("ParameterType cannot be null");
35  }
36 }
37 
38 }
Implements transparent reference counting.
ParameterTypeEvent(const SmartPointer< ParameterType > parameterType, bool definedChanged)
SmartPointer< ParameterType > GetParameterType() const