DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
a class used for DICOMDIR byte offsets More...
Public Member Functions | |
DcmUnsignedLongOffset (const DcmTag &tag, const Uint32 len=0) | |
constructor. | |
DcmUnsignedLongOffset (const DcmUnsignedLongOffset &old) | |
copy constructor | |
virtual | ~DcmUnsignedLongOffset () |
destructor | |
DcmUnsignedLongOffset & | operator= (const DcmUnsignedLongOffset &) |
assignment operator. | |
virtual DcmObject * | clone () const |
clone method | |
virtual OFCondition | copyFrom (const DcmObject &rhs) |
Virtual object copying. | |
virtual DcmEVR | ident () const |
get element type identifier | |
virtual OFCondition | clear () |
clear the currently stored value | |
virtual DcmObject * | getNextRecord () |
get stored object reference | |
virtual DcmObject * | setNextRecord (DcmObject *record) |
set stored object reference | |
virtual OFCondition | verify (const OFBool autocorrect=OFFalse) |
check the currently stored element value | |
Private Attributes | |
DcmObject * | nextRecord |
pointer to the referenced object. NULL means that no object is referenced. |
a class used for DICOMDIR byte offsets
DcmUnsignedLongOffset::DcmUnsignedLongOffset | ( | const DcmTag & | tag, |
const Uint32 | len = 0 |
||
) |
constructor.
Create new element from given tag and length.
tag | DICOM tag for the new element |
len | value length for the new element |
copy constructor
old | element to be copied |
virtual OFCondition DcmUnsignedLongOffset::clear | ( | ) | [virtual] |
clear the currently stored value
Reimplemented from DcmElement.
virtual DcmObject* DcmUnsignedLongOffset::clone | ( | ) | const [inline, virtual] |
virtual OFCondition DcmUnsignedLongOffset::copyFrom | ( | const DcmObject & | rhs | ) | [virtual] |
Virtual object copying.
This method can be used for DcmObject and derived classes to get a deep copy of an object. Internally the assignment operator is called if the given DcmObject parameter is of the same type as "this" object instance. If not, an error is returned. This function permits copying an object by value in a virtual way which therefore is different to just calling the assignment operator of DcmElement which could result in slicing the object.
rhs | - [in] The instance to copy from. Has to be of the same class type as "this" object |
Reimplemented from DcmUnsignedLong.
virtual DcmObject* DcmUnsignedLongOffset::getNextRecord | ( | ) | [virtual] |
get stored object reference
virtual DcmEVR DcmUnsignedLongOffset::ident | ( | ) | const [virtual] |
get element type identifier
Reimplemented from DcmUnsignedLong.
DcmUnsignedLongOffset& DcmUnsignedLongOffset::operator= | ( | const DcmUnsignedLongOffset & | ) |
assignment operator.
the | offset to be copied |
virtual DcmObject* DcmUnsignedLongOffset::setNextRecord | ( | DcmObject * | record | ) | [virtual] |
set stored object reference
record | pointer to the object to be referenced |
virtual OFCondition DcmUnsignedLongOffset::verify | ( | const OFBool | autocorrect = OFFalse | ) | [virtual] |
check the currently stored element value
autocorrect | correct value length if OFTrue |
Reimplemented from DcmUnsignedLong.