Medical Imaging Interaction Toolkit  2018.4.99-08619e4f
Medical Imaging Interaction Toolkit
berryHandleObjectManager.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 
15 #include "berryHandleObject.h"
16 
17 namespace berry
18 {
19 
20 void HandleObjectManager::CheckId(const QString& id) const
21 {
22  if (id.isEmpty())
23  {
24  throw ctkInvalidArgumentException(
25  "The handle object must not have a zero-length identifier");
26  }
27 }
28 
30 {
31  QSet<QString> definedHandleObjectIds;
32  definedHandleObjectIds.reserve(definedHandleObjects.size());
34  {
35  definedHandleObjectIds.insert(ho->GetId());
36  }
37  return definedHandleObjectIds;
38 }
39 
40 }
QSet< QString > GetDefinedHandleObjectIds() const
void CheckId(const QString &id) const