Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryCommandCategoryEvent.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 "berryCommandCategory.h"
19 
20 namespace berry
21 {
22 
24  const SmartPointer<CommandCategory> category, bool definedChanged,
25  bool descriptionChanged, bool nameChanged) :
26  AbstractNamedHandleEvent(definedChanged, descriptionChanged, nameChanged),
27  category(category)
28 {
29 
30  if (!category)
31  {
32  throw Poco::NullPointerException("CommandCategory cannot be null");
33  }
34 }
35 
37 {
38  return category;
39 }
40 
41 }
SmartPointer< CommandCategory > GetCategory() const
Implements transparent reference counting.
CommandCategoryEvent(const SmartPointer< CommandCategory > category, bool definedChanged, bool descriptionChanged, bool nameChanged)