OFFIS DCMTK Version 3.6.0
Public Member Functions
DcmCharString Class Reference

base class for DICOM elements with value representation LO, LT, PN, SH, ST, UT More...

Inheritance diagram for DcmCharString:
Inheritance graph
[legend]
Collaboration diagram for DcmCharString:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DcmCharString (const DcmTag &tag, const Uint32 len)
 constructor.
 DcmCharString (const DcmCharString &old)
 copy constructor
virtual ~DcmCharString ()
 destructor
DcmCharStringoperator= (const DcmCharString &obj)
 assignment operator
virtual DcmObjectclone () const
 clone method
virtual OFCondition copyFrom (const DcmObject &rhs)
 Virtual object copying.
virtual OFBool containsExtendedCharacters (const OFBool checkAllStrings=OFFalse)
 check if this element contains non-ASCII characters
virtual OFBool isAffectedBySpecificCharacterSet () const
 check if this element is affected by SpecificCharacterSet

Detailed Description

base class for DICOM elements with value representation LO, LT, PN, SH, ST, UT

Definition at line 53 of file dcchrstr.h.


Constructor & Destructor Documentation

DcmCharString::DcmCharString ( const DcmTag tag,
const Uint32  len 
)

constructor.

Create new element from given tag and length.

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

Referenced by clone().

DcmCharString::DcmCharString ( const DcmCharString old)

copy constructor

Parameters:
oldelement to be copied

Member Function Documentation

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

clone method

Returns:
deep copy of this object

Reimplemented from DcmByteString.

Reimplemented in DcmLongString, DcmLongText, DcmPersonName, DcmShortString, DcmShortText, and DcmUnlimitedText.

Definition at line 85 of file dcchrstr.h.

References DcmCharString().

virtual OFBool DcmCharString::containsExtendedCharacters ( const OFBool  checkAllStrings = OFFalse) [virtual]

check if this element contains non-ASCII characters

Parameters:
checkAllStringsnot used in this class
Returns:
true if element contains non-ASCII characters, false otherwise

Reimplemented from DcmByteString.

virtual OFCondition DcmCharString::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 DcmByteString.

Reimplemented in DcmLongString, DcmLongText, DcmPersonName, DcmShortString, DcmShortText, and DcmUnlimitedText.

virtual OFBool DcmCharString::isAffectedBySpecificCharacterSet ( ) const [virtual]

check if this element is affected by SpecificCharacterSet

Returns:
always returns true

Reimplemented from DcmByteString.

DcmCharString& DcmCharString::operator= ( const DcmCharString obj)

assignment operator

Parameters:
objelement to be assigned/copied
Returns:
reference to this object

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


Generated on Sat Jun 11 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.7.4