DCMTK  Version 3.6.1 20131114
OFFIS DICOM Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Private Attributes | List of all members
DRTContentItemModifierSequence::Item Class Reference

Item class. More...

+ Inheritance diagram for DRTContentItemModifierSequence::Item:
+ Collaboration diagram for DRTContentItemModifierSequence::Item:

Public Member Functions

 Item (const OFBool emptyDefaultItem=OFFalse)
 (default) constructor More...
 
 Item (const Item &copy)
 copy constructor More...
 
virtual ~Item ()
 destructor
 
Itemoperator= (const Item &copy)
 assigment operator More...
 
void clear ()
 clear all internal member variables
 
OFBool isEmpty ()
 check if item is empty More...
 
OFBool isValid () const
 check if item is valid, i.e. not the empty default item More...
 
OFCondition read (DcmItem &item)
 read elements from sequence item More...
 
OFCondition write (DcmItem &item)
 write elements to sequence item More...
 
OFCondition getDate (OFString &value, const signed long pos=0) const
 get Date (0040,a121) More...
 
OFCondition getDateTime (OFString &value, const signed long pos=0) const
 get DateTime (0040,a120) More...
 
OFCondition getNumericValue (OFString &value, const signed long pos=0) const
 get NumericValue (0040,a30a) More...
 
OFCondition getNumericValue (Float64 &value, const unsigned long pos=0) const
 get NumericValue (0040,a30a) More...
 
OFCondition getNumericValue (OFVector< Float64 > &value) const
 get NumericValue (0040,a30a) More...
 
OFCondition getPersonName (OFString &value, const signed long pos=0) const
 get PersonName (0040,a123) More...
 
OFCondition getTextValue (OFString &value, const signed long pos=0) const
 get TextValue (0040,a160) More...
 
OFCondition getTime (OFString &value, const signed long pos=0) const
 get Time (0040,a122) More...
 
OFCondition getUID (OFString &value, const signed long pos=0) const
 get UID (0040,a124) More...
 
OFCondition getValueType (OFString &value, const signed long pos=0) const
 get ValueType (0040,a040) More...
 
DRTConceptCodeSequencegetConceptCodeSequence ()
 get ConceptCodeSequence (0040,a168) More...
 
const DRTConceptCodeSequencegetConceptCodeSequence () const
 get ConceptCodeSequence (0040,a168) More...
 
DRTConceptNameCodeSequencegetConceptNameCodeSequence ()
 get ConceptNameCodeSequence (0040,a043) More...
 
const DRTConceptNameCodeSequencegetConceptNameCodeSequence () const
 get ConceptNameCodeSequence (0040,a043) More...
 
DRTMeasurementUnitsCodeSequencegetMeasurementUnitsCodeSequence ()
 get MeasurementUnitsCodeSequence (0040,08ea) More...
 
const
DRTMeasurementUnitsCodeSequence
getMeasurementUnitsCodeSequence () const
 get MeasurementUnitsCodeSequence (0040,08ea) More...
 
OFCondition setDate (const OFString &value, const OFBool check=OFTrue)
 set Date (0040,a121) More...
 
OFCondition setDateTime (const OFString &value, const OFBool check=OFTrue)
 set DateTime (0040,a120) More...
 
OFCondition setNumericValue (const OFString &value, const OFBool check=OFTrue)
 set NumericValue (0040,a30a) More...
 
OFCondition setPersonName (const OFString &value, const OFBool check=OFTrue)
 set PersonName (0040,a123) More...
 
OFCondition setTextValue (const OFString &value, const OFBool check=OFTrue)
 set TextValue (0040,a160) More...
 
OFCondition setTime (const OFString &value, const OFBool check=OFTrue)
 set Time (0040,a122) More...
 
OFCondition setUID (const OFString &value, const OFBool check=OFTrue)
 set UID (0040,a124) More...
 
OFCondition setValueType (const OFString &value, const OFBool check=OFTrue)
 set ValueType (0040,a040) More...
 

Private Attributes

OFBool EmptyDefaultItem
 internal flag used to mark the empty default item
 
