![]() |
VR-Link API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #ifndef DtMunitionDecoder_H_ 00008 #define DtMunitionDecoder_H_ 00009 00010 #if DtHLA 00011 00012 #include "hPhysEntDec.h" 00013 00017 00018 class DT_DLL_VL DtEntityStateRepository; 00019 00025 00026 class DT_DLL_VL DtMunitionDecoder : public DtPhysicalEntityDecoder 00027 { 00028 public: 00029 00031 DtMunitionDecoder( 00032 DtExerciseConn* exConn, 00033 DtObjClassDesc* classDesc); 00034 00036 virtual ~DtMunitionDecoder(); 00037 00039 DtMunitionDecoder(const DtMunitionDecoder& orig); 00040 00042 DtMunitionDecoder& operator=(const DtMunitionDecoder& orig); 00043 00044 public: 00045 00048 static DtHlaStateDecoder* create( 00049 DtExerciseConn* exConn, 00050 DtObjClassDesc* classDesc); 00051 00052 protected: 00053 00057 void addMyDecoders(); 00058 00060 DtDECLARE_ENTITY_ATTR_DECODER(LauncherFlashPresent); 00061 }; 00062 00068 #define DtDEFINE_SIMPLE_MUN_ATTR_DECODER_WITH_CAST( \ 00069 attrName, netType, mutator, castExpr) \ 00070 DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \ 00071 DtMunitionDecoder, DtEntityStateRepository, \ 00072 attrName, netType, mutator, castExpr) 00073 00074 #define DtDEFINE_SIMPLE_MUN_ATTR_DECODER( \ 00075 attrName, netType, inspector) \ 00076 DtDEFINE_SIMPLE_MUN_ENTITY_ATTR_DECODER_WITH_CAST( \ 00077 attrName, netType, inspector, (netType)) 00078 00079 #endif 00080 #endif 00081