Inheritance diagram for DcmElement:
Public Member Functions | |
DcmElement (const DcmTag &tag, const Uint32 len=0) | |
constructor. | |
DcmElement (const DcmElement &old) | |
copy constructor | |
virtual | ~DcmElement () |
destructor | |
DcmElement & | operator= (const DcmElement &obj) |
assignment operator | |
virtual Uint32 | calcElementLength (const E_TransferSyntax xfer, const E_EncodingType enctype) |
virtual Uint32 | getLength (const E_TransferSyntax=EXS_LittleEndianImplicit, const E_EncodingType=EET_UndefinedLength) |
virtual OFBool | isLeaf () const |
OFBool | valueLoaded () |
virtual void | transferInit () |
virtual OFBool | canWriteXfer (const E_TransferSyntax newXfer, const E_TransferSyntax oldXfer) |
virtual OFCondition | read (DcmInputStream &inStream, const E_TransferSyntax ixfer, const E_GrpLenEncoding glenc=EGL_noChange, const Uint32 maxReadLength=DCM_MaxReadLength) |
This function reads the data value of an attribute which is captured in the input stream and captures this information in this. | |
virtual OFCondition | write (DcmOutputStream &outStream, const E_TransferSyntax oxfer, const E_EncodingType enctype=EET_UndefinedLength) |
This function writes this element's value to the outstream which was passed. | |
virtual OFCondition | writeXML (ostream &out, const size_t flags=0) |
write object in XML format | |
virtual OFCondition | writeSignatureFormat (DcmOutputStream &outStream, const E_TransferSyntax oxfer, const E_EncodingType enctype=EET_UndefinedLength) |
special write method for creation of digital signatures | |
virtual OFCondition | clear () |
virtual OFCondition | loadAllDataIntoMemory () |
virtual OFCondition | getUint8 (Uint8 &val, const unsigned long pos=0) |
virtual OFCondition | getSint16 (Sint16 &val, const unsigned long pos=0) |
virtual OFCondition | getUint16 (Uint16 &val, const unsigned long pos=0) |
virtual OFCondition | getSint32 (Sint32 &val, const unsigned long pos=0) |
virtual OFCondition | getUint32 (Uint32 &val, const unsigned long pos=0) |
virtual OFCondition | getFloat32 (Float32 &val, const unsigned long pos=0) |
virtual OFCondition | getFloat64 (Float64 &val, const unsigned long pos=0) |
virtual OFCondition | getTagVal (DcmTagKey &val, const unsigned long pos=0) |
virtual OFCondition | getOFString (OFString &str, const unsigned long pos, OFBool normalize=OFTrue) |
virtual OFCondition | getOFStringArray (OFString &value, OFBool normalize=OFTrue) |
get entire element value as a character string. | |
virtual OFCondition | getString (char *&val) |
virtual OFCondition | getUint8Array (Uint8 *&val) |
virtual OFCondition | getSint16Array (Sint16 *&val) |
virtual OFCondition | getUint16Array (Uint16 *&val) |
virtual OFCondition | getSint32Array (Sint32 *&val) |
virtual OFCondition | getUint32Array (Uint32 *&val) |
virtual OFCondition | getFloat32Array (Float32 *&val) |
virtual OFCondition | getFloat64Array (Float64 *&val) |
OFCondition | detachValueField (OFBool copy=OFFalse) |
virtual OFCondition | putOFStringArray (const OFString &stringValue) |
virtual OFCondition | putString (const char *val) |
virtual OFCondition | putSint16 (const Sint16 val, const unsigned long pos=0) |
virtual OFCondition | putUint16 (const Uint16 val, const unsigned long pos=0) |
virtual OFCondition | putSint32 (const Sint32 val, const unsigned long pos=0) |
virtual OFCondition | putUint32 (const Uint32 val, const unsigned long pos=0) |
virtual OFCondition | putFloat32 (const Float32 val, const unsigned long pos=0) |
virtual OFCondition | putFloat64 (const Float64 val, const unsigned long pos=0) |
virtual OFCondition | putTagVal (const DcmTagKey &attrTag, const unsigned long pos=0) |
virtual OFCondition | putUint8Array (const Uint8 *vals, const unsigned long num) |
virtual OFCondition | putSint16Array (const Sint16 *vals, const unsigned long num) |
virtual OFCondition | putUint16Array (const Uint16 *vals, const unsigned long num) |
virtual OFCondition | putSint32Array (const Sint32 *vals, const unsigned long num) |
virtual OFCondition | putUint32Array (const Uint32 *vals, const unsigned long num) |
virtual OFCondition | putFloat32Array (const Float32 *vals, const unsigned long num) |
virtual OFCondition | putFloat64Array (const Float64 *vals, const unsigned long num) |
Protected Member Functions | |
void * | getValue (const E_ByteOrder newByteOrder=gLocalByteOrder) |
This function returns this element's value. | |
OFCondition | changeValue (const void *value, const Uint32 position, const Uint32 num) |
OFCondition | putValue (const void *value, const Uint32 length) |
OFCondition | createEmptyValue (const Uint32 length) |
OFCondition | loadValue (DcmInputStream *inStream=NULL) |
This function reads the data value of an attribute and stores the information which was read in this. | |
virtual void | postLoadValue () |
virtual Uint8 * | newValueField () |
This function creates a byte array of Length bytes and returns this array. | |
void | swapValueField (size_t valueWidth) |
virtual void | writeXMLStartTag (ostream &out, const size_t flags, const char *attrText=NULL) |
write element start tag in XML format | |
virtual void | writeXMLEndTag (ostream &out, const size_t flags) |
write element end tag in XML format | |
Protected Attributes | |
E_ByteOrder | fByteOrder |
Private Attributes | |
DcmInputStreamFactory * | fLoadValue |
required information to load value later | |
Uint8 * | fValue |
value of the element |
Definition at line 51 of file dcelem.h.
|
constructor. Create new element from given tag and length.
|
|
copy constructor
|
|
get entire element value as a character string. In case of VM > 1 the single values are separated by a backslash ('\'). This method implements a general approach by concatenating the results of getOFString() for each value component. Derived class may implement more sophisticated methods.
Reimplemented in DcmLongText, DcmOtherByteOtherWord, DcmShortText, and DcmUnlimitedText. |
|
This function returns this element's value. The returned value corresponds to the byte ordering (little or big endian) that was passed.
|
|
This function reads the data value of an attribute and stores the information which was read in this. The information is either read from the inStream or (if inStream is NULL) from a different stream which was created earlier and which is accessible through the fLoadValue member variable. Note that if not all information for an attribute could be read from the stream, the function returns EC_StreamNotifyClient.
|
|
This function creates a byte array of Length bytes and returns this array. In case Length is odd, an array of Length+1 bytes will be created and Length will be increased by 1. Reimplemented in DcmByteString. |
|
assignment operator
|
|
This function reads the data value of an attribute which is captured in the input stream and captures this information in this. If not all information for an attribute could be read from the stream, the function returns EC_StreamNotifyClient. Note that if certain conditions are met, this function does not actually load the data value but creates and stores an object that enables us to load this information later.
Implements DcmObject. Reimplemented in DcmPixelData. |
|
This function writes this element's value to the outstream which was passed. When writing information, the byte ordering (little or big endian) of the transfer syntax which was passed will be accounted for. In case the outstream does not provide enough space for all bytes of the current element's value, only a certain part of the value will be written to the stream. This element's transfer state indicates if the all bytes of value have already been written to the stream (ERW_ready), if the writing is still in progress and more bytes need to be written to the stream (ERW_inWork) or if the writing of the bytes of this element's value has not even begun yet (ERW_init). The member variable fTransferredBytes indicates how many bytes (starting from byte 0) of this element's value have already been written to the stream. This function will return EC_Normal, if the entire value of this element has been written to the stream, it will return EC_StreamNotifyClient, if there is no more space in the buffer and _not_ all bytes of this element's value have been written, and it will return some other (error) value if there was an error.
Implements DcmObject. Reimplemented in DcmByteString, DcmFileFormat, DcmPixelData, and DcmOtherByteOtherWord. |
|
special write method for creation of digital signatures
Implements DcmObject. Reimplemented in DcmByteString, DcmPixelData, DcmPixelSequence, DcmPixelItem, DcmSequenceOfItems, DcmOtherByteOtherWord, and DcmPolymorphOBOW. |
|
write object in XML format
Reimplemented from DcmObject. Reimplemented in DcmFileFormat, DcmPixelData, DcmPixelItem, DcmSequenceOfItems, and DcmOtherByteOtherWord. |
|
write element end tag in XML format
|
|
write element start tag in XML format
|