DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Attributes
DRTSourceSequence::Item Class Reference

Item class. More...

+ Inheritance diagram for DRTSourceSequence::Item:

List of all members.

Public Member Functions

 Item (const OFBool emptyDefaultItem=OFFalse)
 (default) constructor
 Item (const Item &copy)
 copy constructor
virtual ~Item ()
 destructor
Itemoperator= (const Item &copy)
 assigment operator
void clear ()
 clear all internal member variables
OFBool isEmpty ()
 check if item is empty
OFBool isValid () const
 check if item is valid, i.e. not the empty default item
OFCondition read (DcmItem &item)
 read elements from sequence item
OFCondition write (DcmItem &item)
 write elements to sequence item
OFCondition getActiveSourceDiameter (OFString &value, const signed long pos=0) const
 get ActiveSourceDiameter (300a,0218)
OFCondition getActiveSourceDiameter (Float64 &value, const unsigned long pos=0) const
 get ActiveSourceDiameter (300a,0218)
OFCondition getActiveSourceLength (OFString &value, const signed long pos=0) const
 get ActiveSourceLength (300a,021a)
OFCondition getActiveSourceLength (Float64 &value, const unsigned long pos=0) const
 get ActiveSourceLength (300a,021a)
OFCondition getMaterialID (OFString &value, const signed long pos=0) const
 get MaterialID (300a,00e1)
OFCondition getReferenceAirKermaRate (OFString &value, const signed long pos=0) const
 get ReferenceAirKermaRate (300a,022a)
OFCondition getReferenceAirKermaRate (Float64 &value, const unsigned long pos=0) const
 get ReferenceAirKermaRate (300a,022a)
OFCondition getSourceEncapsulationNominalThickness (OFString &value, const signed long pos=0) const
 get SourceEncapsulationNominalThickness (300a,0222)
OFCondition getSourceEncapsulationNominalThickness (Float64 &value, const unsigned long pos=0) const
 get SourceEncapsulationNominalThickness (300a,0222)
OFCondition getSourceEncapsulationNominalTransmission (OFString &value, const signed long pos=0) const
 get SourceEncapsulationNominalTransmission (300a,0224)
OFCondition getSourceEncapsulationNominalTransmission (Float64 &value, const unsigned long pos=0) const
 get SourceEncapsulationNominalTransmission (300a,0224)
OFCondition getSourceIsotopeHalfLife (OFString &value, const signed long pos=0) const
 get SourceIsotopeHalfLife (300a,0228)
OFCondition getSourceIsotopeHalfLife (Float64 &value, const unsigned long pos=0) const
 get SourceIsotopeHalfLife (300a,0228)
OFCondition getSourceIsotopeName (OFString &value, const signed long pos=0) const
 get SourceIsotopeName (300a,0226)
OFCondition getSourceManufacturer (OFString &value, const signed long pos=0) const
 get SourceManufacturer (300a,0216)
OFCondition getSourceNumber (OFString &value, const signed long pos=0) const
 get SourceNumber (300a,0212)
OFCondition getSourceNumber (Sint32 &value, const unsigned long pos=0) const
 get SourceNumber (300a,0212)
OFCondition getSourceStrength (OFString &value, const signed long pos=0) const
 get SourceStrength (300a,022b)
OFCondition getSourceStrength (Float64 &value, const unsigned long pos=0) const
 get SourceStrength (300a,022b)
OFCondition getSourceStrengthReferenceDate (OFString &value, const signed long pos=0) const
 get SourceStrengthReferenceDate (300a,022c)
OFCondition getSourceStrengthReferenceTime (OFString &value, const signed long pos=0) const
 get SourceStrengthReferenceTime (300a,022e)
OFCondition getSourceStrengthUnits (OFString &value, const signed long pos=0) const
 get SourceStrengthUnits (300a,0229)
OFCondition getSourceType (OFString &value, const signed long pos=0) const
 get SourceType (300a,0214)
OFCondition setActiveSourceDiameter (const OFString &value, const OFBool check=OFTrue)
 set ActiveSourceDiameter (300a,0218)
OFCondition setActiveSourceLength (const OFString &value, const OFBool check=OFTrue)
 set ActiveSourceLength (300a,021a)
OFCondition setMaterialID (const OFString &value, const OFBool check=OFTrue)
 set MaterialID (300a,00e1)
OFCondition setReferenceAirKermaRate (const OFString &value, const OFBool check=OFTrue)
 set ReferenceAirKermaRate (300a,022a)
OFCondition setSourceEncapsulationNominalThickness (const OFString &value, const OFBool check=OFTrue)
 set SourceEncapsulationNominalThickness (300a,0222)
