LRAUV  revA
UChar.h
Go to the documentation of this file.
1 
10 #ifndef UCHAR_H_
11 #define UCHAR_H_
12 
13 #include "Int.h"
14 
33 class UChar : public Int
34 {
35 public:
36 
38  UChar( const Unit& unit, int value, bool scaleValue = true );
39 
41  UChar( const Unit& unit, const void *binary );
42 
44  UChar* copy() const;
45 
47  virtual ~UChar() {}
48 
52  virtual unsigned int toStream( OutStream& outStream ) const;
53 
57  virtual void fromBinary( const void *buffer );
58 
59 protected:
60 
62  UChar();
63 
64 };
65 
66 #endif /*UCHAR_H_*/
UChar * copy() const
Return a pointer to a new copy.
Definition: UChar.cpp:31
Wraps a 32-bit (4-byte) signed integer and unit for storage in a DataElement.
Definition: Int.h:32
virtual ~UChar()
Destructor.
Definition: UChar.h:47
Wraps a 32-bit (4-byte) signed integer and unit for storage in a DataElement.
Definition: UChar.h:33
Contains the Int class definition.
virtual unsigned int toStream(OutStream &outStream) const
Send the data value to the indicated stream.
Definition: UChar.cpp:39
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
UChar()
Protected Empty constructor for use by DataEntry class.
Definition: UChar.cpp:51
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: UChar.cpp:44