![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: execDisconnectMsg.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtRtiExecDisconnectMsg_H_ 00013 #define DtRtiExecDisconnectMsg_H_ 00014 00015 #include "disconnectMsg.h" 00016 00017 class DtConnectionMgr; 00018 class DtRtiExecDisconnectMsg; 00019 typedef void (*DtRtiExecDisconnectCb)(const DtRtiExecDisconnectMsg& inter, void* usr); 00020 00021 class DT_DLL_LRC DtRtiExecDisconnectMsg : public DtDisconnectMsg 00022 { 00023 public: 00024 00026 DtRtiExecDisconnectMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00027 00029 DtRtiExecDisconnectMsg(const DtNetConnectMsg* netRep, 00030 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00031 00033 DtRtiExecDisconnectMsg(unsigned long handle, 00034 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00035 00037 virtual ~DtRtiExecDisconnectMsg(); 00038 00040 virtual DtRtiMsg* clone(bool copy = true) const; 00041 00042 public: 00043 00045 static DtRtiMsg* create(const DtNetMsgHeader* initial, 00046 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00047 00048 static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00049 00051 static void addCallback(DtConnectionMgr* conn, 00052 DtRtiExecDisconnectCb cb, void* usr, bool isMomCallback=false); 00053 static void removeCallback(DtConnectionMgr* conn, 00054 DtRtiExecDisconnectCb cb, void* usr, bool isMomCallback=false); 00055 00056 protected: 00057 00059 virtual DtRtiMsgKind internalDtRtiMsgKind(); 00060 00061 protected: 00062 00063 }; 00064 00065 #endif 00066