Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_RawDataItem_inl.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_RawDataItem_inl.h 00005 // 00006 // Version 1.0 00007 // Date 11.10.03 (Version 1.1) 00008 // Author A. Pasetti (P&P Software), R. Totaro 00009 00010 #ifndef DC_RawDataItem_INL 00011 #define DC_RawDataItem_INL 00012 00013 #include "../GeneralInclude/CompilerSwitches.h" 00014 #include "DC_RawDataItem.h" 00015 00016 inline DC_RawDataItem::DC_RawDataItem(void *d):DC_DataItem((TD_Integer*)d) { 00017 } 00018 00019 inline char DC_RawDataItem::getChar() const { 00020 return *(char *)pVar; 00021 } 00022 00023 inline unsigned char DC_RawDataItem::getUnsignedChar() const { 00024 return *(unsigned char *)pVar; 00025 } 00026 00027 inline short DC_RawDataItem::getShort() const { 00028 return *(short *)pVar; 00029 } 00030 00031 inline unsigned short DC_RawDataItem::getUnsignedShort() const { 00032 return *(unsigned short *)pVar; 00033 } 00034 00035 inline int DC_RawDataItem::getInt() const { 00036 return *(int *)pVar; 00037 } 00038 00039 inline unsigned int DC_RawDataItem::getUnsignedInt() const { 00040 return *(unsigned int *)pVar; 00041 } 00042 00043 inline float DC_RawDataItem::getFloat() const { 00044 return *(float *)pVar; 00045 } 00046 00047 inline double DC_RawDataItem::getDouble() const { 00048 return *(double *)pVar; 00049 } 00050 00051 inline void DC_RawDataItem::setChar(char newValue) { 00052 *(char *)pVar=newValue; 00053 } 00054 00055 inline void DC_RawDataItem::setUnsignedChar(unsigned char newValue) { 00056 *(unsigned char *)pVar=newValue; 00057 } 00058 00059 inline void DC_RawDataItem::setShort(short newValue) { 00060 *(short *)pVar=newValue; 00061 } 00062 00063 inline void DC_RawDataItem::setUnsignedShort(unsigned short newValue) { 00064 *(unsigned short *)pVar=newValue; 00065 } 00066 00067 inline void DC_RawDataItem::setInt(int newValue) { 00068 *(int *)pVar=newValue; 00069 } 00070 00071 inline void DC_RawDataItem::setUnsignedInt(unsigned int newValue) { 00072 *(unsigned int *)pVar=newValue; 00073 } 00074 00075 inline void DC_RawDataItem::setFloat(float newValue) { 00076 *(float *)pVar=newValue; 00077 } 00078 00079 inline void DC_RawDataItem::setDouble(double newValue) { 00080 *(double *)pVar=newValue; 00081 } 00082 00083 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved