![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: restoreMsg.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtRestoreMsg_H_ 00013 #define DtRestoreMsg_H_ 00014 00015 #include "saveMsg.h" 00016 00017 00018 class DtConnectionMgr; 00019 class DtRestoreMsg; 00020 typedef void (*DtRestoreCb)(const DtRestoreMsg& msg, void* usr); 00021 00022 00023 class DT_DLL_LRC DtRestoreMsg : public DtSaveMsg 00024 { 00025 public: 00026 00028 DtRestoreMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00029 00031 DtRestoreMsg( 00032 const char* theLabel, 00033 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00034 00036 DtRestoreMsg(const DtNetSaveMsg* netRepMsg, 00037 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00038 00040 virtual ~DtRestoreMsg(); 00041 00043 virtual DtRtiMsg* clone(bool copy = true) const; 00044 00045 public: 00046 00048 static DtRtiMsg* create(const DtNetMsgHeader* initial, 00049 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00051 static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00052 00054 static void addCallback(DtConnectionMgr *conn, 00055 DtRestoreCb cb, void *usr); 00056 static void removeCallback(DtConnectionMgr *conn, 00057 DtRestoreCb cb, void *usr); 00058 00059 protected: 00060 00062 virtual DtRtiMsgKind internalDtRtiMsgKind(); 00063 00064 protected: 00065 00066 }; 00067 00068 #endif