![]() |
VR-Link API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #ifndef DtCulturalFeatureDecoder_H_ 00008 #define DtCulturalFeatureDecoder_H_ 00009 00010 #if DtHLA 00011 00012 #include "hPhysEntDec.h" 00013 00017 00018 class DT_DLL_VL DtEntityStateRepository; 00019 00020 00025 class DT_DLL_VL DtCulturalFeatureDecoder : public DtPhysicalEntityDecoder 00026 { 00027 public: 00028 00030 DtCulturalFeatureDecoder( 00031 DtExerciseConn* exConn, 00032 DtObjClassDesc* classDesc); 00033 00035 virtual ~DtCulturalFeatureDecoder(); 00036 00038 DtCulturalFeatureDecoder( 00039 const DtCulturalFeatureDecoder& orig); 00040 00042 DtCulturalFeatureDecoder& operator=( 00043 const DtCulturalFeatureDecoder& orig); 00044 00045 public: 00046 00049 static DtHlaStateDecoder* create( 00050 DtExerciseConn* exConn, 00051 DtObjClassDesc* classDesc); 00052 00053 protected: 00054 00058 void addMyDecoders(); 00059 00061 DtDECLARE_ENTITY_ATTR_DECODER(ExternalLightsOn); 00062 DtDECLARE_ENTITY_ATTR_DECODER(InternalHeatSourceOn); 00063 DtDECLARE_ENTITY_ATTR_DECODER(InternalLightsOn); 00064 }; 00065 00071 #define DtDEFINE_SIMPLE_CULT_FEAT_ATTR_DECODER_WITH_CAST( \ 00072 attrName, netType, mutator, castExpr) \ 00073 DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \ 00074 DtCulturalFeatureDecoder, DtEntityStateRepository, \ 00075 attrName, netType, mutator, castExpr) 00076 00077 #define DtDEFINE_CULT_FEAT_LIGHT_ATTR_DECODER(attrName, arg1) \ 00078 DtDEFINE_LIGHT_ATTR_DECODER(DtCulturalFeatureDecoder, attrName, arg1) 00079 00080 #endif 00081 #endif 00082