![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: resReqMsg.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtRestoreRequestMsg_H_ 00013 #define DtRestoreRequestMsg_H_ 00014 00015 #include "saveMsg.h" 00016 00017 00018 class DtConnectionMgr; 00019 class DtRestoreRequestMsg; 00020 typedef void (*DtRestoreRequestCb)(const DtRestoreRequestMsg& msg, void* usr); 00021 00022 00023 class DT_DLL_LRC DtRestoreRequestMsg : public DtSaveMsg 00024 { 00025 public: 00026 00028 DtRestoreRequestMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00029 00031 DtRestoreRequestMsg( 00032 const char* theLabel, 00033 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00034 00036 DtRestoreRequestMsg(const DtNetSaveMsg* netRepMsg, 00037 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00038 00040 virtual ~DtRestoreRequestMsg(); 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 DtRestoreRequestCb cb, void *usr); 00056 static void removeCallback(DtConnectionMgr *conn, 00057 DtRestoreRequestCb cb, void *usr); 00058 00059 protected: 00060 00062 virtual DtRtiMsgKind internalDtRtiMsgKind(); 00063 00064 protected: 00065 00066 }; 00067 00068 #endif