Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 {
30  {
31  public:
32  using UIDType = std::string;
33 
34  Identifiable();
35  explicit Identifiable(const UIDType &uid);
36  Identifiable(const Identifiable &) = delete;
37  Identifiable(Identifiable &&) noexcept;
38  virtual ~Identifiable();
39 
40  Identifiable & operator =(const Identifiable &) = delete;
41  Identifiable & operator =(Identifiable &&other) noexcept;
42 
48  UIDType GetUID() const;
49 
50  private:
51  friend class UIDManipulator;
52 
53  void SetUID(const UIDType &uid);
54 
55  struct Impl;
56  Impl *m_Impl;
57  };
58 }
59 
60 #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.