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