LRAUV  revA
UShort.h
Go to the documentation of this file.
1 
10 #ifndef USHORT_H_
11 #define USHORT_H_
12 
13 #include "Int.h"
14 
37 class UShort : public Int
38 {
39 public:
40 
42  UShort( const Unit& unit, int value, bool scaleValue = true );
43 
45  UShort( const Unit& unit, const void *binary );
46 
48  UShort* copy() const;
49 
51  virtual ~UShort() {}
52 
56  virtual unsigned int toStream( OutStream& outStream ) const;
57 
58 protected:
59 
61  UShort();
62 
63 };
64 
65 #endif /*USHORT_H_*/
UShort()
Protected Empty constructor for use by DataEntry class.
Definition: UShort.cpp:46
Wraps a 32-bit (4-byte) signed integer and unit for storage in a DataElement.
Definition: Int.h:32
Wraps a single precision (4-byte) floating point number and unit for storage in a DataElement...
Definition: UShort.h:37
virtual unsigned int toStream(OutStream &outStream) const
Send the data value to the indicated stream.
Definition: UShort.cpp:40
Contains the Int class definition.
virtual ~UShort()
Destructor.
Definition: UShort.h:51
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
UShort * copy() const
Return a pointer to a new copy.
Definition: UShort.cpp:32
Code that represents an engineering unit.
Definition: Unit.h:24