Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkDICOMCodeSequence.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 mitkDICOMCodeSequence_h
14 #define mitkDICOMCodeSequence_h
15 
16 #include <MitkDICOMExports.h>
17 
18 #include <string>
19 
20 namespace mitk
21 {
36  {
37  public:
38  DICOMCodeSequence() = default;
39 
46  DICOMCodeSequence(const std::string& value, const std::string& scheme, const std::string& meaning);
47 
48  virtual ~DICOMCodeSequence() = default;
49 
54 
58  const std::string& GetValue() const;
59 
63  void SetValue(const std::string& value);
64 
68  const std::string& GetScheme() const;
69 
73  void SetScheme(const std::string& scheme);
74 
78  const std::string& GetMeaning() const;
79 
83  void SetMeaning(const std::string& meaning);
84 
89  bool IsEmpty() const;
90 
96  bool operator==(const DICOMCodeSequence& other) const;
97 
103  bool operator!=(const DICOMCodeSequence& other) const;
104 
105  protected:
106  std::string m_Value;
107  std::string m_Scheme;
108  std::string m_Meaning;
109  };
110 
111 } // namespace mitk
112 
113 #endif
#define MITKDICOM_EXPORT
Represents a DICOM Code Sequence with value, scheme, and meaning.
const std::string & GetValue() const
Gets the Code Value.
DICOMCodeSequence & operator=(DICOMCodeSequence &&)=default
const std::string & GetMeaning() const
Gets the Code Meaning.
DICOMCodeSequence(const std::string &value, const std::string &scheme, const std::string &meaning)
Constructs a DICOMCodeSequence with the specified attributes.
virtual ~DICOMCodeSequence()=default
bool operator!=(const DICOMCodeSequence &other) const
Inequality comparison operator.
bool operator==(const DICOMCodeSequence &other) const
Equality comparison operator.
DICOMCodeSequence(DICOMCodeSequence &&)=default
DICOMCodeSequence(const DICOMCodeSequence &)=default
bool IsEmpty() const
Checks if the code is empty (all fields empty).
void SetValue(const std::string &value)
Sets the Code Value.
void SetMeaning(const std::string &meaning)
Sets the Code Meaning.
DICOMCodeSequence & operator=(const DICOMCodeSequence &)=default
void SetScheme(const std::string &scheme)
Sets the Coding Scheme Designator.
const std::string & GetScheme() const
Gets the Coding Scheme Designator.
Find image slices visible on a given plane.