DRTConceptCodeSequence ConceptCodeSequence
 ConceptCodeSequence (0040,a168) vr=SQ, vm=1, type=1C.
 
DRTConceptNameCodeSequence ConceptNameCodeSequence
 ConceptNameCodeSequence (0040,a043) vr=SQ, vm=1, type=1.
 
DcmDate Date
 Date (0040,a121) vr=DA, vm=1, type=1C.
 
DcmDateTime DateTime
 DateTime (0040,a120) vr=DT, vm=1, type=1C.
 
DRTMeasurementUnitsCodeSequence MeasurementUnitsCodeSequence
 MeasurementUnitsCodeSequence (0040,08ea) vr=SQ, vm=1, type=1C.
 
DcmDecimalString NumericValue
 NumericValue (0040,a30a) vr=DS, vm=1-n, type=1C.
 
DcmPersonName PersonName
 PersonName (0040,a123) vr=PN, vm=1, type=1C.
 
DcmUnlimitedText TextValue
 TextValue (0040,a160) vr=UT, vm=1, type=1C.
 
DcmTime Time
 Time (0040,a122) vr=TM, vm=1, type=1C.
 
DcmUniqueIdentifier UID
 UID (0040,a124) vr=UI, vm=1, type=1C.
 
DcmCodeString ValueType
 ValueType (0040,a040) vr=CS, vm=1, type=1.
 

Additional Inherited Members

- Protected Member Functions inherited from DRTTypes
virtual ~DRTTypes ()
 destructor. More...
 
- Static Protected Member Functions inherited from DRTTypes
static OFCondition addElementToDataset (OFCondition &result, DcmItem &dataset, DcmElement *element, const OFString &vm, const OFString &type, const char *moduleName=NULL)
 add given element to the dataset. More...
 
static OFCondition getElementFromDataset (DcmItem &dataset, DcmElement &element)
 get element from dataset More...
 
static OFCondition getStringValueFromElement (const DcmElement &element, OFString &stringValue, const signed long pos=0)
 get string value from element More...
 
static OFCondition getStringValueFromDataset (DcmItem &dataset, const DcmTagKey &tagKey, OFString &stringValue)
 get string value from dataset More...
 
static OFCondition putStringValueToDataset (DcmItem &dataset, const DcmTag &tag, const OFString &stringValue, const OFBool allowEmpty=OFTrue)
 put string value to dataset More...
 
static OFBool checkElementValue (DcmElement &element, const OFString &vm, const OFString &type, const OFCondition &searchCond=EC_Normal, const char *moduleName=NULL)
 check element value for correct value multiplicity and type More...
 
static OFCondition getAndCheckElementFromDataset (DcmItem &dataset, DcmElement &element, const OFString &vm, const OFString &type, const char *moduleName=NULL)
 get element from dataset and check it for correct value multiplicity and type. More...
 
static OFCondition getAndCheckStringValueFromDataset (DcmItem &dataset, const DcmTagKey &tagKey, OFString &stringValue, const OFString &vm, const OFString &type, const char *moduleName=NULL)
 get string value from dataset and check it for correct value multiplicity and type. More...
 

Detailed Description

Item class.

Constructor & Destructor Documentation

DRTContentItemModifierSequence::Item::Item ( const OFBool  emptyDefaultItem = OFFalse)

(default) constructor

Parameters
emptyDefaultItemflag used to mark the empty default item
DRTContentItemModifierSequence::Item::Item ( const Item copy)

copy constructor

Parameters
copyitem object to be copied

Member Function Documentation

DRTConceptCodeSequence& DRTContentItemModifierSequence::Item::getConceptCodeSequence ( )
inline

get ConceptCodeSequence (0040,a168)

Returns
reference to sequence element
const DRTConceptCodeSequence& DRTContentItemModifierSequence::Item::getConceptCodeSequence ( ) const
inline

get ConceptCodeSequence (0040,a168)

Returns
const reference to sequence element
DRTConceptNameCodeSequence& DRTContentItemModifierSequence::Item::getConceptNameCodeSequence ( )
inline

get ConceptNameCodeSequence (0040,a043)

