Inheritance diagram for DSRNumericMeasurementValue:
Public Member Functions | |
DSRNumericMeasurementValue () | |
default constructor | |
DSRNumericMeasurementValue (const OFString &numericValue, const DSRCodedEntryValue &measurementUnit) | |
constructor. | |
DSRNumericMeasurementValue (const OFString &numericValue, const DSRCodedEntryValue &measurementUnit, const DSRCodedEntryValue &valueQualifier) | |
constructor. | |
DSRNumericMeasurementValue (const DSRNumericMeasurementValue &numericMeasurement) | |
copy constructor | |
virtual | ~DSRNumericMeasurementValue () |
destructor | |
DSRNumericMeasurementValue & | operator= (const DSRNumericMeasurementValue &numericMeasurement) |
assignment operator | |
virtual void | clear () |
clear all internal variables. | |
virtual OFBool | isValid () const |
check whether the current numeric measurement value is valid. | |
virtual OFBool | isEmpty () const |
check whether the current numeric measurement value is empty. | |
virtual OFCondition | print (ostream &stream, const size_t flags) const |
print numeric measurement value. | |
virtual OFCondition | readXML (const DSRXMLDocument &doc, DSRXMLCursor cursor) |
read numeric measurement value from XML document | |
virtual OFCondition | writeXML (ostream &stream, const size_t flags, OFConsole *logStream) const |
write numeric measurement value in XML format | |
virtual OFCondition | readSequence (DcmItem &dataset, OFConsole *logStream) |
read measured value sequence and numeric value qualifier code sequence from dataset. | |
virtual OFCondition | writeSequence (DcmItem &dataset, OFConsole *logStream) const |
write measured value sequence and numeric value qualifier code sequence to dataset. | |
virtual OFCondition | renderHTML (ostream &docStream, ostream &annexStream, size_t &annexNumber, const size_t flags, OFConsole *logStream) const |
render numeric measurement value in HTML format | |
const DSRNumericMeasurementValue & | getValue () const |
get reference to numeric measurement value | |
OFCondition | getValue (DSRNumericMeasurementValue &numericMeasurement) const |
get copy of numeric measurement value | |
const OFString & | getNumericValue () const |
get numeric value | |
const DSRCodedEntryValue & | getMeasurementUnit () const |
get measurement unit | |
const DSRCodedEntryValue & | getNumericValueQualifier () const |
get numeric value qualifier (optional) | |
OFCondition | getMeasurementUnit (DSRCodedEntryValue &measurementUnit) const |
get copy of measurement unit | |
OFCondition | setValue (const DSRNumericMeasurementValue &numericMeasurement) |
set numeric measurement value. | |
OFCondition | setValue (const OFString &numericValue, const DSRCodedEntryValue &measurementUnit) |
set numeric value and measurement unit. | |
OFCondition | setValue (const OFString &numericValue, const DSRCodedEntryValue &measurementUnit, const DSRCodedEntryValue &valueQualifier) |
set numeric value, measurement unit and numeric value qualifier. | |
OFCondition | setNumericValue (const OFString &numericValue) |
set numeric value. | |
OFCondition | setMeasurementUnit (const DSRCodedEntryValue &measurementUnit) |
set measurement unit. | |
OFCondition | setNumericValueQualifier (const DSRCodedEntryValue &valueQualifier) |
set numeric value qualifier. | |
OFBool | valueContainsExtendedCharacters () const |
check if this value contains non-ASCII characters. | |
Protected Member Functions | |
DSRNumericMeasurementValue * | getValuePtr () |
get pointer to numeric measurement value | |
virtual OFCondition | readItem (DcmItem &dataset, OFConsole *logStream) |
read numeric measurement value from dataset | |
virtual OFCondition | writeItem (DcmItem &dataset, OFConsole *logStream) const |
write numeric measurement value to dataset | |
virtual OFBool | checkNumericValue (const OFString &numericValue) const |
check the specified numeric value for validity. | |
virtual OFBool | checkMeasurementUnit (const DSRCodedEntryValue &measurementUnit) const |
check the specified measurement unit for validity. | |
virtual OFBool | checkNumericValueQualifier (const DSRCodedEntryValue &valueQualifier) const |
check the specified numeric value qualifier for validity. | |
Private Attributes | |
OFString | NumericValue |
numeric value (VR=DS, type 1) | |
DSRCodedEntryValue | MeasurementUnit |
measurement unit (type 2) | |
DSRCodedEntryValue | ValueQualifier |
numeric value qualifier (type 3) | |
Friends | |
class | DSRContentItem |
Definition at line 51 of file dsrnumvl.h.
|
constructor. The code triple is only set if it passed the validity check (see setValue()).
|
|
constructor. The two codes are only set if they passed the validity check (see setValue()).
|
|
copy constructor
|
|
check the specified measurement unit for validity. The isValid() method in class DSRCodedEntryValue is used for this purpose.
|
|
check the specified numeric value for validity. Currently the only check that is performed is that the string is not empty. Later on it might be checked whether the format conforms to the definition of DS.
|
|
check the specified numeric value qualifier for validity. The isEmpty() and isValid() methods in class DSRCodedEntryValue are used for this purpose. The conformance with the Context Group 42 (as defined in the DICOM standard) is not yet checked.
|
|
clear all internal variables. Use this method to create an empty numeric measurement value. Reimplemented in DSRNumTreeNode. |
|
get copy of measurement unit
|
|
get measurement unit
Definition at line 205 of file dsrnumvl.h. References MeasurementUnit. |
|
get numeric value
Definition at line 197 of file dsrnumvl.h. References NumericValue. |
|
get numeric value qualifier (optional)
Definition at line 213 of file dsrnumvl.h. References ValueQualifier. |
|
get copy of numeric measurement value
|
|
get reference to numeric measurement value
Definition at line 183 of file dsrnumvl.h. |
|
get pointer to numeric measurement value
Definition at line 292 of file dsrnumvl.h. |
|
check whether the current numeric measurement value is empty. Checks whether both the numeric value and the measurement unit are empty.
|
|
check whether the current numeric measurement value is valid. The value is valid if isEmpty() is true or all three values (numeric value, measurement unit and value qualifier) do contain valid values (see checkXXX() methods).
Reimplemented in DSRNumTreeNode. |
|
assignment operator
|
|
print numeric measurement value. The output of a typical numeric measurement value looks like this: "3" (cm,99_OFFIS_DCMTK,"Length Unit"). If the value is empty the text "empty" is printed instead. The numeric value qualifier is never printed.
Reimplemented in DSRNumTreeNode. |
|
read numeric measurement value from dataset
|
|
read measured value sequence and numeric value qualifier code sequence from dataset. The number of items within the sequences is checked. If error/warning output are enabled a warning message is printed if a sequence is absent or contains more than one item.
|
|
read numeric measurement value from XML document
|
|
render numeric measurement value in HTML format
|
|
set measurement unit. Before setting the code it is checked (see checkMeasurementUnit()). If the code is invalid the current code is not replaced and remains unchanged.
|
|
set numeric value. Before setting the value it is checked (see checkNumericValue()). If the value is invalid the current value is not replaced and remains unchanged.
|
|
set numeric value qualifier. This optional code specifies the qualification of the Numeric Value in the Measured Value Sequence, or the reason for the absence of the Measured Value Sequence Item. Before setting the code it is checked (see checkNumericValueQualifier()). If the code is invalid the current code is not replaced and remains unchanged.
|
|
set numeric value, measurement unit and numeric value qualifier. Before setting the values they are checked (see checkXXX()). If one of the three values is invalid the current numeric measurement value is not replaced and remains unchanged.
|
|
set numeric value and measurement unit. Before setting the values they are checked (see checkXXX()). If the value pair is invalid the current value pair is not replaced and remains unchanged.
|
|
set numeric measurement value. Before setting the value it is checked (see checkXXX()). If the value is invalid the current value is not replaced and remains unchanged.
|
|
check if this value contains non-ASCII characters.
|
|
write numeric measurement value to dataset
|
|
write measured value sequence and numeric value qualifier code sequence to dataset. The measured value sequence is always written (might be empty, though). The numeric value qualifier code sequence is optional and, therefore, only written if non-empty.
|
|
write numeric measurement value in XML format
Reimplemented in DSRNumTreeNode. |