00001 /* 00002 * 00003 * Copyright (C) 1994-2005, 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: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:29:08 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcmtk/dcmdata/dcvrsl.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 DCVRSL_H 00036 #define DCVRSL_H 00037 00038 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00039 00040 #include "dcmtk/dcmdata/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 DcmObject *clone() const 00078 { 00079 return new DcmSignedLong(*this); 00080 } 00081 00085 virtual DcmEVR ident() const; 00086 00090 virtual unsigned long getVM(); 00091 00100 virtual void print(ostream &out, 00101 const size_t flags = 0, 00102 const int level = 0, 00103 const char *pixelFileName = NULL, 00104 size_t *pixelCounter = NULL); 00105 00111 virtual OFCondition getSint32(Sint32 &sintVal, 00112 const unsigned long pos = 0); 00113 00119 virtual OFCondition getSint32Array(Sint32 *&sintVals); 00120 00127 virtual OFCondition getOFString(OFString &stringVal, 00128 const unsigned long pos, 00129 OFBool normalize = OFTrue); 00130 00136 virtual OFCondition putSint32(const Sint32 sintVal, 00137 const unsigned long pos = 0); 00138 00144 virtual OFCondition putSint32Array(const Sint32 *sintVals, 00145 const unsigned long numSints); 00146 00153 virtual OFCondition putString(const char *stringVal); 00154 00159 virtual OFCondition verify(const OFBool autocorrect = OFFalse); 00160 }; 00161 00162 00163 #endif // DCVRSL_H 00164 00165 00166 /* 00167 ** CVS/RCS Log: 00168 ** $Log: dcvrsl.h,v $ 00169 ** Revision 1.20 2005/12/08 16:29:08 meichel 00170 ** Changed include path schema for all DCMTK header files 00171 ** 00172 ** Revision 1.19 2004/07/01 12:28:25 meichel 00173 ** Introduced virtual clone method for DcmObject and derived classes. 00174 ** 00175 ** Revision 1.18 2003/06/12 13:29:06 joergr 00176 ** Fixed inconsistent API documentation reported by Doxygen. 00177 ** 00178 ** Revision 1.17 2002/12/06 12:49:18 joergr 00179 ** Enhanced "print()" function by re-working the implementation and replacing 00180 ** the boolean "showFullData" parameter by a more general integer flag. 00181 ** Added doc++ documentation. 00182 ** Made source code formatting more consistent with other modules/files. 00183 ** 00184 ** Revision 1.16 2002/04/25 09:57:08 joergr 00185 ** Added getOFString() implementation. 00186 ** 00187 ** Revision 1.15 2001/09/25 17:19:34 meichel 00188 ** Adapted dcmdata to class OFCondition 00189 ** 00190 ** Revision 1.14 2001/06/01 15:48:52 meichel 00191 ** Updated copyright header 00192 ** 00193 ** Revision 1.13 2000/04/14 15:31:35 meichel 00194 ** Removed default value from output stream passed to print() method. 00195 ** Required for use in multi-thread environments. 00196 ** 00197 ** Revision 1.12 2000/03/08 16:26:25 meichel 00198 ** Updated copyright header. 00199 ** 00200 ** Revision 1.11 2000/03/03 14:05:27 meichel 00201 ** Implemented library support for redirecting error messages into memory 00202 ** instead of printing them to stdout/stderr for GUI applications. 00203 ** 00204 ** Revision 1.10 2000/02/10 10:50:55 joergr 00205 ** Added new feature to dcmdump (enhanced print method of dcmdata): write 00206 ** pixel data/item value fields to raw files. 00207 ** 00208 ** Revision 1.9 1999/03/31 09:25:06 meichel 00209 ** Updated copyright header in module dcmdata 00210 ** 00211 ** Revision 1.8 1998/11/12 16:47:54 meichel 00212 ** Implemented operator= for all classes derived from DcmObject. 00213 ** 00214 ** Revision 1.7 1997/07/21 08:25:15 andreas 00215 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL) 00216 ** with one unique boolean type OFBool. 00217 ** 00218 ** Revision 1.6 1997/04/18 08:13:31 andreas 00219 ** - The put/get-methods for all VRs did not conform to the C++-Standard 00220 ** draft. Some Compilers (e.g. SUN-C++ Compiler, Metroworks 00221 ** CodeWarrier, etc.) create many warnings concerning the hiding of 00222 ** overloaded get methods in all derived classes of DcmElement. 00223 ** So the interface of all value representation classes in the 00224 ** library are changed rapidly, e.g. 00225 ** OFCondition get(Uint16 & value, const unsigned long pos); 00226 ** becomes 00227 ** OFCondition getUint16(Uint16 & value, const unsigned long pos); 00228 ** All (retired) "returntype get(...)" methods are deleted. 00229 ** For more information see dcmdata/include/dcelem.h 00230 ** 00231 ** Revision 1.5 1996/08/05 08:45:35 andreas 00232 ** new print routine with additional parameters: 00233 ** - print into files 00234 ** - fix output length for elements 00235 ** corrected error in search routine with parameter ESM_fromStackTop 00236 ** 00237 ** Revision 1.4 1996/01/29 13:38:17 andreas 00238 ** - new put method for every VR to put value as a string 00239 ** - better and unique print methods 00240 ** 00241 ** Revision 1.3 1996/01/05 13:23:09 andreas 00242 ** - changed to support new streaming facilities 00243 ** - more cleanups 00244 ** - merged read / write methods for block and file transfer 00245 ** 00246 */