![]() |
VR-Link API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 #if DtHLA 00006 00009 00010 #ifndef DtGenericObjectEncoder_H_ 00011 #define DtGenericObjectEncoder_H_ 00012 00013 #include "hStateEncoder.h" 00014 00017 class DT_DLL_VL DtGenericStateRepository; 00018 00021 00022 class DT_DLL_VL DtGenericObjectEncoder : public DtHlaStateEncoder 00023 { 00024 public: 00025 00027 DtGenericObjectEncoder(DtExerciseConn* exConn, DtObjClassDesc* classDesc); 00028 00030 virtual ~DtGenericObjectEncoder(); 00031 00038 virtual void encode(const DtStateRepository& stateRep, 00039 const DtStateRepository& asSeenByRemote, 00040 const RTI::AttributeHandleSet& eligibleAttrs, 00041 const RTI::AttributeHandleSet& requiredAttrs, 00042 DtStateMsg* msg); 00043 00044 protected: 00045 00046 virtual bool valueDiffers( 00047 const DtGenericStateRepository& stateRep, 00048 const DtGenericStateRepository& asSeenByRemote, 00049 RTI::AttributeHandle handle); 00050 }; 00051 00052 #endif 00053 #endif 00054