Medical Imaging Interaction Toolkit  2018.4.99-a28b433c
Medical Imaging Interaction Toolkit
berryCommandCategoryEvent.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 #include "berryCommandCategory.h"
15 
16 namespace berry
17 {
18 
20  const SmartPointer<CommandCategory> category, bool definedChanged,
21  bool descriptionChanged, bool nameChanged) :
22  AbstractNamedHandleEvent(definedChanged, descriptionChanged, nameChanged),
23  category(category)
24 {
25 
26  if (!category)
27  {
28  throw Poco::NullPointerException("CommandCategory cannot be null");
29  }
30 }
31 
33 {
34  return category;
35 }
36 
37 }
SmartPointer< CommandCategory > GetCategory() const
Implements transparent reference counting.
CommandCategoryEvent(const SmartPointer< CommandCategory > category, bool definedChanged, bool descriptionChanged, bool nameChanged)