![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 2005 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: execShutdownForwarderMsg.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtRtiExecShutdownForwarderMsg_H_ 00013 #define DtRtiExecShutdownForwarderMsg_H_ 00014 00015 #include "rtiMsg.h" 00016 00017 00018 class DtConnectionMgr; 00019 class DtRtiExecShutdownForwarderMsg; 00020 class DtNetExecShutdownForwarderMsg; 00021 typedef void (*DtRtiExecShutdownCb)(const DtRtiExecShutdownForwarderMsg& inter, void* usr); 00022 00023 class DT_DLL_LRC DtRtiExecShutdownForwarderMsg : public DtRtiMsg 00024 { 00025 public: 00026 00028 DtRtiExecShutdownForwarderMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00029 00031 DtRtiExecShutdownForwarderMsg(const DtNetExecShutdownForwarderMsg* netRep, 00032 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00033 00035 virtual ~DtRtiExecShutdownForwarderMsg(); 00036 00038 virtual DtRtiMsg* clone(bool copy = true) const; 00039 00041 virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const; 00042 00043 public: 00044 00046 static DtRtiMsg* create(const DtNetMsgHeader* initial, 00047 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00048 00049 static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00050 00052 static void addCallback(DtConnectionMgr* conn, 00053 DtRtiExecShutdownCb cb, void* usr, bool isMomCallback=false); 00054 static void removeCallback(DtConnectionMgr* conn, 00055 DtRtiExecShutdownCb cb, void* usr, bool isMomCallback=false); 00056 00057 protected: 00058 00060 virtual DtNetExecShutdownForwarderMsg* netExecShutdownForwarderMsg(); 00061 virtual const DtNetExecShutdownForwarderMsg* netExecShutdownForwarderMsg() const; 00062 00064 virtual DtRtiMsgKind internalDtRtiMsgKind(); 00065 00067 virtual int minSize() const; 00068 00070 virtual DtRtiExecShutdownForwarderMsg* self() const; 00071 00072 protected: 00073 00074 }; 00075 00076 00077 inline DtRtiExecShutdownForwarderMsg* DtRtiExecShutdownForwarderMsg::self() const 00078 { 00079 return const_cast<DtRtiExecShutdownForwarderMsg*>( this ); 00080 } 00081 00082 #endif 00083