LRAUV  revA
Float2.h
Go to the documentation of this file.
1 
10 #ifndef FLOAT2_H_
11 #define FLOAT2_H_
12 
13 #include "Float.h"
14 
37 class Float2 : public Float
38 {
39 public:
40 
42  Float2( const Unit& unit, float value, bool scaleValue = true );
43 
45  Float2( const Unit& unit, const void *binary );
46 
48  Float2* copy() const;
49 
51  virtual ~Float2() {}
52 
55  virtual bool equalsForStorage( const float& compareTo ) const;
56 
60  virtual unsigned int toStream( OutStream& outStream ) const;
61 
65  virtual void fromBinary( const void *buffer );
66 
67 protected:
68 
70  Float2();
71 
72 };
73 
74 #endif /*FLOAT2_H_*/
Float2()
Protected Empty constructor for use by DataEntry class.
Definition: Float2.cpp:60
virtual ~Float2()
Destructor.
Definition: Float2.h:51
virtual unsigned int toStream(OutStream &outStream) const
Send the data value to the indicated stream.
Definition: Float2.cpp:48
Contains the Float class definition.
Wraps a single precision (4-byte) floating point number and unit for storage in a DataElement...
Definition: Float2.h:37
virtual bool equalsForStorage(const float &compareTo) const
A quick equality check used to see if value has changed enough to matter in logging (useful for reduc...
Definition: Float2.cpp:39
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
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: Float2.cpp:53
Code that represents an engineering unit.
Definition: Unit.h:24
Float2 * copy() const
Return a pointer to a new copy.
Definition: Float2.cpp:32
Wraps a single precision (4-byte) floating point number and unit for storage in a DataElement...
Definition: Float.h:36