DCMTK
Version 3.6.3
OFFIS DICOM Toolkit
|
Class representing the Content Item Macro: More...
Classes | |
class | ReferencedSOPSequenceItem |
Class representing an item within the Content Item Macro's Referenced SOP Sequence. More... | |
Public Member Functions | |
ContentItemMacro (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules) | |
Constructor. More... | |
ContentItemMacro () | |
Constructor. | |
virtual | ~ContentItemMacro () |
Destructor. | |
virtual void | resetRules () |
Resets rules to their original values. | |
virtual OFString | getName () const |
Get name of module ("ContentItemMacro") More... | |
virtual OFCondition | read (DcmItem &source, const OFBool clearOldData=OFTrue) |
Read attributes from given item into this class. More... | |
virtual OFCondition | write (DcmItem &destination) |
Write attributes from this class into given item. More... | |
virtual OFCondition | getValueType (OFString &value, const signed long pos=0) const |
Get ValueType. More... | |
virtual OFCondition | getValueType (ValueType &value) const |
Get ValueType. More... | |
virtual CodeSequenceMacro * | getConceptNameCodeSequence () |
Get reference to the ConceptNameCodeSequence. More... | |
virtual OFVector< CodeSequenceMacro * > & | getEntireConceptNameCodeSequence () |
Get a reference to the entire ConceptNameCodeSequence, including items exceeding the value multiplicity restriction of "1". More... | |
virtual OFCondition | getDateTime (OFString &value, const signed long pos=0) const |
Get DateTime. More... | |
virtual OFCondition | getDate (OFString &value, const signed long pos=0) const |
Get Date. More... | |
virtual OFCondition | getTime (OFString &value, const signed long pos=0) const |
Get Time. More... | |
virtual OFCondition | getPersonName (OFString &value, const signed long pos=0) const |
Get PersonName. More... | |
virtual OFCondition | getUID (OFString &value, const signed long pos=0) const |
Get UID. More... | |
virtual OFCondition | getTextValue (OFString &value, const signed long pos=0) const |
Get TextValue. More... | |
virtual CodeSequenceMacro * | getConceptCodeSequence () |
Get reference to the ConceptCodeSequence. More... | |
virtual OFVector< CodeSequenceMacro * > & | getEntireConceptCodeSequence () |
Get a reference to the entire ConceptCodeSequence, including items exceeding the value multiplicity restriction of "1". More... | |
virtual OFCondition | getNumericValue (OFString &value, const signed long pos=0) const |
Get NumericValue. More... | |
virtual OFCondition | getFloatingPointValue (Float64 &value, const signed long pos=0) const |
Get FloatingPointValue. More... | |
virtual OFCondition | getRationalNumeratorValue (Sint32 &value, const signed long pos=0) const |
Get RationalNumeratorValue. More... | |
virtual OFCondition | getRationalDenominatorValue (Uint32 &value, const signed long pos=0) const |
Get RationalDenominatorValue. More... | |
virtual CodeSequenceMacro * | getMeasurementUnitsCodeSequence () |
Get reference to the MeasurementUnitsCodeSequence. More... | |
virtual OFVector< CodeSequenceMacro * > & | getEntireMeasurementUnitsCodeSequence () |
Get a reference to the entire MeasurementUnitsCodeSequence, including items exceeding the value multiplicity restriction of "1". More... | |
virtual ReferencedSOPSequenceItem * | getReferencedSOPSequence () |
Get reference to the ReferencedSOPSequence. More... | |
virtual OFVector< ReferencedSOPSequenceItem * > & | getEntireReferencedSOPSequence () |
Get a reference to the entire ReferencedSOPSequence, including items exceeding the value multiplicity restriction of "1". More... | |
virtual OFCondition | setValueType (const OFString &value, const OFBool checkValue=OFTrue) |
Set ValueType. More... | |
virtual OFCondition | setValueType (const ValueType value, const OFBool checkValue=OFTrue) |
Set ValueType. More... | |
virtual OFCondition | setDateTime (const OFString &value, const OFBool checkValue=OFTrue) |
Set DateTime. More... | |
virtual OFCondition | setDate (const OFString &value, const OFBool checkValue=OFTrue) |
Set Date. More... | |
virtual OFCondition | setTime (const OFString &value, const OFBool checkValue=OFTrue) |
Set Time. More... | |
virtual OFCondition | setPersonName (const OFString &value, const OFBool checkValue=OFTrue) |
Set PersonName. More... | |
virtual OFCondition | setUID (const OFString &value, const OFBool checkValue=OFTrue) |
Set UID. More... | |
virtual OFCondition | setTextValue (const OFString &value, const OFBool checkValue=OFTrue) |
Set TextValue. More... | |
virtual OFCondition | setNumericValue (const OFString &value, const OFBool checkValue=OFTrue) |
Set NumericValue. More... | |
virtual OFCondition | setFloatingPointValue (const Float64 value, const unsigned long pos=0, const OFBool checkValue=OFTrue) |
Set FloatingPointValue. More... | |
virtual OFCondition | setRationalNumeratorValue (const Sint32 value, const unsigned long pos=0, const OFBool checkValue=OFTrue) |
Set RationalNumeratorValue. More... | |
virtual OFCondition | setRationalDenominatorValue (const Uint32 value, const unsigned long pos=0, const OFBool checkValue=OFTrue) |
Set RationalDenominatorValue. More... | |
![]() | |
IODComponent (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules, IODComponent *parent=NULL) | |
Constructor. More... | |
IODComponent (IODComponent *parent=NULL) | |
Constructor, creates rules and item from scratch. More... | |
IODComponent & | operator= (const IODComponent &rhs) |
Assignment operator, copies contained item and rule set from rhs to "this" attribute set. More... | |
IODComponent (const IODComponent &rhs) | |
Copy constructor, copies reference to contained item and rule set to "this" attribute set. More... | |
virtual | ~IODComponent () |
Virtual Destructor. | |
void | clearData () |
Clear all attributes from the data that are handled by this module. More... | |
virtual void | inventMissing () |
Set missing values by inventing "default values". More... | |
OFshared_ptr< IODRules > | getRules () |
Get rules handled by this module. More... | |
virtual void | makeOptional () |
Make component optional by turning all attributes requirement types of it to type 3. More... | |
DcmItem & | getData () |
Get the data handled by this module. More... | |
virtual OFCondition | check (const OFBool quiet=OFFalse) |
Check whether this component's data satisfies the underlying rules. More... | |
virtual int | compare (const IODComponent &rhs) const |
Comparison operator for IOD Components. More... | |
Protected Attributes | |
OFVector< CodeSequenceMacro * > | m_ConceptNameCodeSequence |
ConceptNameCodeSequence. | |
OFVector< CodeSequenceMacro * > | m_ConceptCodeSequence |
ConceptCodeSequence. | |
OFVector< CodeSequenceMacro * > | m_MeasurementUnitsCodeSequence |
MeasurementUnitsCodeSequence. | |
OFVector< ReferencedSOPSequenceItem * > | m_ReferencedSOPSequence |
ReferencedSOPSequence. | |
![]() | |
OFshared_ptr< DcmItem > | m_Item |
Shared pointer to the data handled by this class. More... | |
OFshared_ptr< IODRules > | m_Rules |
Rules describing the attributes governed by this class. | |
IODComponent * | m_Parent |
The parent component (may be NULL) of this class. | |
Static Protected Attributes | |
static const OFString | m_ModuleName |
The name of this module ("ContentItemMacro") | |
Additional Inherited Members | |
![]() | |
static OFCondition | read (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
Static helper function that reads attributes from given item into destination item, as determined by the provided rules and component name. More... | |
static OFCondition | write (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
Static helper function that writes attributes from given item into destination item, as determined by the provided rules and component name. More... | |
Class representing the Content Item Macro:
ValueType: (CS, 1, 1) ConceptNameCodeSequence: (SQ, 1, 1) DateTime: (DT, 1, 1C) Date: (DA, 1, 1C) Time: (TM, 1, 1C) PersonName: (PN, 1, 1C) UID: (UI, 1, 1C) TextValue: (UT, 1, 1C) ConceptCodeSequence: (SQ, 1, 1C) NumericValue: (DS, 1-n, 1C) FloatingPointValue: (FD, 1-n, 1C) RationalNumeratorValue: (SL, 1-n, 1C) RationalDenominatorValue: (UL, 1-n, 1C) MeasurementUnitsCodeSequence: (SQ, 1, 1C) ReferencedSOPSequence: (SQ, 1, 1C)
ContentItemMacro::ContentItemMacro | ( | OFshared_ptr< DcmItem > | item, |
OFshared_ptr< IODRules > | rules | ||
) |
Constructor.
item | The item to be used for data storage. If NULL, the class creates an empty data container. |
rules | The rule set for this class. If NULL, the class creates one from scratch and adds its values. |
|
virtual |
Get reference to the ConceptCodeSequence.
|
virtual |
Get reference to the ConceptNameCodeSequence.
|
virtual |
Get Date.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get DateTime.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get a reference to the entire ConceptCodeSequence, including items exceeding the value multiplicity restriction of "1".
|
virtual |
Get a reference to the entire ConceptNameCodeSequence, including items exceeding the value multiplicity restriction of "1".
|
virtual |
Get a reference to the entire MeasurementUnitsCodeSequence, including items exceeding the value multiplicity restriction of "1".
|
virtual |
Get a reference to the entire ReferencedSOPSequence, including items exceeding the value multiplicity restriction of "1".
|
virtual |
Get FloatingPointValue.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get reference to the MeasurementUnitsCodeSequence.
|
virtual |
Get name of module ("ContentItemMacro")
Implements IODComponent.
|
virtual |
Get NumericValue.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get PersonName.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get RationalDenominatorValue.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get RationalNumeratorValue.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get reference to the ReferencedSOPSequence.
|
virtual |
Get TextValue.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Time.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get UID.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get ValueType.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get ValueType.
value | Reference to variable in which the value should be stored |
|
virtual |
Read attributes from given item into this class.
source | The source to read from |
clearOldData | If OFTrue, old data is cleared before reading. Otherwise old data is overwritten (or amended) |
Reimplemented from IODComponent.
|
virtual |
Set Date.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (DA) and VM (1) if enabled |
|
virtual |
Set DateTime.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (DT) and VM (1) if enabled |
|
virtual |
Set FloatingPointValue.
value | Value to be set (single value only) or "" for no value |
pos | Index of the value to be set (starting from 0) |
checkValue | Check 'value' for conformance with VR (FD) and VM (1-n) if enabled |
|
virtual |
Set NumericValue.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (DS) and VM (1-n) if enabled |
|
virtual |
Set PersonName.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (PN) and VM (1) if enabled |
|
virtual |
Set RationalDenominatorValue.
value | Value to be set (single value only) or "" for no value |
pos | Index of the value to be set (starting from 0) |
checkValue | Check 'value' for conformance with VR (UL) and VM (1-n) if enabled |
|
virtual |
Set RationalNumeratorValue.
value | Value to be set (single value only) or "" for no value |
pos | Index of the value to be set (starting from 0) |
checkValue | Check 'value' for conformance with VR (SL) and VM (1-n) if enabled |
|
virtual |
Set TextValue.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (UT) and VM (1) if enabled |
|
virtual |
Set Time.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (TM) and VM (1) if enabled |
|
virtual |
Set UID.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (UI) and VM (1) if enabled |
|
virtual |
Set ValueType.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (CS) and VM (1) if enabled |
|
virtual |
Set ValueType.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value'. Does nothing, here for consistency with other set() functions. |
|
virtual |
Write attributes from this class into given item.
destination | The item to write to |
Reimplemented from IODComponent.