dcmdata/include/dcvrat.h

00001 /* 00002 * 00003 * Copyright (C) 1994-2003, OFFIS 00004 * 00005 * This software and supporting documentation were developed by 00006 * 00007 * Kuratorium OFFIS e.V. 00008 * Healthcare Information and Communication Systems 00009 * Escherweg 2 00010 * D-26121 Oldenburg, Germany 00011 * 00012 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY 00013 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR 00014 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR 00015 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND 00016 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER. 00017 * 00018 * Module: dcmdata 00019 * 00020 * Author: Gerd Ehlers, Andreas Barth 00021 * 00022 * Purpose: Interface of class DcmAttributeTag 00023 * 00024 * Last Update: $Author: joergr $ 00025 * Update Date: $Date: 2003/06/12 13:31:46 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcvrat.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.20 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 00035 #ifndef DCVRAT_H 00036 #define DCVRAT_H 00037 00038 #include "osconfig.h" /* make sure OS specific configuration is included first */ 00039 00040 #include "dcelem.h" 00041 00042 00045 class DcmAttributeTag 00046 : public DcmElement 00047 { 00048 00049 public: 00050 00056 DcmAttributeTag(const DcmTag &tag, 00057 const Uint32 len = 0); 00058 00062 DcmAttributeTag(const DcmAttributeTag &old); 00063 00066 virtual ~DcmAttributeTag(); 00067 00072 DcmAttributeTag &operator=(const DcmAttributeTag &obj); 00073 00077 virtual DcmEVR ident() const; 00078 00082 virtual unsigned long getVM(); 00083 00093 virtual void print(ostream &out, 00094 const size_t flags = 0, 00095 const int level = 0, 00096 const char *pixelFileName = NULL, 00097 size_t *pixelCounter = NULL); 00098 00104 virtual OFCondition getTagVal(DcmTagKey &tagVal, 00105 const unsigned long pos = 0); 00106 00114 virtual OFCondition getUint16Array(Uint16 *&uintVals); 00115 00124 virtual OFCondition getOFString(OFString &stringVal, 00125 const unsigned long pos, 00126 OFBool normalize = OFTrue); 00127 00133 virtual OFCondition putTagVal(const DcmTagKey &tagVal, 00134 const unsigned long pos = 0); 00135 00145 virtual OFCondition putUint16Array(const Uint16 *uintVals, 00146 const unsigned long numUints); 00147 00155 virtual OFCondition putString(const char *stringVal); 00156 00161 virtual OFCondition verify(const OFBool autocorrect = OFFalse); 00162 }; 00163 00164 00165 #endif // DCVRAT_H 00166 00167 00168 /* 00169 ** CVS/RCS Log: 00170 ** $Log: dcvrat.h,v $ 00171 ** Revision 1.20 2003/06/12 13:31:46 joergr 00172 ** Fixed inconsistent API documentation reported by Doxygen. 00173 ** 00174 ** Revision 1.19 2002/12/06 12:49:14 joergr 00175 ** Enhanced "print()" function by re-working the implementation and replacing 00176 ** the boolean "showFullData" parameter by a more general integer flag. 00177 ** Added doc++ documentation. 00178 ** Made source code formatting more consistent with other modules/files. 00179 ** 00180 ** Revision 1.18 2002/04/25 09:50:38 joergr 00181 ** Added getOFString() implementation. 00182 ** 00183 ** Revision 1.17 2001/09/25 17:19:30 meichel 00184 ** Adapted dcmdata to class OFCondition 00185 ** 00186 ** Revision 1.16 2001/06/01 15:48:48 meichel 00187 ** Updated copyright header 00188 ** 00189 ** Revision 1.15 2000/04/14 15:31:34 meichel 00190 ** Removed default value from output stream passed to print() method. 00191 ** Required for use in multi-thread environments. 00192 ** 00193 ** Revision 1.14 2000/03/08 16:26:22 meichel 00194 ** Updated copyright header. 00195 ** 00196 ** Revision 1.13 2000/03/03 14:05:26 meichel 00197 ** Implemented library support for redirecting error messages into memory 00198 ** instead of printing them to stdout/stderr for GUI applications. 00199 ** 00200 ** Revision 1.12 2000/02/10 10:50:54 joergr 00201 ** Added new feature to dcmdump (enhanced print method of dcmdata): write 00202 ** pixel data/item value fields to raw files. 00203 ** 00204 ** Revision 1.11 1999/03/31 09:24:56 meichel 00205 ** Updated copyright header in module dcmdata 00206 ** 00207 ** Revision 1.10 1998/11/12 16:47:45 meichel 00208 ** Implemented operator= for all classes derived from DcmObject. 00209 ** 00210 ** Revision 1.9 1997/07/21 08:25:13 andreas 00211 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL) 00212 ** with one unique boolean type OFBool. 00213 ** 00214 ** Revision 1.8 1997/04/18 08:13:29 andreas 00215 ** - The put/get-methods for all VRs did not conform to the C++-Standard 00216 ** draft. Some Compilers (e.g. SUN-C++ Compiler, Metroworks 00217 ** CodeWarrier, etc.) create many warnings concerning the hiding of 00218 ** overloaded get methods in all derived classes of DcmElement. 00219 ** So the interface of all value representation classes in the 00220 ** library are changed rapidly, e.g. 00221 ** OFCondition get(Uint16 & value, const unsigned long pos); 00222 ** becomes 00223 ** OFCondition getUint16(Uint16 & value, const unsigned long pos); 00224 ** All (retired) "returntype get(...)" methods are deleted. 00225 ** For more information see dcmdata/include/dcelem.h 00226 ** 00227 ** Revision 1.7 1996/08/05 08:45:29 andreas 00228 ** new print routine with additional parameters: 00229 ** - print into files 00230 ** - fix output length for elements 00231 ** corrected error in search routine with parameter ESM_fromStackTop 00232 ** 00233 ** Revision 1.6 1996/04/16 16:01:37 andreas 00234 ** - put methods for AttributeTag with DcmTagKey Parameter 00235 ** - better support for NULL values 00236 ** 00237 ** Revision 1.5 1996/01/29 13:38:15 andreas 00238 ** - new put method for every VR to put value as a string 00239 ** - better and unique print methods 00240 ** 00241 ** Revision 1.4 1996/01/09 11:06:17 andreas 00242 ** New Support for Visual C++ 00243 ** Correct problems with inconsistent const declarations 00244 ** 00245 ** Revision 1.3 1996/01/05 13:23:03 andreas 00246 ** - changed to support new streaming facilities 00247 ** - more cleanups 00248 ** - merged read / write methods for block and file transfer 00249 ** 00250 */


Generated on 4 Nov 2004 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.3.8