Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryHandleObjectManager.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 
19 #include "berryHandleObject.h"
20 
21 namespace berry
22 {
23 
24 void HandleObjectManager::CheckId(const QString& id) const
25 {
26  if (id.isEmpty())
27  {
28  throw ctkInvalidArgumentException(
29  "The handle object must not have a zero-length identifier");
30  }
31 }
32 
34 {
35  QSet<QString> definedHandleObjectIds;
36  definedHandleObjectIds.reserve(definedHandleObjects.size());
38  {
39  definedHandleObjectIds.insert(ho->GetId());
40  }
41  return definedHandleObjectIds;
42 }
43 
44 }
QSet< QString > GetDefinedHandleObjectIds() const
void CheckId(const QString &id) const