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