#include <DC_RawDataItem.h>
Inheritance diagram for DC_RawDataItem:
A raw data item is a data item that encapsulates a "raw pointer", namely a pointer that does not have a specific type and is defined simply as a "pointer to void". The raw data item offers accessors methods that allow its underlying variable to be accessed as a variable of the following types: unsigned int
, int
, unsigned short
, short
, unsigned char
, char
, float
, and double
. The raw data item therefore essentially allows cast to be performed between types in a controlled manner. This is useful when manipulating registers or other low-level variables.
Roberto Totaro
Definition at line 33 of file DC_RawDataItem.h.
Public Member Functions | |
DC_RawDataItem (void *d) | |
Instantiate a raw data item component. | |
char | getChar (void) const |
Return the value of the data item intepreted as a variable of type char . | |
void | setChar (char newValue) |
Set the value of the data item intepreted as a variable of type char . | |
unsigned char | getUnsignedChar (void) const |
Return the value of the data item intepreted as a variable of type unsigned char . | |
void | setUnsignedChar (unsigned char newValue) |
Set the value of the data item intepreted as a variable of type unsigned char . | |
short | getShort (void) const |
Return the value of the data item intepreted as a variable of type short . | |
void | setShort (short newValue) |
Set the value of the data item intepreted as a variable of type short . | |
unsigned short | getUnsignedShort (void) const |
Return the value of the data item intepreted as a variable of type unsigned short . | |
void | setUnsignedShort (unsigned short newValue) |
Set the value of the data item intepreted as a variable of type unsigned short . | |
int | getInt (void) const |
Return the value of the data item intepreted as a variable of type int . | |
void | setInt (int newValue) |
Set the value of the data item intepreted as a variable of type int . | |
unsigned int | getUnsignedInt (void) const |
Return the value of the data item intepreted as a variable of type unsigned int . | |
void | setUnsignedInt (unsigned int newValue) |
Set the value of the data item intepreted as a variable of type unsigned int . | |
float | getFloat (void) const |
Return the value of the data item intepreted as a variable of type float . | |
void | setFloat (float newValue) |
Set the value of the data item intepreted as a variable of type float . | |
double | getDouble (void) const |
Return the value of the data item intepreted as a variable of type double . | |
void | setDouble (double newValue) |
Set the value of the data item intepreted as a variable of type double . |
|
Instantiate a raw data item component. This constructor simply calls the constructor of the super class and passes its argument to it as shown in the following pseudocode:<PRE> DC_DataItem((TD_Integer*)d); The cast to the type "pointer to TD_Integer" is arbitrary and only serves to select one of the two constructors defined in the superclass.
Definition at line 16 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 19 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 47 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 43 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 35 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 27 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 23 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 39 of file DC_RawDataItem_inl.h. |
|
Return the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 31 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 51 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 79 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 75 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 67 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 59 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 55 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 71 of file DC_RawDataItem_inl.h. |
|
Set the value of the data item intepreted as a variable of type
The pointer that is encapsulated by the data item is interpreted as a pointer to type
Definition at line 63 of file DC_RawDataItem_inl.h. |