OFFIS DCMTK  Version 3.6.0
dcvrfl.h
1 /*
2  *
3  * Copyright (C) 1994-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmdata
15  *
16  * Author: Gerd Ehlers, Andreas Barth
17  *
18  * Purpose: Interface of class DcmFloatingPointSingle
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-11-05 09:34:11 $
22  * CVS/RCS Revision: $Revision: 1.27 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 
30 #ifndef DCVRFL_H
31 #define DCVRFL_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 
35 #include "dcmtk/dcmdata/dcelem.h"
36 
37 
41  : public DcmElement
42 {
43 
44  public:
45 
51  DcmFloatingPointSingle(const DcmTag &tag,
52  const Uint32 len = 0);
53 
58 
61  virtual ~DcmFloatingPointSingle();
62 
68 
72  virtual DcmObject *clone() const
73  {
74  return new DcmFloatingPointSingle(*this);
75  }
76 
89  virtual OFCondition copyFrom(const DcmObject& rhs);
90 
94  virtual DcmEVR ident(void) const;
95 
103  virtual OFCondition checkValue(const OFString &vm = "1-n",
104  const OFBool oldFormat = OFFalse);
105 
109  virtual unsigned long getVM();
110 
121  virtual void print(STD_NAMESPACE ostream&out,
122  const size_t flags = 0,
123  const int level = 0,
124  const char *pixelFileName = NULL,
125  size_t *pixelCounter = NULL);
126 
132  virtual OFCondition getFloat32(Float32 &floatVal,
133  const unsigned long pos = 0);
134 
139  virtual OFCondition getFloat32Array(Float32 *&floatVals);
140 
149  virtual OFCondition getOFString(OFString &stringVal,
150  const unsigned long pos,
151  OFBool normalize = OFTrue);
152 
158  virtual OFCondition putFloat32(const Float32 floatVal,
159  const unsigned long pos = 0);
160 
166  virtual OFCondition putFloat32Array(const Float32 *floatVals,
167  const unsigned long numFloats);
168 
175  virtual OFCondition putString(const char *stringVal);
176 
181  virtual OFCondition verify(const OFBool autocorrect = OFFalse);
182 };
183 
184 
185 #endif // DCVRFL_H
186 
187 
188 /*
189 ** CVS/RCS Log:
190 ** $Log: dcvrfl.h,v $
191 ** Revision 1.27 2010-11-05 09:34:11 joergr
192 ** Added support for checking the value multiplicity "9" (see Supplement 131).
193 **
194 ** Revision 1.26 2010-10-14 13:15:42 joergr
195 ** Updated copyright header. Added reference to COPYRIGHT file.
196 **
197 ** Revision 1.25 2010-04-23 15:26:13 joergr
198 ** Specify an appropriate default value for the "vm" parameter of checkValue().
199 **
200 ** Revision 1.24 2010-04-23 14:25:27 joergr
201 ** Added new method to all VR classes which checks whether the stored value
202 ** conforms to the VR definition and to the specified VM.
203 **
204 ** Revision 1.23 2009-11-04 09:58:07 uli
205 ** Switched to logging mechanism provided by the "new" oflog module
206 **
207 ** Revision 1.22 2008-07-17 11:19:49 onken
208 ** Updated copyFrom() documentation.
209 **
210 ** Revision 1.21 2008-07-17 10:30:23 onken
211 ** Implemented copyFrom() method for complete DcmObject class hierarchy, which
212 ** permits setting an instance's value from an existing object. Implemented
213 ** assignment operator where necessary.
214 **
215 ** Revision 1.20 2006-08-15 15:49:56 meichel
216 ** Updated all code in module dcmdata to correctly compile when
217 ** all standard C++ classes remain in namespace std.
218 **
219 ** Revision 1.19 2005/12/08 16:28:59 meichel
220 ** Changed include path schema for all DCMTK header files
221 **
222 ** Revision 1.18 2004/07/01 12:28:25 meichel
223 ** Introduced virtual clone method for DcmObject and derived classes.
224 **
225 ** Revision 1.17 2002/12/06 12:49:16 joergr
226 ** Enhanced "print()" function by re-working the implementation and replacing
227 ** the boolean "showFullData" parameter by a more general integer flag.
228 ** Added doc++ documentation.
229 ** Made source code formatting more consistent with other modules/files.
230 **
231 ** Revision 1.16 2002/04/25 09:52:08 joergr
232 ** Added getOFString() implementation.
233 **
234 ** Revision 1.15 2001/09/25 17:19:31 meichel
235 ** Adapted dcmdata to class OFCondition
236 **
237 ** Revision 1.14 2001/06/01 15:48:50 meichel
238 ** Updated copyright header
239 **
240 ** Revision 1.13 2000/04/14 15:31:34 meichel
241 ** Removed default value from output stream passed to print() method.
242 ** Required for use in multi-thread environments.
243 **
244 ** Revision 1.12 2000/03/08 16:26:23 meichel
245 ** Updated copyright header.
246 **
247 ** Revision 1.11 2000/03/03 14:05:27 meichel
248 ** Implemented library support for redirecting error messages into memory
249 ** instead of printing them to stdout/stderr for GUI applications.
250 **
251 ** Revision 1.10 2000/02/10 10:50:54 joergr
252 ** Added new feature to dcmdump (enhanced print method of dcmdata): write
253 ** pixel data/item value fields to raw files.
254 **
255 ** Revision 1.9 1999/03/31 09:25:00 meichel
256 ** Updated copyright header in module dcmdata
257 **
258 ** Revision 1.8 1998/11/12 16:47:49 meichel
259 ** Implemented operator= for all classes derived from DcmObject.
260 **
261 ** Revision 1.7 1997/07/21 08:25:14 andreas
262 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)
263 ** with one unique boolean type OFBool.
264 **
265 ** Revision 1.6 1997/04/18 08:13:30 andreas
266 ** - The put/get-methods for all VRs did not conform to the C++-Standard
267 ** draft. Some Compilers (e.g. SUN-C++ Compiler, Metroworks
268 ** CodeWarrier, etc.) create many warnings concerning the hiding of
269 ** overloaded get methods in all derived classes of DcmElement.
270 ** So the interface of all value representation classes in the
271 ** library are changed rapidly, e.g.
272 ** OFCondition get(Uint16 & value, const unsigned long pos);
273 ** becomes
274 ** OFCondition getUint16(Uint16 & value, const unsigned long pos);
275 ** All (retired) "returntype get(...)" methods are deleted.
276 ** For more information see dcmdata/include/dcelem.h
277 **
278 ** Revision 1.5 1996/08/05 08:45:32 andreas
279 ** new print routine with additional parameters:
280 ** - print into files
281 ** - fix output length for elements
282 ** corrected error in search routine with parameter ESM_fromStackTop
283 **
284 ** Revision 1.4 1996/01/29 13:38:16 andreas
285 ** - new put method for every VR to put value as a string
286 ** - better and unique print methods
287 **
288 ** Revision 1.3 1996/01/05 13:23:05 andreas
289 ** - changed to support new streaming facilities
290 ** - more cleanups
291 ** - merged read / write methods for block and file transfer
292 **
293 */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2