Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkModalityProperty.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 mitkModalityProperty_h_Included
14 #define mitkModalityProperty_h_Included
15 
17 #include <MitkCoreExports.h>
18 #include <itkObjectFactory.h>
19 
20 namespace mitk
21 {
22 #ifdef _MSC_VER
23 #pragma warning(push)
24 #pragma warning(disable : 4522)
25 #endif
26 
33  {
34  public:
36  itkFactorylessNewMacro(Self) itkCloneMacro(Self) mitkNewMacro1Param(ModalityProperty, const IdType &);
37  mitkNewMacro1Param(ModalityProperty, const std::string &);
38 
39  using BaseProperty::operator=;
40 
41  protected:
43  ModalityProperty(const IdType &value);
44  ModalityProperty(const std::string &value);
45 
46  ~ModalityProperty() override;
47  virtual void AddEnumerationTypes();
48 
49  private:
50  // purposely not implemented
51  const ModalityProperty &operator=(const ModalityProperty &);
52 
53  itk::LightObject::Pointer InternalClone() const override;
54  };
55 
56 #ifdef _MSC_VER
57 #pragma warning(pop)
58 #endif
59 
60 } // namespace
61 
62 #endif
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
Enumerates all known modalities.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40