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

DC_DataItem.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_DataItem.h 00005 // 00006 // Version 1.0 00007 // Date 11.10.03 (Version 1.0) 00008 // Author A. Pasetti (P&P Software), R. Totaro 00009 // 00010 // Change Record: 00011 00012 #ifndef DC_DataItemH 00013 #define DC_DataItemH 00014 00015 #include "../GeneralInclude/BasicTypes.h" 00016 #include "../Base/CC_RootObject.h" 00017 00060 class DC_DataItem { 00061 00062 private: 00069 inline void initDataItem(void *data, TD_DataItemType type); 00070 00071 protected: 00072 00079 void *pVar; 00080 00081 #ifndef NDEBUG 00082 00091 TD_DataItemType varType; 00092 #endif 00093 00094 public: 00095 00110 inline DC_DataItem(TD_Float *d); 00111 00126 inline DC_DataItem(TD_Integer *d); 00127 00133 inline TD_Float getFloatValue() const; 00134 00139 inline void setValue(TD_Float newValue); 00140 00146 inline TD_Integer getIntegerValue() const; 00147 00152 inline void setValue(TD_Integer newValue); 00153 00154 }; 00155 00156 #include "DC_DataItem_inl.h" 00157 00158 #endif 00159 00160 00161
Copyright 2003 P&P Software GmbH - All Rights Reserved