dcmdata/include/dcvrfd.h

00001 /* 00002 * 00003 * Copyright (C) 1994-2002, 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 DcmFloatingPointDouble 00023 * 00024 * Last Update: $Author: joergr $ 00025 * Update Date: $Date: 2002/12/06 12:49:15 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcvrfd.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.17 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 00035 #ifndef DCVRFD_H 00036 #define DCVRFD_H 00037 00038 #include "osconfig.h" /* make sure OS specific configuration is included first */ 00039 00040 #include "dcelem.h" 00041 00042 00045 class DcmFloatingPointDouble 00046 : public DcmElement 00047 { 00048 00049 public: 00050 00056 DcmFloatingPointDouble(const DcmTag &tag, 00057 const Uint32 len = 0); 00058 00062 DcmFloatingPointDouble( const DcmFloatingPointDouble &old); 00063 00066 virtual ~DcmFloatingPointDouble(); 00067 00072 DcmFloatingPointDouble &operator=(const DcmFloatingPointDouble &obj); 00073 00077 virtual DcmEVR ident() const; 00078 00082 virtual unsigned long getVM(); 00083 00094 virtual void print(ostream &out, 00095 const size_t flags = 0, 00096 const int level = 0, 00097 const char *pixelFileName = NULL, 00098 size_t *pixelCounter = NULL); 00099 00105 virtual OFCondition getFloat64(Float64 &doubleVal, 00106 const unsigned long pos = 0); 00107 00112 virtual OFCondition getFloat64Array(Float64 *&doubleVals); 00113 00122 virtual OFCondition getOFString(OFString &stringVal, 00123 const unsigned long pos, 00124 OFBool normalize = OFTrue); 00125 00131 virtual OFCondition putFloat64(const Float64 doubleval, 00132 const unsigned long pos = 0); 00133 00139 virtual OFCondition putFloat64Array(const Float64 *doubleVals, 00140 const unsigned long numDoubles); 00141 00148 virtual OFCondition putString(const char *stringVal); 00149 00154 virtual OFCondition verify(const OFBool autocorrect = OFFalse); 00155 }; 00156 00157 00158 #endif // DCVRFD_H 00159 00160 00161 /* 00162 ** CVS/RCS Log: 00163 ** $Log: dcvrfd.h,v $ 00164 ** Revision 1.17 2002/12/06 12:49:15 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:51:42 joergr 00171 ** Added getOFString() implementation. 00172 ** 00173 ** Revision 1.15 2001/09/25 17:19:31 meichel 00174 ** Adapted dcmdata to class OFCondition 00175 ** 00176 ** Revision 1.14 2001/06/01 15:48:49 meichel 00177 ** Updated copyright header 00178 ** 00179 ** Revision 1.13 2000/04/14 15:31:34 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:23 meichel 00184 ** Updated copyright header. 00185 ** 00186 ** Revision 1.11 2000/03/03 14:05:26 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:54 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:00 meichel 00195 ** Updated copyright header in module dcmdata 00196 ** 00197 ** Revision 1.8 1998/11/12 16:47:48 meichel 00198 ** Implemented operator= for all classes derived from DcmObject. 00199 ** 00200 ** Revision 1.7 1997/07/21 08:25:14 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:29 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:31 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:16 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:05 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