Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkUIDManipulator.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 
13 #include <mitkUIDManipulator.h>
14 #include <mitkExceptionMacro.h>
15 #include <mitkIdentifiable.h>
16 
18  : m_Identifiable(identifiable)
19 {
20  if (nullptr == m_Identifiable)
21  mitkThrow() << "Invalid identifiable object.";
22 }
23 
25 {
26 }
27 
29 {
30  m_Identifiable->SetUID(uid);
31 }
void SetUID(const Identifiable::UIDType &uid)
Set unique ID of an identifiable object.
UIDManipulator(Identifiable *identifiable)
#define mitkThrow()
Base class of identifiable objects.