Inheritance diagram for DcmCodeString:

Public Member Functions | |
| DcmCodeString (const DcmTag &tag, const Uint32 len=0) | |
| constructor. | |
| DcmCodeString (const DcmCodeString &old) | |
| copy constructor | |
| virtual | ~DcmCodeString () |
| destructor | |
| DcmCodeString & | operator= (const DcmCodeString &obj) |
| assignment operator | |
| virtual DcmObject * | clone () const |
| clone method | |
| virtual DcmEVR | ident () const |
| get element type identifier | |
| virtual OFCondition | getOFString (OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue) |
| get a copy of a particular string component | |
Static Public Member Functions | |
| static OFBool | checkVR (const OFString &value, size_t *pos=NULL, const OFBool checkLength=OFTrue) |
| check whether given value conforms to value representation CS (Code String). | |
Definition at line 45 of file dcvrcs.h.
| DcmCodeString::DcmCodeString | ( | 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 |
Referenced by clone().
| DcmCodeString::DcmCodeString | ( | const DcmCodeString & | old | ) |
copy constructor
| old | element to be copied |
| DcmCodeString& DcmCodeString::operator= | ( | const DcmCodeString & | obj | ) |
assignment operator
| obj | element to be assigned/copied |
| virtual DcmObject* DcmCodeString::clone | ( | ) | const [inline, virtual] |
clone method
Reimplemented from DcmByteString.
Definition at line 77 of file dcvrcs.h.
References DcmCodeString().
| virtual DcmEVR DcmCodeString::ident | ( | ) | const [virtual] |
get element type identifier
Reimplemented from DcmByteString.
| virtual OFCondition DcmCodeString::getOFString | ( | OFString & | stringVal, | |
| const unsigned long | pos, | |||
| OFBool | normalize = OFTrue | |||
| ) | [virtual] |
get a copy of a particular string component
| stringVal | variable in which the result value is stored | |
| pos | index of the value in case of multi-valued elements (0..vm-1) | |
| normalize | delete leading and trailing spaces if OFTrue |
Reimplemented from DcmByteString.
| static OFBool DcmCodeString::checkVR | ( | const OFString & | value, | |
| size_t * | pos = NULL, |
|||
| const OFBool | checkLength = OFTrue | |||
| ) | [static] |
check whether given value conforms to value representation CS (Code String).
Valid characters are: A-Z, 0-9, _ and ' ' (space). The maximum length is 16.
| value | string value to be checked | |
| pos | returns index of first invalid character (0..n-1) if not NULL. Points to trailing zero byte (eos) if value is valid. | |
| checkLength | check maximum length if OFTrue, ignore length if OFFalse |