![]() |
VR-Link API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00007 #ifndef hEventRepInt_H_ 00008 #define hEventRepInt_H_ 00009 00010 #if DtHLA 00011 00012 #include "hInterWData.h" 00013 #include "hostStructs.h" 00014 #include <matrix/vlMath.h> 00015 00016 00017 00021 00022 class DT_DLL_VL DtExerciseConn; 00023 class DT_DLL_VL DtEventReportInteraction; 00024 00025 00026 00028 typedef void (*DtEventReportInteractionCb) 00029 (DtEventReportInteraction* inter, void* usr); 00030 00037 00038 class DT_DLL_VL DtEventReportInteraction : public DtInteractionWithData 00039 { 00040 public: 00041 00043 DtEventReportInteraction(); 00044 00046 virtual ~DtEventReportInteraction(); 00047 00049 DtEventReportInteraction(const DtEventReportInteraction& orig); 00050 00052 DtEventReportInteraction& operator=( 00053 const DtEventReportInteraction& orig); 00054 00056 virtual void printData() const; 00057 00059 virtual void printDataToStream(std::ostream& stream) const; 00060 00062 virtual void setSenderId(const DtEntityIdentifier& id); 00063 virtual const DtEntityIdentifier& senderId() const; 00064 00066 virtual void setReceiverId(const DtEntityIdentifier& id); 00067 virtual const DtEntityIdentifier& receiverId() const; 00068 00070 virtual void setEventType(DtEventType type); 00071 virtual DtEventType eventType() const; 00072 00074 virtual const char* name() const; 00075 00076 public: 00077 00080 static DtInteraction* create(); 00081 00084 static void addCallback(DtExerciseConn* conn, 00085 DtEventReportInteractionCb cb, void* usr, 00086 DtDDMRegionSP region = DtDDMRegionSP()); 00087 static void removeCallback(DtExerciseConn* conn, 00088 DtEventReportInteractionCb cb, void* usr, 00089 DtDDMRegionSP region = DtDDMRegionSP()); 00090 00091 protected: 00092 00093 DtEntityIdentifier myOrigEnt; 00094 DtEntityIdentifier myReceiveEnt; 00095 DtEventType myEventType; 00096 }; 00097 00098 #endif 00099 #endif 00100