Inheritance diagram for DcmCharString:
Public Member Functions | |
DcmCharString (const DcmTag &tag, const Uint32 len) | |
constructor. | |
DcmCharString (const DcmCharString &old) | |
copy constructor | |
virtual | ~DcmCharString () |
destructor | |
DcmCharString & | operator= (const DcmCharString &obj) |
assignment operator | |
virtual DcmObject * | clone () 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 |
Definition at line 53 of file dcchrstr.h.
DcmCharString::DcmCharString | ( | const DcmTag & | tag, | |
const Uint32 | len | |||
) |
constructor.
Create new element from given tag and length.
tag | DICOM tag for the new element | |
len | value length for the new element |
Referenced by clone().
DcmCharString::DcmCharString | ( | const DcmCharString & | old | ) |
copy constructor
old | element to be copied |
DcmCharString& DcmCharString::operator= | ( | const DcmCharString & | obj | ) |
assignment operator
obj | element to be assigned/copied |
virtual DcmObject* DcmCharString::clone | ( | ) | const [inline, virtual] |
clone method
Reimplemented from DcmByteString.
Reimplemented in DcmLongString, DcmLongText, DcmPersonName, DcmShortString, DcmShortText, and DcmUnlimitedText.
Definition at line 85 of file dcchrstr.h.
References DcmCharString().
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.
rhs | - [in] The instance to copy from. Has to be of the same class type as "this" object |
Reimplemented from DcmByteString.
Reimplemented in DcmLongString, DcmLongText, DcmPersonName, DcmShortString, DcmShortText, and DcmUnlimitedText.
virtual OFBool DcmCharString::containsExtendedCharacters | ( | const OFBool | checkAllStrings = OFFalse |
) | [virtual] |
check if this element contains non-ASCII characters
checkAllStrings | not used in this class |
Reimplemented from DcmByteString.
virtual OFBool DcmCharString::isAffectedBySpecificCharacterSet | ( | ) | const [virtual] |
check if this element is affected by SpecificCharacterSet
Reimplemented from DcmByteString.