![]() |
VR-Link API Documentation for DIS
|
00001 /********************************************************************* 00002 ** Copyright (c) 2006 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: tDetInterface.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 #ifndef tDetInterface_H_ 00009 #define tDetInterface_H_ 00010 00014 00015 #if DtTENA 00016 00017 #include "coLromMapExport.h" 00018 #include <vl/tMessageInterface.h> 00019 #include <vl/tDetInter.h> 00020 #include <TENA/Engagement/Detonation/Includes.h> 00021 00022 class DtExerciseConn; 00023 00029 class DT_DLL_COMMONLROM DtDetonationInterface : public DtMessageInterface 00030 { 00031 public: 00033 DtDetonationInterface(); 00034 00036 virtual ~DtDetonationInterface(); 00037 00039 virtual void send(const DtInteraction& inter, DtExerciseConn& exConn) const; 00040 00042 virtual void addCallback(DtExerciseConn* conn, void* usr); 00043 00045 virtual void removeCallback(DtExerciseConn* conn, void* usr); 00046 00047 public: 00048 00051 static void encode(const DtDetonationInteraction& inter, 00052 TENA::Engagement::Detonation::Pointer msgPtr, 00053 const DtGlobalObjectDesignator& messageId); 00054 00056 static void decode(const TENA::Engagement::Detonation::Pointer msgPtr, 00057 DtDetonationInteraction* inter); 00058 00059 }; 00060 00061 00062 00063 #endif 00064 #endif 00065 00066