Inheritance diagram for DcmByteString:
Public Member Functions | |
DcmByteString (const DcmTag &tag, const Uint32 len=0) | |
constructor. | |
DcmByteString (const DcmByteString &old) | |
copy constructor | |
virtual | ~DcmByteString () |
destructor | |
DcmByteString & | operator= (const DcmByteString &obj) |
assignment operator | |
virtual DcmObject * | clone () const |
clone method | |
virtual DcmEVR | ident () const |
get element type identifier | |
virtual OFCondition | clear () |
clear the currently stored value | |
virtual unsigned long | getVM () |
get value multiplicity | |
Uint32 | getRealLength () |
get length of the stored value. | |
virtual Uint32 | getLength (const E_TransferSyntax xfer=EXS_LittleEndianImplicit, const E_EncodingType enctype=EET_UndefinedLength) |
get DICOM length of the stored value. | |
virtual void | print (ostream &out, const size_t flags=0, const int level=0, const char *pixelFileName=NULL, size_t *pixelCounter=NULL) |
print element to a stream. | |
virtual OFCondition | write (DcmOutputStream &outStream, const E_TransferSyntax writeXfer, const E_EncodingType encodingType=EET_UndefinedLength) |
write data element to a stream | |
virtual OFCondition | writeSignatureFormat (DcmOutputStream &outStream, const E_TransferSyntax writeXfer, const E_EncodingType encodingType=EET_UndefinedLength) |
write data element to a stream as required for the creation of digital signatures | |
virtual OFCondition | getOFString (OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue) |
get a copy of a particular string component | |
virtual OFCondition | getString (char *&stringVal) |
get a pointer to the current string value. | |
virtual OFCondition | putString (const char *stringVal) |
set element value from the given character string | |
virtual OFCondition | putOFStringArray (const OFString &stringVal) |
set element value from the given character string. | |
virtual OFCondition | verify (const OFBool autocorrect=OFFalse) |
check the currently stored string value. | |
Protected Member Functions | |
virtual Uint8 * | newValueField () |
create a new value field (string buffer) of the previously defined size (member variable 'Length'). | |
virtual void | postLoadValue () |
method is called after the element value has been loaded. | |
virtual OFCondition | makeMachineByteString () |
convert currently stored string value to internal representation. | |
OFCondition | makeDicomByteString () |
convert currently stored string value to DICOM representation. | |
OFCondition | getStringValue (OFString &stringVal) |
get a copy of the current string value. | |
Protected Attributes | |
char | paddingChar |
padding character used to adjust odd value length (space) | |
Uint32 | maxLength |
maximum number of characters for each string component | |
Private Types | |
enum | E_StringMode { DCM_MachineString, DCM_DicomString, DCM_UnknownString } |
internal type used to specify the current string representation More... | |
Private Attributes | |
Uint32 | realLength |
number of characters of the internal string representation | |
E_StringMode | fStringMode |
current representation of the string value |
Definition at line 49 of file dcbytstr.h.
|
internal type used to specify the current string representation
Definition at line 54 of file dcbytstr.h. |
|
constructor. Create new element from given tag and length.
Referenced by clone(). |
|
copy constructor
|
|
clear the currently stored value
Reimplemented from DcmElement. Referenced by DVPSStoredPrint::clearInstanceUID(). |
|
clone method
Implements DcmObject. Reimplemented in DcmCharString, DcmApplicationEntity, DcmAgeString, DcmCodeString, DcmDate, DcmDecimalString, DcmDateTime, DcmIntegerString, DcmLongString, DcmLongText, DcmPersonName, DcmShortString, DcmShortText, DcmTime, DcmUniqueIdentifier, and DcmUnlimitedText. Definition at line 93 of file dcbytstr.h. References DcmByteString(). |
|
get DICOM length of the stored value. The string value is padded if required. Therefore, the returned length always has an even value.
Reimplemented from DcmElement. |
|
get a copy of a particular string component
Reimplemented from DcmElement. Reimplemented in DcmApplicationEntity, DcmCodeString, DcmDate, DcmDecimalString, DcmDateTime, DcmIntegerString, DcmLongString, DcmLongText, DcmPersonName, DcmShortString, DcmShortText, DcmTime, and DcmUnlimitedText. |
|
get length of the stored value. Trailing spaces (padding characters) are ignored for the "real" length.
|
|
get a pointer to the current string value. This includes all string components and separators. NB: this method does not copy the stored value.
Reimplemented from DcmElement. |
|
get a copy of the current string value. This includes all string components and separators.
|
|
get value multiplicity
Implements DcmObject. Reimplemented in DcmLongText, DcmShortText, and DcmUnlimitedText. |
|
get element type identifier
Implements DcmObject. Reimplemented in DcmApplicationEntity, DcmAgeString, DcmCodeString, DcmDate, DcmDecimalString, DcmDateTime, DcmIntegerString, DcmLongString, DcmLongText, DcmPersonName, DcmShortString, DcmShortText, DcmTime, and DcmUniqueIdentifier. |
|
convert currently stored string value to DICOM representation. It removes trailing spaces apart from a possibly required single padding character (in case of odd string length).
|
|
convert currently stored string value to internal representation. It removes any trailing space character and recomputes the string length.
Reimplemented in DcmUniqueIdentifier. |
|
create a new value field (string buffer) of the previously defined size (member variable 'Length'). Also handles odd value length by allocating extra space for the padding character. This method is used by derived classes only.
Reimplemented from DcmElement. |
|
assignment operator
|
|
method is called after the element value has been loaded. Can be used to correct the value before it is used for the first time. Reimplemented from DcmElement. |
|
print element to a stream. The output format of the value is a backslash separated sequence of string components (if any).
Implements DcmObject. Reimplemented in DcmUniqueIdentifier. |
|
set element value from the given character string.
Reimplemented from DcmElement. |
|
set element value from the given character string
Reimplemented from DcmElement. Reimplemented in DcmUniqueIdentifier. |
|
check the currently stored string value. Checks every string component for the maximum length specified for the particular value representation.
Implements DcmObject. |
|
write data element to a stream
Reimplemented from DcmElement. |
|
write data element to a stream as required for the creation of digital signatures
Reimplemented from DcmElement. |