dcmdata/include/dcvrsl.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 DcmSignedLong 00023 * 00024 * Last Update: $Author: joergr $ 00025 * Update Date: $Date: 2003/06/12 13:29:06 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcvrsl.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.18 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 00035 #ifndef DCVRSL_H 00036 #define DCVRSL_H 00037 00038 #include "osconfig.h" /* make sure OS specific configuration is included first */ 00039 00040 #include "dcelem.h" 00041 00042 00045 class DcmSignedLong 00046 : public DcmElement 00047 { 00048 00049 public: 00050 00056 DcmSignedLong(const DcmTag &tag, 00057 const Uint32 len = 0); 00058 00062 DcmSignedLong(const DcmSignedLong &old); 00063 00066 virtual ~DcmSignedLong(); 00067 00072 DcmSignedLong &operator=(const DcmSignedLong &obj); 00073 00077 virtual DcmEVR ident() const; 00078 00082 virtual unsigned long getVM(); 00083 00092 virtual void print(ostream &out, 00093 const size_t flags = 0, 00094 const int level = 0, 00095 const char *pixelFileName = NULL, 00096 size_t *pixelCounter = NULL); 00097 00103 virtual OFCondition getSint32(Sint32 &sintVal, 00104 const unsigned long pos = 0); 00105 00111 virtual OFCondition getSint32Array(Sint32 *&sintVals); 00112 00119 virtual OFCondition getOFString(OFString &stringVal, 00120 const unsigned long pos, 00121 OFBool normalize = OFTrue); 00122 00128 virtual OFCondition putSint32(const Sint32 sintVal, 00129 const unsigned long pos = 0); 00130 00136 virtual OFCondition putSint32Array(const Sint32 *sintVals, 00137 const unsigned long numSints); 00138 00145 virtual OFCondition putString(const char *stringVal); 00146 00151 virtual OFCondition verify(const OFBool autocorrect = OFFalse); 00152 }; 00153 00154 00155 #endif // DCVRSL_H 00156 00157 00158 /* 00159 ** CVS/RCS Log: 00160 ** $Log: dcvrsl.h,v $ 00161 ** Revision 1.18 2003/06/12 13:29:06 joergr 00162 ** Fixed inconsistent API documentation reported by Doxygen. 00163 ** 00164 ** Revision 1.17 2002/12/06 12:49:18 joergr 00165 ** Enhanced "print()" function by re-working the implementation and replacing 00166 ** the boolean "showFullData" parameter by a more general integer flag. 00167 ** Added doc++ documentation. 00168 ** Made source code formatting more consistent with other modules/files. 00169 ** 00170 ** Revision 1.16 2002/04/25 09:57:08 joergr 00171 ** Added getOFString() implementation. 00172 ** 00173 ** Revision 1.15 2001/09/25 17:19:34 meichel 00174 ** Adapted dcmdata to class OFCondition 00175 ** 00176 ** Revision 1.14 2001/06/01 15:48:52 meichel 00177 ** Updated copyright header 00178 ** 00179 ** Revision 1.13 2000/04/14 15:31:35 meichel 00180 ** Removed default value from output stream passed to print() method. 00181 ** Required for use in multi-thread environments. 00182 ** 00183 ** Revision 1.12 2000/03/08 16:26:25 meichel 00184 ** Updated copyright header. 00185 ** 00186 ** Revision 1.11 2000/03/03 14:05:27 meichel 00187 ** Implemented library support for redirecting error messages into memory 00188 ** instead of printing them to stdout/stderr for GUI applications. 00189 ** 00190 ** Revision 1.10 2000/02/10 10:50:55 joergr 00191 ** Added new feature to dcmdump (enhanced print method of dcmdata): write 00192 ** pixel data/item value fields to raw files. 00193 ** 00194 ** Revision 1.9 1999/03/31 09:25:06 meichel 00195 ** Updated copyright header in module dcmdata 00196 ** 00197 ** Revision 1.8 1998/11/12 16:47:54 meichel 00198 ** Implemented operator= for all classes derived from DcmObject. 00199 ** 00200 ** Revision 1.7 1997/07/21 08:25:15 andreas 00201 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL) 00202 ** with one unique boolean type OFBool. 00203 ** 00204 ** Revision 1.6 1997/04/18 08:13:31 andreas 00205 ** - The put/get-methods for all VRs did not conform to the C++-Standard 00206 ** draft. Some Compilers (e.g. SUN-C++ Compiler, Metroworks 00207 ** CodeWarrier, etc.) create many warnings concerning the hiding of 00208 ** overloaded get methods in all derived classes of DcmElement. 00209 ** So the interface of all value representation classes in the 00210 ** library are changed rapidly, e.g. 00211 ** OFCondition get(Uint16 & value, const unsigned long pos); 00212 ** becomes 00213 ** OFCondition getUint16(Uint16 & value, const unsigned long pos); 00214 ** All (retired) "returntype get(...)" methods are deleted. 00215 ** For more information see dcmdata/include/dcelem.h 00216 ** 00217 ** Revision 1.5 1996/08/05 08:45:35 andreas 00218 ** new print routine with additional parameters: 00219 ** - print into files 00220 ** - fix output length for elements 00221 ** corrected error in search routine with parameter ESM_fromStackTop 00222 ** 00223 ** Revision 1.4 1996/01/29 13:38:17 andreas 00224 ** - new put method for every VR to put value as a string 00225 ** - better and unique print methods 00226 ** 00227 ** Revision 1.3 1996/01/05 13:23:09 andreas 00228 ** - changed to support new streaming facilities 00229 ** - more cleanups 00230 ** - merged read / write methods for block and file transfer 00231 ** 00232 */


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