LRAUV  revA
Short.h
Go to the documentation of this file.
1 
10 #ifndef SHORT_H_
11 #define SHORT_H_
12 
13 #include "Int.h"
14 
37 class Short : public Int
38 {
39 public:
40 
42  Short( const Unit& unit, int value, bool scaleValue = true );
43 
45  Short( const Unit& unit, const void *binary );
46 
48  Short* copy() const;
49 
51  virtual ~Short() {}
52 
56  virtual unsigned int toStream( OutStream& outStream ) const;
57 
58 protected:
59 
61  Short();
62 
63 };
64 
65 #endif /*SHORT_H_*/
Wraps a 32-bit (4-byte) signed integer and unit for storage in a DataElement.
Definition: Int.h:32
Short()
Protected Empty constructor for use by DataEntry class.
Definition: Short.cpp:46
Wraps a single precision (4-byte) floating point number and unit for storage in a DataElement...
Definition: Short.h:37
virtual ~Short()
Destructor.
Definition: Short.h:51
virtual unsigned int toStream(OutStream &outStream) const
Send the data value to the indicated stream.
Definition: Short.cpp:40
Contains the Int class definition.
Short * copy() const
Return a pointer to a new copy.
Definition: Short.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