Returns
reference to sequence element
const DRTConceptNameCodeSequence& DRTContentItemModifierSequence::Item::getConceptNameCodeSequence ( ) const
inline

get ConceptNameCodeSequence (0040,a043)

Returns
const reference to sequence element
OFCondition DRTContentItemModifierSequence::Item::getDate ( OFString value,
const signed long  pos = 0 
) const

get Date (0040,a121)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getDateTime ( OFString value,
const signed long  pos = 0 
) const

get DateTime (0040,a120)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
DRTMeasurementUnitsCodeSequence& DRTContentItemModifierSequence::Item::getMeasurementUnitsCodeSequence ( )
inline

get MeasurementUnitsCodeSequence (0040,08ea)

Returns
reference to sequence element
const DRTMeasurementUnitsCodeSequence& DRTContentItemModifierSequence::Item::getMeasurementUnitsCodeSequence ( ) const
inline

get MeasurementUnitsCodeSequence (0040,08ea)

Returns
const reference to sequence element
OFCondition DRTContentItemModifierSequence::Item::getNumericValue ( OFString value,
const signed long  pos = 0 
) const

get NumericValue (0040,a30a)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getNumericValue ( Float64 &  value,
const unsigned long  pos = 0 
) const

get NumericValue (0040,a30a)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1)
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getNumericValue ( OFVector< Float64 > &  value) const

get NumericValue (0040,a30a)

Parameters
valuereference to variable in which the value(s) should be stored
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getPersonName ( OFString value,
const signed long  pos = 0 
) const

get PersonName (0040,a123)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getTextValue ( OFString value,
const signed long  pos = 0 
) const

get TextValue (0040,a160)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getTime ( OFString value,
const signed long  pos = 0 
) const

get Time (0040,a122)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getUID ( OFString value,
const signed long  pos = 0 
) const

get UID (0040,a124)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::getValueType ( OFString value,
const signed long  pos = 0 
) const

get ValueType (0040,a040)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise
OFBool DRTContentItemModifierSequence::Item::isEmpty ( )

check if item is empty

Returns
OFTrue if item is empty, OFFalse otherwise
OFBool DRTContentItemModifierSequence::Item::isValid ( ) const

check if item is valid, i.e. not the empty default item

Returns
OFTrue if item is valid, OFFalse otherwise
Item& DRTContentItemModifierSequence::Item::operator= ( const Item copy)

assigment operator

Parameters
copyitem object to be copied
OFCondition DRTContentItemModifierSequence::Item::read ( DcmItem item)

read elements from sequence item

Parameters
itemreference to DICOM sequence item from which the elements should be read
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setDate ( const OFString value,
const OFBool  check = OFTrue 
)

set Date (0040,a121)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (DA) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setDateTime ( const OFString value,
const OFBool  check = OFTrue 
)

set DateTime (0040,a120)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (DT) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setNumericValue ( const OFString value,
const OFBool  check = OFTrue 
)

set NumericValue (0040,a30a)

Parameters
valuevalue to be set (possibly multi-valued) or "" for no value
checkcheck 'value' for conformance with VR (DS) and VM (1-n) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setPersonName ( const OFString value,
const OFBool  check = OFTrue 
)

set PersonName (0040,a123)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (PN) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setTextValue ( const OFString value,
const OFBool  check = OFTrue 
)

set TextValue (0040,a160)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (UT) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setTime ( const OFString value,
const OFBool  check = OFTrue 
)

set Time (0040,a122)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (TM) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setUID ( const OFString value,
const OFBool  check = OFTrue 
)

set UID (0040,a124)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (UI) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::setValueType ( const OFString value,
const OFBool  check = OFTrue 
)

set ValueType (0040,a040)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (CS) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise
OFCondition DRTContentItemModifierSequence::Item::write ( DcmItem item)

write elements to sequence item

Parameters
itemreference to DICOM sequence item to which the elements should be written
Returns
status, EC_Normal if successful, an error code otherwise

The documentation for this class was generated from the following file:


Generated on Tue Nov 26 2013 for DCMTK Version 3.6.1 20131114 by Doxygen 1.8.5