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