|
Medical Imaging Interaction Toolkit
2025.12.02
Medical Imaging Interaction Toolkit
|
Represents a DICOM Code Sequence with optional modifiers. More...
#include <mitkDICOMCodeSequenceWithModifiers.h>


Public Types | |
| using | ModifierVector = std::vector< DICOMCodeSequence > |
Public Member Functions | |
| DICOMCodeSequenceWithModifiers ()=default | |
| DICOMCodeSequenceWithModifiers (const std::string &value, const std::string &scheme, const std::string &meaning) | |
| Constructs a DICOMCodeSequenceWithModifiers with the specified attributes. More... | |
| DICOMCodeSequenceWithModifiers (const DICOMCodeSequence &code) | |
| Constructs from a DICOMCodeSequence. More... | |
| DICOMCodeSequenceWithModifiers & | operator= (const DICOMCodeSequence &code) |
| ~DICOMCodeSequenceWithModifiers () override=default | |
| DICOMCodeSequenceWithModifiers (const DICOMCodeSequenceWithModifiers &)=default | |
| DICOMCodeSequenceWithModifiers & | operator= (const DICOMCodeSequenceWithModifiers &)=default |
| DICOMCodeSequenceWithModifiers (DICOMCodeSequenceWithModifiers &&)=default | |
| DICOMCodeSequenceWithModifiers & | operator= (DICOMCodeSequenceWithModifiers &&)=default |
| void | AddModifier (const DICOMCodeSequence &modifier) |
| Adds a modifier code. More... | |
| const ModifierVector & | GetModifiers () const |
| Gets all modifier codes. More... | |
| const DICOMCodeSequence & | GetModifier (std::size_t index) const |
| Gets a modifier code at the specified index. More... | |
| DICOMCodeSequence & | GetModifier (std::size_t index) |
| Gets a modifier code at the specified index. More... | |
| void | SetModifier (std::size_t index, const DICOMCodeSequence &modifier) |
| Sets a modifier code at the specified index. More... | |
| void | SetModifiers (const ModifierVector &modifiers) |
| Sets all modifier codes. More... | |
| void | ClearModifiers () |
| Clears all modifier codes. More... | |
| std::size_t | GetModifierCount () const |
| Gets the number of modifiers. More... | |
| bool | HasModifiers () const |
| Checks if there are any modifiers. More... | |
| bool | operator== (const DICOMCodeSequenceWithModifiers &other) const |
| Equality comparison operator. More... | |
| bool | operator!= (const DICOMCodeSequenceWithModifiers &other) const |
| Inequality comparison operator. More... | |
Public Member Functions inherited from mitk::DICOMCodeSequence | |
| DICOMCodeSequence ()=default | |
| DICOMCodeSequence (const std::string &value, const std::string &scheme, const std::string &meaning) | |
| Constructs a DICOMCodeSequence with the specified attributes. More... | |
| virtual | ~DICOMCodeSequence ()=default |
| DICOMCodeSequence (const DICOMCodeSequence &)=default | |
| DICOMCodeSequence & | operator= (const DICOMCodeSequence &)=default |
| DICOMCodeSequence (DICOMCodeSequence &&)=default | |
| DICOMCodeSequence & | operator= (DICOMCodeSequence &&)=default |
| const std::string & | GetValue () const |
| Gets the Code Value. More... | |
| void | SetValue (const std::string &value) |
| Sets the Code Value. More... | |
| const std::string & | GetScheme () const |
| Gets the Coding Scheme Designator. More... | |
| void | SetScheme (const std::string &scheme) |
| Sets the Coding Scheme Designator. More... | |
| const std::string & | GetMeaning () const |
| Gets the Code Meaning. More... | |
| void | SetMeaning (const std::string &meaning) |
| Sets the Code Meaning. More... | |
| bool | IsEmpty () const |
| Checks if the code is empty (all fields empty). More... | |
| bool | operator== (const DICOMCodeSequence &other) const |
| Equality comparison operator. More... | |
| bool | operator!= (const DICOMCodeSequence &other) const |
| Inequality comparison operator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from mitk::DICOMCodeSequence | |
| std::string | m_Value |
| std::string | m_Scheme |
| std::string | m_Meaning |
Represents a DICOM Code Sequence with optional modifiers.
This class extends DICOMCodeSequence to include a sequence of modifier codes, similar to DCMTK's CodeWithModifiers class. It provides a simplified interface for storing a primary code along with its modifying codes.
Definition at line 32 of file mitkDICOMCodeSequenceWithModifiers.h.
| using mitk::DICOMCodeSequenceWithModifiers::ModifierVector = std::vector<DICOMCodeSequence> |
Definition at line 35 of file mitkDICOMCodeSequenceWithModifiers.h.
|
default |
| mitk::DICOMCodeSequenceWithModifiers::DICOMCodeSequenceWithModifiers | ( | const std::string & | value, |
| const std::string & | scheme, | ||
| const std::string & | meaning | ||
| ) |
Constructs a DICOMCodeSequenceWithModifiers with the specified attributes.
| value | The Code Value (0008,0100), Long Code Value (0008,0119), or URN Code Value (0008,0120) |
| scheme | The Coding Scheme Designator (0008,0102) |
| meaning | The Code Meaning (0008,0104) |
|
explicit |
Constructs from a DICOMCodeSequence.
| code | The base DICOMCodeSequence |
|
overridedefault |
|
default |
|
default |
| void mitk::DICOMCodeSequenceWithModifiers::AddModifier | ( | const DICOMCodeSequence & | modifier | ) |
Adds a modifier code.
| modifier | The modifier code to add |
| void mitk::DICOMCodeSequenceWithModifiers::ClearModifiers | ( | ) |
Clears all modifier codes.
| DICOMCodeSequence& mitk::DICOMCodeSequenceWithModifiers::GetModifier | ( | std::size_t | index | ) |
Gets a modifier code at the specified index.
| index | The index of the modifier to retrieve |
| const DICOMCodeSequence& mitk::DICOMCodeSequenceWithModifiers::GetModifier | ( | std::size_t | index | ) | const |
Gets a modifier code at the specified index.
| index | The index of the modifier to retrieve |
| std::size_t mitk::DICOMCodeSequenceWithModifiers::GetModifierCount | ( | ) | const |
Gets the number of modifiers.
| const ModifierVector& mitk::DICOMCodeSequenceWithModifiers::GetModifiers | ( | ) | const |
Gets all modifier codes.
| bool mitk::DICOMCodeSequenceWithModifiers::HasModifiers | ( | ) | const |
Checks if there are any modifiers.
| bool mitk::DICOMCodeSequenceWithModifiers::operator!= | ( | const DICOMCodeSequenceWithModifiers & | other | ) | const |
Inequality comparison operator.
| other | The DICOMCodeSequenceWithModifiers to compare with |
| DICOMCodeSequenceWithModifiers& mitk::DICOMCodeSequenceWithModifiers::operator= | ( | const DICOMCodeSequence & | code | ) |
|
default |
|
default |
| bool mitk::DICOMCodeSequenceWithModifiers::operator== | ( | const DICOMCodeSequenceWithModifiers & | other | ) | const |
Equality comparison operator.
| other | The DICOMCodeSequenceWithModifiers to compare with |
| void mitk::DICOMCodeSequenceWithModifiers::SetModifier | ( | std::size_t | index, |
| const DICOMCodeSequence & | modifier | ||
| ) |
Sets a modifier code at the specified index.
| index | The index where to set the modifier |
| modifier | The modifier code to set |
| void mitk::DICOMCodeSequenceWithModifiers::SetModifiers | ( | const ModifierVector & | modifiers | ) |
Sets all modifier codes.
| modifiers | The vector of modifiers to set |