DcmUnsignedLongOffset Class Reference

a class used for DICOMDIR byte offsets More...

Inheritance diagram for DcmUnsignedLongOffset:

DcmUnsignedLong DcmElement DcmObject 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

Definition at line 40 of file dcvrulup.h.


Constructor & Destructor Documentation

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

constructor.

Create new element from given tag and length.

Parameters:
tag DICOM tag for the new element
len value length for the new element

Referenced by clone().

DcmUnsignedLongOffset::DcmUnsignedLongOffset ( const DcmUnsignedLongOffset old  ) 

copy constructor

Parameters:
old element to be copied


Member Function Documentation

DcmUnsignedLongOffset& DcmUnsignedLongOffset::operator= ( const DcmUnsignedLongOffset  ) 

assignment operator.

Parameters:
the offset to be copied

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

clone method

Returns:
deep copy of this object

Reimplemented from DcmUnsignedLong.

Definition at line 71 of file dcvrulup.h.

References DcmUnsignedLongOffset().

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.

virtual DcmEVR DcmUnsignedLongOffset::ident (  )  const [virtual]

get element type identifier

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

Reimplemented from DcmUnsignedLong.

virtual OFCondition DcmUnsignedLongOffset::clear (  )  [virtual]

clear the currently stored value

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

Reimplemented from DcmElement.

virtual DcmObject* DcmUnsignedLongOffset::getNextRecord (  )  [virtual]

get stored object reference

Returns:
pointer to the currently referenced object (might be NULL)

virtual DcmObject* DcmUnsignedLongOffset::setNextRecord ( DcmObject record  )  [virtual]

set stored object reference

Parameters:
record pointer 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:
autocorrect correct 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 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1