OFFIS DCMTK  Version 3.6.0
dcvrfd.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 DcmFloatingPointDouble
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 DCVRFD_H
31 #define DCVRFD_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  DcmFloatingPointDouble(const DcmTag &tag,
52  const Uint32 len = 0);
53 
58 
61  virtual ~DcmFloatingPointDouble();
62 
68 
72  virtual DcmObject *clone() const
73  {
74  return new DcmFloatingPointDouble(*this);
75  }
76 
89  virtual OFCondition copyFrom(const DcmObject& rhs);
90 
94  virtual DcmEVR ident() 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 getFloat64(Float64 &doubleVal,
133  const unsigned long pos = 0);
134 
139  virtual OFCondition getFloat64Array(Float64 *&doubleVals);
140 
149  virtual OFCondition getOFString(OFString &stringVal,
150  const unsigned long pos,
151  OFBool normalize = OFTrue);
152 
158  virtual OFCondition putFloat64(const Float64 doubleval,
159  const unsigned long pos = 0);
160 
166  virtual OFCondition putFloat64Array(const Float64 *doubleVals,
167  const unsigned long numDoubles);
168 
175  virtual OFCondition putString(const char *stringVal);
176 
181  virtual OFCondition verify(const OFBool autocorrect = OFFalse);
182 };
183 
184 
185 #endif // DCVRFD_H
186 
187 
188 /*
189 ** CVS/RCS Log:
190 ** $Log: dcvrfd.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:58 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:15 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:51:42 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:49 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:26 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:48 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:29 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:31 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 */
DcmFloatingPointDouble(const DcmTag &tag, const Uint32 len=0)
constructor.
abstract base class for all DICOM elements
Definition: dcelem.h:45
virtual OFCondition putFloat64(const Float64 doubleval, const unsigned long pos=0)
set particular element value to given double
this class encapsulates an attribute tag (group, element) and a VR.
Definition: dctag.h:50
Abstract base class for most classes in module dcmdata.
Definition: dcobject.h:179
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
virtual OFCondition getFloat64(Float64 &doubleVal, const unsigned long pos=0)
get particular double value
virtual OFCondition getOFString(OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue)
get a particular value as a character string.
virtual OFCondition putString(const char *stringVal)
set element value from the given character string.
virtual OFCondition checkValue(const OFString &vm="1-n", const OFBool oldFormat=OFFalse)
check whether stored value conforms to the VR and to the specified VM
virtual void print(STD_NAMESPACE ostream &out, const size_t flags=0, const int level=0, const char *pixelFileName=NULL, size_t *pixelCounter=NULL)
print element to a stream.
virtual DcmObject * clone() const
clone method
Definition: dcvrfd.h:72
virtual OFCondition verify(const OFBool autocorrect=OFFalse)
check the currently stored element value
virtual OFCondition getFloat64Array(Float64 *&doubleVals)
get reference to stored double data
a simple string class that implements a subset of std::string.
Definition: ofstring.h:86
DcmFloatingPointDouble & operator=(const DcmFloatingPointDouble &obj)
assignment operator
virtual DcmEVR ident() const
get element type identifier
a class representing the DICOM value representation 'Floating Point Double' (FD)
Definition: dcvrfd.h:40
virtual ~DcmFloatingPointDouble()
destructor
General purpose class for condition codes.
Definition: ofcond.h:305
virtual OFCondition putFloat64Array(const Float64 *doubleVals, const unsigned long numDoubles)
set element value to given double array data
virtual unsigned long getVM()
get value multiplicity


Generated on Wed Dec 28 2016 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.8