OFCondition setSourceEncapsulationNominalTransmission (const OFString &value, const OFBool check=OFTrue)
 set SourceEncapsulationNominalTransmission (300a,0224)
OFCondition setSourceIsotopeHalfLife (const OFString &value, const OFBool check=OFTrue)
 set SourceIsotopeHalfLife (300a,0228)
OFCondition setSourceIsotopeName (const OFString &value, const OFBool check=OFTrue)
 set SourceIsotopeName (300a,0226)
OFCondition setSourceManufacturer (const OFString &value, const OFBool check=OFTrue)
 set SourceManufacturer (300a,0216)
OFCondition setSourceNumber (const OFString &value, const OFBool check=OFTrue)
 set SourceNumber (300a,0212)
OFCondition setSourceStrength (const OFString &value, const OFBool check=OFTrue)
 set SourceStrength (300a,022b)
OFCondition setSourceStrengthReferenceDate (const OFString &value, const OFBool check=OFTrue)
 set SourceStrengthReferenceDate (300a,022c)
OFCondition setSourceStrengthReferenceTime (const OFString &value, const OFBool check=OFTrue)
 set SourceStrengthReferenceTime (300a,022e)
OFCondition setSourceStrengthUnits (const OFString &value, const OFBool check=OFTrue)
 set SourceStrengthUnits (300a,0229)
OFCondition setSourceType (const OFString &value, const OFBool check=OFTrue)
 set SourceType (300a,0214)

Private Attributes

OFBool EmptyDefaultItem
 internal flag used to mark the empty default item
DcmDecimalString ActiveSourceDiameter
 ActiveSourceDiameter (300a,0218) vr=DS, vm=1, type=3.
DcmDecimalString ActiveSourceLength
 ActiveSourceLength (300a,021a) vr=DS, vm=1, type=3.
DcmShortString MaterialID
 MaterialID (300a,00e1) vr=SH, vm=1, type=3.
DcmDecimalString ReferenceAirKermaRate
 ReferenceAirKermaRate (300a,022a) vr=DS, vm=1, type=1.
DcmDecimalString SourceEncapsulationNominalThickness
 SourceEncapsulationNominalThickness (300a,0222) vr=DS, vm=1, type=3.
DcmDecimalString SourceEncapsulationNominalTransmission
 SourceEncapsulationNominalTransmission (300a,0224) vr=DS, vm=1, type=3.
DcmDecimalString SourceIsotopeHalfLife
 SourceIsotopeHalfLife (300a,0228) vr=DS, vm=1, type=1.
DcmLongString SourceIsotopeName
 SourceIsotopeName (300a,0226) vr=LO, vm=1, type=1.
DcmLongString SourceManufacturer
 SourceManufacturer (300a,0216) vr=LO, vm=1, type=3.
DcmIntegerString SourceNumber
 SourceNumber (300a,0212) vr=IS, vm=1, type=1.
DcmDecimalString SourceStrength
 SourceStrength (300a,022b) vr=DS, vm=1, type=1C.
DcmDate SourceStrengthReferenceDate
 SourceStrengthReferenceDate (300a,022c) vr=DA, vm=1, type=1.
DcmTime SourceStrengthReferenceTime
 SourceStrengthReferenceTime (300a,022e) vr=TM, vm=1, type=1.
DcmCodeString SourceStrengthUnits
 SourceStrengthUnits (300a,0229) vr=CS, vm=1, type=1C.
DcmCodeString SourceType
 SourceType (300a,0214) vr=CS, vm=1, type=1.

Detailed Description

Item class.


Constructor & Destructor Documentation

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

(default) constructor

Parameters:
emptyDefaultItemflag used to mark the empty default item

copy constructor

Parameters:
copyitem object to be copied

Member Function Documentation

OFCondition DRTSourceSequence::Item::getActiveSourceDiameter ( OFString value,
const signed long  pos = 0 
) const

get ActiveSourceDiameter (300a,0218)

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 DRTSourceSequence::Item::getActiveSourceDiameter ( Float64 &  value,
const unsigned long  pos = 0 
) const

get ActiveSourceDiameter (300a,0218)

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 DRTSourceSequence::Item::getActiveSourceLength ( OFString value,
const signed long  pos = 0 
) const

get ActiveSourceLength (300a,021a)

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 DRTSourceSequence::Item::getActiveSourceLength ( Float64 &  value,
const unsigned long  pos = 0 
) const

get ActiveSourceLength (300a,021a)

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 DRTSourceSequence::Item::getMaterialID ( OFString value,
const signed long  pos = 0 
) const

