Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkIdentifiable.h
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 #ifndef mitkIdentifiable_h
14 #define mitkIdentifiable_h
15 
16 #include <string>
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
46  {
47  public:
48  using UIDType = std::string;
49 
50  Identifiable();
51  explicit Identifiable(const UIDType &uid);
52  Identifiable(const Identifiable &) = delete;
53  Identifiable(Identifiable &&) noexcept;
54  virtual ~Identifiable();
55 
56  Identifiable & operator =(const Identifiable &) = delete;
57  Identifiable & operator =(Identifiable &&other) noexcept;
58 
64  virtual UIDType GetUID() const;
65 
66  protected:
67  virtual void SetUID(const UIDType& uid);
68 
69  private:
70  friend class UIDManipulator;
71 
72  struct Impl;
73  Impl *m_Impl;
74  };
75 }
76 
77 #endif
mitk::Identifiable::UIDType
std::string UIDType
Definition: mitkIdentifiable.h:48
mitk::UIDManipulator
Change the unique ID of an mitk::Identifiable.
Definition: mitkUIDManipulator.h:28
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitk::Identifiable
Base class of identifiable objects.
Definition: mitkIdentifiable.h:45
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15