DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Attributes
DcmUnsignedLongOffset Class Reference

a class used for DICOMDIR byte offsets More...

+ Inheritance diagram for DcmUnsignedLongOffset:

List of all members.

Public Member Functions

 DcmUnsignedLongOffset (const DcmTag &tag, const Uint32 len=0)
 constructor.
 DcmUnsignedLongOffset (const DcmUnsignedLongOffset &old)
 copy constructor
virtual ~DcmUnsignedLongOffset ()
 destructor
DcmUnsignedLongOffsetoperator= (const DcmUnsignedLongOffset &)
 assignment operator.
virtual DcmObjectclone () 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 DcmObjectgetNextRecord ()
 get stored object reference
virtual DcmObjectsetNextRecord (DcmObject *record)
 set stored object reference
virtual OFCondition verify (const OFBool autocorrect=OFFalse)
 check the currently stored element value

Private Attributes

DcmObjectnextRecord
 pointer to the referenced object. NULL means that no object is referenced.

Detailed Description

a class used for DICOMDIR byte offsets


Constructor & Destructor Documentation

DcmUnsignedLongOffset::DcmUnsignedLongOffset ( const DcmTag tag,
const Uint32  len = 0 
)

constructor.

Create new element from given tag and length.

Parameters:
tagDICOM tag for the new element
lenvalue length for the new element

copy constructor

Parameters:
oldelement to be copied

Member Function Documentation

clear the currently stored value

Returns:
status, EC_Normal if successful, an error code otherwise

Reimplemented from DcmElement.

virtual DcmObject* DcmUnsignedLongOffset::clone ( ) const [inline, virtual]

clone method

Returns:
deep copy of this object

Reimplemented from DcmUnsignedLong.

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.

Parameters:
rhs- [in] The instance to copy from. Has to be of the same class type as "this" object
Returns:
EC_Normal if copying was successful, error otherwise

Reimplemented from DcmUnsignedLong.

get stored object reference

Returns:
pointer to the currently referenced object (might be NULL)
virtual DcmEVR DcmUnsignedLongOffset::ident ( ) const [virtual]

get element type identifier

Returns:
type identifier of this class (internal type: EVR_up)

Reimplemented from DcmUnsignedLong.

DcmUnsignedLongOffset& DcmUnsignedLongOffset::operator= ( const DcmUnsignedLongOffset )

assignment operator.

Parameters:
theoffset to be copied
virtual DcmObject* DcmUnsignedLongOffset::setNextRecord ( DcmObject record) [virtual]

set stored object reference

Parameters:
recordpointer to the object to be referenced
Returns:
pointer to the newly referenced object (might be NULL)
virtual OFCondition DcmUnsignedLongOffset::verify ( const OFBool  autocorrect = OFFalse) [virtual]

check the currently stored element value

Parameters:
autocorrectcorrect value length if OFTrue
Returns:
status, EC_Normal if value length is correct, an error code otherwise

Reimplemented from DcmUnsignedLong.


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