get MaterialID (300a,00e1)

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 DRTSourceSequence::Item::getReferenceAirKermaRate ( OFString value,
const signed long  pos = 0 
) const

get ReferenceAirKermaRate (300a,022a)

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 DRTSourceSequence::Item::getReferenceAirKermaRate ( Float64 &  value,
const unsigned long  pos = 0 
) const

get ReferenceAirKermaRate (300a,022a)

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 DRTSourceSequence::Item::getSourceEncapsulationNominalThickness ( OFString value,
const signed long  pos = 0 
) const

get SourceEncapsulationNominalThickness (300a,0222)

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 DRTSourceSequence::Item::getSourceEncapsulationNominalThickness ( Float64 &  value,
const unsigned long  pos = 0 
) const

get SourceEncapsulationNominalThickness (300a,0222)

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

get SourceEncapsulationNominalTransmission (300a,0224)

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 DRTSourceSequence::Item::getSourceEncapsulationNominalTransmission ( Float64 &  value,
const unsigned long  pos = 0 
) const

get SourceEncapsulationNominalTransmission (300a,0224)

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 DRTSourceSequence::Item::getSourceIsotopeHalfLife ( OFString value,
const signed long  pos = 0 
) const

get SourceIsotopeHalfLife (300a,0228)

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 DRTSourceSequence::Item::getSourceIsotopeHalfLife ( Float64 &  value,
const unsigned long  pos = 0 
) const

get SourceIsotopeHalfLife (300a,0228)

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 DRTSourceSequence::Item::getSourceIsotopeName ( OFString value,
const signed long  pos = 0 
) const

get SourceIsotopeName (300a,0226)

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 DRTSourceSequence::Item::getSourceManufacturer ( OFString value,
const signed long  pos = 0 
) const

get SourceManufacturer (300a,0216)

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 DRTSourceSequence::Item::getSourceNumber ( OFString value,
const signed long  pos = 0 
) const

get SourceNumber (300a,0212)

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 DRTSourceSequence::Item::getSourceNumber ( Sint32 &  value,
const unsigned long  pos = 0 
) const

get SourceNumber (300a,0212)

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 DRTSourceSequence::Item::getSourceStrength ( OFString value,
const signed long  pos = 0 
) const

get SourceStrength (300a,022b)

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 DRTSourceSequence::Item::getSourceStrength ( Float64 &  value,
const unsigned long  pos = 0 
) const

get SourceStrength (300a,022b)

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 DRTSourceSequence::Item::getSourceStrengthReferenceDate ( OFString value,
const signed long  pos = 0 
) const

get SourceStrengthReferenceDate (300a,022c)

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 DRTSourceSequence::Item::getSourceStrengthReferenceTime ( OFString value,
const signed long  pos = 0 
) const

get SourceStrengthReferenceTime (300a,022e)

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 DRTSourceSequence::Item::getSourceStrengthUnits ( OFString value,
const signed long  pos = 0 
) const

get SourceStrengthUnits (300a,0229)

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 DRTSourceSequence::Item::getSourceType ( OFString value,
const signed long  pos = 0 
) const

get SourceType (300a,0214)

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

check if item is empty

Returns:
OFTrue if item is empty, OFFalse otherwise

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

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

assigment operator

Parameters:
copyitem object to be copied

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 DRTSourceSequence::Item::setActiveSourceDiameter ( const OFString value,
const OFBool  check = OFTrue 
)

set ActiveSourceDiameter (300a,0218)

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

set ActiveSourceLength (300a,021a)

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

set MaterialID (300a,00e1)

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

set ReferenceAirKermaRate (300a,022a)

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

set SourceEncapsulationNominalThickness (300a,0222)

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

set SourceEncapsulationNominalTransmission (300a,0224)

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

set SourceIsotopeHalfLife (300a,0228)

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

set SourceIsotopeName (300a,0226)

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

set SourceManufacturer (300a,0216)

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

set SourceNumber (300a,0212)

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

set SourceStrength (300a,022b)

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

set SourceStrengthReferenceDate (300a,022c)

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 DRTSourceSequence::Item::setSourceStrengthReferenceTime ( const OFString value,
const OFBool  check = OFTrue 
)

set SourceStrengthReferenceTime (300a,022e)

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 DRTSourceSequence::Item::setSourceStrengthUnits ( const OFString value,
const OFBool  check = OFTrue 
)

set SourceStrengthUnits (300a,0229)

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 DRTSourceSequence::Item::setSourceType ( const OFString value,
const OFBool  check = OFTrue 
)

set SourceType (300a,0214)

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

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 May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027