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