33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmdata/dcelem.h"
52 const Uint32 len = 0);
94 virtual DcmEVR
ident()
const;
104 const OFBool oldFormat = OFFalse);
109 virtual unsigned long getVM();
119 virtual void print(STD_NAMESPACE ostream&out,
120 const size_t flags = 0,
122 const char *pixelFileName = NULL,
123 size_t *pixelCounter = NULL);
131 const unsigned long pos = 0);
147 const unsigned long pos,
148 OFBool normalize = OFTrue);
156 const unsigned long pos = 0);
164 const unsigned long numUints);
virtual DcmEVR ident() const
get element type identifier
abstract base class for all DICOM elements
this class encapsulates an attribute tag (group, element) and a VR.
virtual OFCondition checkValue(const OFString &vm="1-n", const OFBool oldFormat=OFFalse)
check whether stored value conforms to the VR and to the specified VM
DcmUnsignedShort & operator=(const DcmUnsignedShort &obj)
assignment operator
virtual OFCondition getOFString(OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue)
get particular value as a character string
Abstract base class for most classes in module dcmdata.
virtual OFCondition getUint16(Uint16 &uintVal, const unsigned long pos=0)
get particular integer value
virtual OFCondition putUint16Array(const Uint16 *uintVals, const unsigned long numUints)
set element value to given integer array data
DcmUnsignedShort(const DcmTag &tag, const Uint32 len=0)
constructor.
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
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 element to a stream.
virtual OFCondition putUint16(const Uint16 uintVal, const unsigned long pos=0)
set particular element value to given integer
virtual unsigned long getVM()
get value multiplicity
virtual DcmObject * clone() const
clone method
a class representing the DICOM value representation 'Unsigned Short' (US)
a simple string class that implements a subset of std::string.
virtual ~DcmUnsignedShort()
destructor
virtual OFCondition getUint16Array(Uint16 *&uintVals)
get reference to stored integer data.
virtual OFCondition putString(const char *stringVal)
set element value from the given character string.
virtual OFCondition verify(const OFBool autocorrect=OFFalse)
check the currently stored element value
General purpose class for condition codes.