LRAUV  revA
Double4.h
Go to the documentation of this file.
1 
10 #ifndef DOUBLE4_H_
11 #define DOUBLE4_H_
12 
13 #include "Double.h"
14 
33 class Double4 : public Double
34 {
35 public:
36 
38  Double4( const Unit& unit, double value, bool scaleValue = true );
39 
41  Double4( const Unit& unit, const void *binary );
42 
44  virtual ~Double4()
45  {}
46  ;
47 
49  Double4* copy() const;
50 
53  virtual bool equalsForStorage( const double& compareTo ) const;
54 
58  virtual unsigned int toStream( OutStream& outStream ) const;
59 
63  virtual void fromBinary( const void *buffer );
64 
66  static float DoubleToFloat( const double& theDouble );
67 
68 protected:
69 
71  Double4();
72 
73 };
74 
75 #endif /*DOUBLE4_H_*/
Double4 * copy() const
Return a pointer to a new copy.
Definition: Double4.cpp:35
Wraps a double precision (8-byte) floating point number and unit for storage in a DataElement...
Definition: Double.h:36
static float DoubleToFloat(const double &theDouble)
Cast to float without floating point errors.
Definition: Double4.cpp:73
Double4()
Protected Empty constructor for use by DataEntry class.
Definition: Double4.cpp:65
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
virtual bool equalsForStorage(const double &compareTo) const
A quick equality check used to see if value has changed enough to matter in logging (useful for reduc...
Definition: Double4.cpp:42
virtual void fromBinary(const void *buffer)
Load the data from the a binary representation in the buffer Typically just a memcopy of the variable...
Definition: Double4.cpp:57
Wraps a double precision (8-byte) floating point number and unit for storage in a DataElement...
Definition: Double4.h:33
virtual unsigned int toStream(OutStream &outStream) const
Send the data value to the indicated stream.
Definition: Double4.cpp:52
virtual ~Double4()
Destructor.
Definition: Double4.h:44
Code that represents an engineering unit.
Definition: Unit.h:24
Contains the Double class definition.