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