![]() |
VR-Link API Documentation for DIS
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #ifndef DtMunitionEntityDecoder_H_ 00008 #define DtMunitionEntityDecoder_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 DtMunitionEntityDecoder : public DtMilitaryEntityDecoder 00027 { 00028 public: 00029 00031 DtMunitionEntityDecoder( 00032 DtExerciseConn* exConn, 00033 DtObjClassDesc* classDesc); 00034 00036 virtual ~DtMunitionEntityDecoder(); 00037 00039 DtMunitionEntityDecoder(const DtMunitionEntityDecoder& orig); 00040 00042 DtMunitionEntityDecoder& operator=(const DtMunitionEntityDecoder& 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_ENTITY_ATTR_DECODER_WITH_CAST( \ 00069 attrName, netType, mutator, castExpr) \ 00070 DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \ 00071 DtMunitionEntityDecoder, DtEntityStateRepository, \ 00072 attrName, netType, mutator, castExpr) 00073 00074 #define DtDEFINE_SIMPLE_MUN_ENTITY_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