Inheritance diagram for DSRContentItem:
Public Member Functions | |
virtual | ~DSRContentItem () |
destructor | |
OFBool | isValid () const |
check for validity/completeness. | |
OFBool | isMarked () const |
check for mark flag. | |
void | setMark (const OFBool flag) |
mark/unmark item. | |
E_ValueType | getValueType () const |
get value type. | |
E_RelationshipType | getRelationshipType () const |
get relationship type. | |
size_t | getReferencedNodeID () const |
get ID of the referenced node. | |
const OFString & | getStringValue () const |
get string value. | |
OFCondition | setStringValue (const OFString &stringValue) |
set string value. | |
DSRCodedEntryValue * | getCodeValuePtr () |
get pointer to code value. | |
const DSRCodedEntryValue & | getCodeValue () const |
get code value. | |
OFCondition | getCodeValue (DSRCodedEntryValue &codeValue) const |
get copy of code value. | |
OFCondition | setCodeValue (const DSRCodedEntryValue &codeValue) |
set code value. | |
DSRNumericMeasurementValue * | getNumericValuePtr () |
get pointer to numeric value. | |
const DSRNumericMeasurementValue & | getNumericValue () const |
get numeric value. | |
OFCondition | getNumericValue (DSRNumericMeasurementValue &numericValue) const |
get copy of numeric value. | |
OFCondition | setNumericValue (const DSRNumericMeasurementValue &numericValue) |
set numeric value. | |
DSRSpatialCoordinatesValue * | getSpatialCoordinatesPtr () |
get pointer to spatial coordinates. | |
const DSRSpatialCoordinatesValue & | getSpatialCoordinates () const |
get spatial coordinates. | |
OFCondition | getSpatialCoordinates (DSRSpatialCoordinatesValue &coordinatesValue) const |
get copy of spatial coordinates. | |
OFCondition | setSpatialCoordinates (const DSRSpatialCoordinatesValue &coordinatesValue) |
set spatial coordinates. | |
DSRTemporalCoordinatesValue * | getTemporalCoordinatesPtr () |
get pointer to temporal coordinates. | |
const DSRTemporalCoordinatesValue & | getTemporalCoordinates () const |
get temporal coordinates. | |
OFCondition | getTemporalCoordinates (DSRTemporalCoordinatesValue &coordinatesValue) const |
get copy of temporal coordinates. | |
OFCondition | setTemporalCoordinates (const DSRTemporalCoordinatesValue &coordinatesValue) |
set temporal coordinates. | |
DSRCompositeReferenceValue * | getCompositeReferencePtr () |
get pointer to composite reference. | |
const DSRCompositeReferenceValue & | getCompositeReference () const |
get composite reference. | |
OFCondition | getCompositeReference (DSRCompositeReferenceValue &referenceValue) const |
get copy of composite reference. | |
OFCondition | setCompositeReference (const DSRCompositeReferenceValue &referenceValue) |
set composite reference. | |
DSRImageReferenceValue * | getImageReferencePtr () |
get pointer to image reference. | |
const DSRImageReferenceValue & | getImageReference () const |
get image reference. | |
OFCondition | getImageReference (DSRImageReferenceValue &referenceValue) const |
get copy of image reference. | |
OFCondition | setImageReference (const DSRImageReferenceValue &referenceValue) |
set image reference. | |
DSRWaveformReferenceValue * | getWaveformReferencePtr () |
get pointer to waveform reference. | |
const DSRWaveformReferenceValue & | getWaveformReference () const |
get waveform reference. | |
OFCondition | getWaveformReference (DSRWaveformReferenceValue &referenceValue) const |
get copy of waveform reference. | |
OFCondition | setWaveformReference (const DSRWaveformReferenceValue &referenceValue) |
set waveform reference. | |
E_ContinuityOfContent | getContinuityOfContent () const |
get continuity of content flag. | |
OFCondition | setContinuityOfContent (const E_ContinuityOfContent continuityOfContent) |
set continuity of content flag. | |
DSRCodedEntryValue * | getConceptNamePtr () |
get pointer to concept name. | |
const DSRCodedEntryValue & | getConceptName () const |
get concept name. | |
OFCondition | getConceptName (DSRCodedEntryValue &conceptName) const |
get copy of concept name. | |
OFCondition | setConceptName (const DSRCodedEntryValue &conceptName) |
set concept name. | |
const OFString & | getObservationDateTime () const |
get observation date time. | |
OFCondition | setObservationDateTime (const OFString &observationDateTime) |
set observation date time. | |
OFCondition | getTemplateIdentification (OFString &templateIdentifier, OFString &mappingResource) const |
get template identifier and mapping resource. | |
OFCondition | setTemplateIdentification (const OFString &templateIdentifier, const OFString &mappingResource) |
set template identifier and mapping resource. | |
Protected Member Functions | |
DSRContentItem () | |
default constructor (protected) | |
void | setTreeNode (DSRDocumentTreeNode *node) |
set internal tree node pointer (protected) | |
Private Member Functions | |
DSRContentItem (const DSRContentItem &) | |
DSRContentItem & | operator= (const DSRContentItem &) |
Private Attributes | |
DSRDocumentTreeNode * | TreeNode |
internal tree node pointer (current conten item) | |
Static Private Attributes | |
static const OFString | EmptyString |
empty string value. Used as default return value for getStringValue() | |
static const DSRCodedEntryValue | EmptyCodedEntry |
empty coded entry value. Used as default return value for getCodeValue() and getConceptName() | |
static const DSRNumericMeasurementValue | EmptyNumericMeasurement |
empty numberic measurement value. Used as default return value for getNumericValue() | |
static const DSRSpatialCoordinatesValue | EmptySpatialCoordinates |
empty spatial coordinates value. Used as default return value for getSpatialCoordinates() | |
static const DSRTemporalCoordinatesValue | EmptyTemporalCoordinates |
empty temporal coordinates value. Used as default return value for getTemporalCoordinates() | |
static const DSRCompositeReferenceValue | EmptyCompositeReference |
empty composite reference value. Used as default return value for getCompositeReference() | |
static const DSRImageReferenceValue | EmptyImageReference |
empty image reference value. Used as default return value for getImageReference() | |
static const DSRWaveformReferenceValue | EmptyWaveformReference |
empty waveform reference value. Used as default return value for getWaveformReference() | |
Friends | |
class | DSRDocumentTree |
This class allows to access the document tree nodes without using any pointers.
Definition at line 56 of file dsrcitem.h.
OFBool DSRContentItem::isValid | ( | ) | const |
check for validity/completeness.
Applicable to all content items.
OFBool DSRContentItem::isMarked | ( | ) | const |
check for mark flag.
Applicable to all content items.
void DSRContentItem::setMark | ( | const OFBool | flag | ) |
mark/unmark item.
Applicable to all content items.
flag | mark item if OFTrue, unmark otherwise |
E_ValueType DSRContentItem::getValueType | ( | ) | const |
get value type.
Applicable to all content items.
E_RelationshipType DSRContentItem::getRelationshipType | ( | ) | const |
get relationship type.
Applicable to all content items.
size_t DSRContentItem::getReferencedNodeID | ( | ) | const |
get ID of the referenced node.
Applicable to: byReference relationships
const OFString& DSRContentItem::getStringValue | ( | ) | const |
get string value.
Applicable to: TEXT, DATETIME, DATE, TIME, UIDREF, PNAME
OFCondition DSRContentItem::setStringValue | ( | const OFString & | stringValue | ) |
set string value.
Please use the correct format for the string value depending on the corresponding content item (value type). Applicable to: TEXT, DATETIME, DATE, TIME, UIDREF, PNAME
stringValue | value to be set |
DSRCodedEntryValue* DSRContentItem::getCodeValuePtr | ( | ) |
get pointer to code value.
Applicable to: CODE
const DSRCodedEntryValue& DSRContentItem::getCodeValue | ( | ) | const |
get code value.
Applicable to: CODE
OFCondition DSRContentItem::getCodeValue | ( | DSRCodedEntryValue & | codeValue | ) | const |
get copy of code value.
Applicable to: CODE
codeValue | variable where the copy should be stored |
OFCondition DSRContentItem::setCodeValue | ( | const DSRCodedEntryValue & | codeValue | ) |
set code value.
Applicable to: CODE
codeValue | value to be set |
DSRNumericMeasurementValue* DSRContentItem::getNumericValuePtr | ( | ) |
get pointer to numeric value.
Applicable to: NUM
const DSRNumericMeasurementValue& DSRContentItem::getNumericValue | ( | ) | const |
get numeric value.
Applicable to: NUM
OFCondition DSRContentItem::getNumericValue | ( | DSRNumericMeasurementValue & | numericValue | ) | const |
get copy of numeric value.
Applicable to: NUM
numericValue | variable where the copy should be stored (cleared if an error occurs) |
OFCondition DSRContentItem::setNumericValue | ( | const DSRNumericMeasurementValue & | numericValue | ) |
set numeric value.
Applicable to: NUM
numericValue | value to be set |
DSRSpatialCoordinatesValue* DSRContentItem::getSpatialCoordinatesPtr | ( | ) |
get pointer to spatial coordinates.
Applicable to: SCOORD
const DSRSpatialCoordinatesValue& DSRContentItem::getSpatialCoordinates | ( | ) | const |
get spatial coordinates.
Applicable to: SCOORD
OFCondition DSRContentItem::getSpatialCoordinates | ( | DSRSpatialCoordinatesValue & | coordinatesValue | ) | const |
get copy of spatial coordinates.
Applicable to: SCOORD
coordinatesValue | variable where the copy should be stored (cleared if an error occurs) |
OFCondition DSRContentItem::setSpatialCoordinates | ( | const DSRSpatialCoordinatesValue & | coordinatesValue | ) |
set spatial coordinates.
Applicable to: SCOORD
coordinatesValue | value to be set |
DSRTemporalCoordinatesValue* DSRContentItem::getTemporalCoordinatesPtr | ( | ) |
get pointer to temporal coordinates.
Applicable to: TCOORD
const DSRTemporalCoordinatesValue& DSRContentItem::getTemporalCoordinates | ( | ) | const |
get temporal coordinates.
Applicable to: TCOORD
OFCondition DSRContentItem::getTemporalCoordinates | ( | DSRTemporalCoordinatesValue & | coordinatesValue | ) | const |
get copy of temporal coordinates.
Applicable to: TCOORD
coordinatesValue | variable where the copy should be stored (cleared if an error occurs) |
OFCondition DSRContentItem::setTemporalCoordinates | ( | const DSRTemporalCoordinatesValue & | coordinatesValue | ) |
set temporal coordinates.
Applicable to: TCOORD
coordinatesValue | value to be set |
DSRCompositeReferenceValue* DSRContentItem::getCompositeReferencePtr | ( | ) |
get pointer to composite reference.
Applicable to: COMPOSITE
const DSRCompositeReferenceValue& DSRContentItem::getCompositeReference | ( | ) | const |
get composite reference.
Applicable to: COMPOSITE
OFCondition DSRContentItem::getCompositeReference | ( | DSRCompositeReferenceValue & | referenceValue | ) | const |
get copy of composite reference.
Applicable to: COMPOSITE
referenceValue | variable where the copy should be stored (cleared if an error occurs) |
OFCondition DSRContentItem::setCompositeReference | ( | const DSRCompositeReferenceValue & | referenceValue | ) |
set composite reference.
Applicable to: COMPOSITE
referenceValue | value to be set |
DSRImageReferenceValue* DSRContentItem::getImageReferencePtr | ( | ) |
get pointer to image reference.
Applicable to: IMAGE
const DSRImageReferenceValue& DSRContentItem::getImageReference | ( | ) | const |
get image reference.
Applicable to: IMAGE
OFCondition DSRContentItem::getImageReference | ( | DSRImageReferenceValue & | referenceValue | ) | const |
get copy of image reference.
Applicable to: IMAGE
referenceValue | variable where the copy should be stored (cleared if an error occurs) |
OFCondition DSRContentItem::setImageReference | ( | const DSRImageReferenceValue & | referenceValue | ) |
set image reference.
Applicable to: IMAGE
referenceValue | value to be set |
DSRWaveformReferenceValue* DSRContentItem::getWaveformReferencePtr | ( | ) |
get pointer to waveform reference.
Applicable to: WAVEFORM
const DSRWaveformReferenceValue& DSRContentItem::getWaveformReference | ( | ) | const |
get waveform reference.
Applicable to: WAVEFORM
OFCondition DSRContentItem::getWaveformReference | ( | DSRWaveformReferenceValue & | referenceValue | ) | const |
get copy of waveform reference.
Applicable to: WAVEFORM
referenceValue | variable where the copy should be stored (cleared if an error occurs) |
OFCondition DSRContentItem::setWaveformReference | ( | const DSRWaveformReferenceValue & | referenceValue | ) |
set waveform reference.
Applicable to: WAVEFORM
referenceValue | value to be set |
E_ContinuityOfContent DSRContentItem::getContinuityOfContent | ( | ) | const |
get continuity of content flag.
This flag specifies whether or not its contained content items (child nodes) are logically linked in a continuous textual flow, or are sparate items. Applicable to: CONTAINER
OFCondition DSRContentItem::setContinuityOfContent | ( | const E_ContinuityOfContent | continuityOfContent | ) |
set continuity of content flag.
This flag specifies whether or not its contained content items (child nodes) are logically linked in a continuous textual flow, or are sparate items. Applicable to: CONTAINER
continuityOfContent | value to be set (should be different from COC_onvalid) |
DSRCodedEntryValue* DSRContentItem::getConceptNamePtr | ( | ) |
get pointer to concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only).
const DSRCodedEntryValue& DSRContentItem::getConceptName | ( | ) | const |
get concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only).
OFCondition DSRContentItem::getConceptName | ( | DSRCodedEntryValue & | conceptName | ) | const |
get copy of concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only).
conceptName | variable where the copy should be stored (cleared if an error occurs) |
OFCondition DSRContentItem::setConceptName | ( | const DSRCodedEntryValue & | conceptName | ) |
set concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only, optional/conditional for some value types).
conceptName | value to be set |
const OFString& DSRContentItem::getObservationDateTime | ( | ) | const |
get observation date time.
This is the date and time on which this content item was completed. Might be empty if the date and time do not differ from the content date and time, see DSRDocument. Applicable to all content items (by-value only, optional attribute).
OFCondition DSRContentItem::setObservationDateTime | ( | const OFString & | observationDateTime | ) |
set observation date time.
This is the date and time on which this content item was completed. Might be empty if the date and time do not differ from the content date and time, see DSRDocument. Please use the correct DICOM format (VR=DT). Applicable to all content items (by-value only).
observationDateTime | value to be set (might be an empty string) |
OFCondition DSRContentItem::getTemplateIdentification | ( | OFString & | templateIdentifier, | |
OFString & | mappingResource | |||
) | const |
get template identifier and mapping resource.
This value pair identifies the template that was used to create this content item (and its children). According to the DICOM standard is is "required if a template was used to define the content of this Item, and the template consists of a single CONTAINER with nested content, and it is the outermost invocation of a set of nested templates that start with the same CONTAINER." However, this condition is currently not checked. The identification is valid if both values are either present (non-empty) or absent (empty). Applicable to all content items (by-value only, optional attribute).
templateIdentifier | identifier of the template (might be empty) | |
mappingResource | mapping resource that defines the template (might be empty) |
OFCondition DSRContentItem::setTemplateIdentification | ( | const OFString & | templateIdentifier, | |
const OFString & | mappingResource | |||
) |
set template identifier and mapping resource.
The identification is valid if both values are either present (non-empty) or absent (empty). See getTemplateIdentification() for details. Applicable to all content items (by-value only).
templateIdentifier | identifier of the template to be set (VR=CS) | |
mappingResource | mapping resource that defines the template (VR=CS) |
void DSRContentItem::setTreeNode | ( | DSRDocumentTreeNode * | node | ) | [inline, protected] |
set internal tree node pointer (protected)
node | pointer to the document tree node (content item) |
Definition at line 406 of file dsrcitem.h.
References TreeNode.