![]() |
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 DtSensorEncoder_H_ 00008 #define DtSensorEncoder_H_ 00009 00010 #if DtHLA 00011 00012 #include "hPhysEntEnc.h" 00013 #include "entitySR.h" 00014 00018 00024 00025 class DT_DLL_VL DtSensorEncoder : public DtPhysicalEntityEncoder 00026 { 00027 public: 00028 00030 DtSensorEncoder( 00031 DtExerciseConn* exConn, 00032 DtObjClassDesc* classDesc); 00033 00035 virtual ~DtSensorEncoder(); 00036 00038 DtSensorEncoder(const DtSensorEncoder& orig); 00039 00041 DtSensorEncoder& operator=(const DtSensorEncoder& orig); 00042 00043 public: 00044 00047 static DtHlaStateEncoder* create( 00048 DtExerciseConn* exConn, 00049 DtObjClassDesc* classDesc); 00050 00051 protected: 00052 00054 DtDECLARE_ENTITY_ATTR_CHECKER(AntennaRaised); 00055 DtDECLARE_ENTITY_ATTR_CHECKER(BlackoutLightsOn); 00056 DtDECLARE_ENTITY_ATTR_CHECKER(LightsOn); 00057 DtDECLARE_ENTITY_ATTR_CHECKER(InteriorLightsOn); 00058 DtDECLARE_ENTITY_ATTR_CHECKER(MissionKill); 00059 00061 DtDECLARE_ENTITY_ATTR_ENCODER(AntennaRaised); 00062 DtDECLARE_ENTITY_ATTR_ENCODER(BlackoutLightsOn); 00063 DtDECLARE_ENTITY_ATTR_ENCODER(LightsOn); 00064 DtDECLARE_ENTITY_ATTR_ENCODER(InteriorLightsOn); 00065 DtDECLARE_ENTITY_ATTR_ENCODER(MissionKill); 00066 }; 00067 00073 #define DtDEFINE_SIMPLE_SENSOR_ATTR_ENCODER( \ 00074 attrName, netType, inspector) \ 00075 DtDEFINE_SIMPLE_ATTR_ENCODER( \ 00076 DtSensorEncoder, \ 00077 DtEntityStateRepository, \ 00078 attrName, netType, inspector) 00079 00085 #define DtDEFINE_SIMPLE_SENSOR_ATTR_CHECKER( \ 00086 attrName, inspector) \ 00087 DtDEFINE_SIMPLE_ATTR_CHECKER( \ 00088 DtSensorEncoder, \ 00089 DtEntityStateRepository, \ 00090 attrName, inspector) 00091 00092 #define DtDEFINE_SENSOR_LIGHT_ATTR_CHECKER(attrName, arg1) \ 00093 DtDEFINE_LIGHT_ATTR_CHECKER(DtSensorEncoder, attrName, arg1); 00094 00095 #define DtDEFINE_SENSOR_LIGHT_ATTR_ENCODER(attrName, arg1) \ 00096 DtDEFINE_LIGHT_ATTR_ENCODER(DtSensorEncoder, attrName, arg1); 00097 00098 #endif 00099 #endif 00100