33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmdata/dcelem.h"
52 const Uint32 len = 0);
94 virtual DcmEVR
ident()
const;
102 const OFBool oldFormat = OFFalse);
107 virtual unsigned long getVM();
126 virtual void print(STD_NAMESPACE ostream&out,
127 const size_t flags = 0,
129 const char *pixelFileName = NULL,
130 size_t *pixelCounter = NULL);
137 virtual OFBool
canWriteXfer(
const E_TransferSyntax newXfer,
138 const E_TransferSyntax oldXfer);
149 const E_TransferSyntax oxfer,
150 const E_EncodingType enctype,
159 const size_t flags = 0);
170 const E_TransferSyntax oxfer,
171 const E_EncodingType enctype,
181 const unsigned long pos = 0);
190 const unsigned long pos = 0);
216 const unsigned long pos,
217 OFBool normalize = OFTrue);
229 OFBool normalize = OFTrue);
238 const unsigned long numBytes);
248 const unsigned long numWords);
309 const char *pixelFileName,
310 size_t *pixelCounter);
virtual OFCondition putString(const char *stringVal)
set element value from the given character string.
abstract base class for all DICOM elements
virtual void print(STD_NAMESPACE ostream &out, const size_t flags=0, const int level=0, const char *pixelFileName=NULL, size_t *pixelCounter=NULL)
print the current value to a stream.
virtual DcmObject * clone() const
clone method
virtual OFCondition createUint16Array(const Uint32 numWords, Uint16 *&words)
create an empty Uint16 array of given number of words and set it.
DcmOtherByteOtherWord(const DcmTag &tag, const Uint32 len=0)
constructor.
virtual OFCondition getUint8(Uint8 &byteVal, const unsigned long pos=0)
get particular 8 bit value.
virtual OFCondition writeSignatureFormat(DcmOutputStream &outStream, const E_TransferSyntax oxfer, const E_EncodingType enctype, DcmWriteCache *wcache)
special write method for creation of digital signatures
virtual OFCondition getUint16(Uint16 &wordVal, const unsigned long pos=0)
get particular 16 bit value.
virtual OFCondition getUint16Array(Uint16 *&wordVals)
get reference to stored 16 bit data.
this class encapsulates an attribute tag (group, element) and a VR.
This class implements a buffering mechanism that is used when writing large elements that reside in f...
base class for output streams.
virtual OFBool canWriteXfer(const E_TransferSyntax newXfer, const E_TransferSyntax oldXfer)
check whether the transfer syntax can be changed as specified
virtual OFCondition createUint8Array(const Uint32 numBytes, Uint8 *&bytes)
create an empty Uint8 array of given number of bytes and set it.
Abstract base class for most classes in module dcmdata.
virtual OFCondition write(DcmOutputStream &outStream, const E_TransferSyntax oxfer, const E_EncodingType enctype, DcmWriteCache *wcache)
write object to a stream
virtual OFCondition getOFStringArray(OFString &stringVal, OFBool normalize=OFTrue)
get element value as a character string.
virtual unsigned long getVM()
get value multiplicity
virtual OFCondition verify(const OFBool autocorrect=OFFalse)
check the currently stored element value
virtual OFCondition putUint16Array(const Uint16 *wordValue, const unsigned long numWords)
set element value to given 16 bit data.
OFCondition alignValue()
align the element value to an even length (padding)
virtual void postLoadValue()
method is called after the element value has been loaded.
DcmOtherByteOtherWord & operator=(const DcmOtherByteOtherWord &obj)
assignment operator
OFBool compactAfterTransfer
this flag is used during write operations and indicates that compact() should be called once the writ...
void printPixel(STD_NAMESPACE ostream &out, const size_t flags, const int level, const char *pixelFileName, size_t *pixelCounter)
print pixel data and optionally write it to a binary file.
virtual OFCondition writeXML(STD_NAMESPACE ostream &out, const size_t flags=0)
write object in XML format to a stream
virtual OFCondition checkValue(const OFString &vm="", const OFBool oldFormat=OFFalse)
check whether stored value conforms to the VR and to the specified VM
a class representing the DICOM value representations 'Other Byte String' (OB) and 'Other Word String'...
virtual OFCondition getUint8Array(Uint8 *&byteVals)
get reference to stored 8 bit data.
a simple string class that implements a subset of std::string.
virtual DcmEVR ident() const
get element type identifier
virtual OFCondition putUint8Array(const Uint8 *byteValue, const unsigned long numBytes)
set element value to given 8 bit data.
virtual ~DcmOtherByteOtherWord()
destructor
virtual OFCondition getOFString(OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue)
get a particular value as a character string.
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
virtual OFCondition setVR(DcmEVR vr)
set/change the current value representation
General purpose class for condition codes.