![]() |
VR-Link API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #ifndef DtEnvironmentEntityDecoder_H_ 00008 #define DtEnvironmentEntityDecoder_H_ 00009 00010 #if DtHLA 00011 00012 #include "hBaseEntDec.h" 00013 00017 00018 class DT_DLL_VL DtEntityStateRepository; 00019 00025 00026 class DT_DLL_VL DtEnvironmentEntityDecoder : public DtBaseEntityDecoder 00027 { 00028 public: 00029 00031 DtEnvironmentEntityDecoder( 00032 DtExerciseConn* exConn, 00033 DtObjClassDesc* classDesc); 00034 00036 virtual ~DtEnvironmentEntityDecoder(); 00037 00039 DtEnvironmentEntityDecoder(const DtEnvironmentEntityDecoder& orig); 00040 00042 DtEnvironmentEntityDecoder& operator=( 00043 const DtEnvironmentEntityDecoder& orig); 00044 00045 public: 00046 00049 static DtHlaStateDecoder* create( 00050 DtExerciseConn* exConn, 00051 DtObjClassDesc* classDesc); 00052 00053 protected: 00054 00058 void addMyDecoders(); 00059 00063 DtDECLARE_ENTITY_ATTR_DECODER(Density); 00064 DtDECLARE_ENTITY_ATTR_DECODER(OpacityCode); 00065 }; 00066 00072 #define DtDEFINE_SIMPLE_ENVENT_ATTR_DECODER_WITH_CAST( \ 00073 attrName, netType, mutator, castExpr) \ 00074 DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \ 00075 DtEnvironmentEntityDecoder, DtEntityStateRepository, \ 00076 attrName, netType, mutator, castExpr) 00077 00078 #define DtDEFINE_SIMPLE_ENVENT_ATTR_DECODER( \ 00079 attrName, netType, inspector) \ 00080 DtDEFINE_SIMPLE_ENVENT_ATTR_DECODER_WITH_CAST( \ 00081 attrName, netType, inspector, (netType)) 00082 00083 #endif 00084 #endif 00085