Medical Imaging Interaction Toolkit  2018.04.99-aba3194f
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
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Change the unique ID of an mitk::Identifiable.
Base class of identifiable objects.