![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2005 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: initiatedSaveMsg.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtInitiatedSaveMsg_H_ 00013 #define DtInitiatedSaveMsg_H_ 00014 00015 #include "nullMsg.h" 00016 00017 class DtConnectionMgr; 00018 class DtInitiatedSaveMsg; 00019 typedef void (*DtInitiatedSaveCb)(const DtInitiatedSaveMsg& inter, void* usr); 00020 00021 class DT_DLL_LRC DtInitiatedSaveMsg : public DtNullMsg 00022 { 00023 public: 00024 00026 DtInitiatedSaveMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00027 00029 DtInitiatedSaveMsg(const DtNetNullMsg* netRep, 00030 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00031 00033 virtual ~DtInitiatedSaveMsg(); 00034 00036 virtual DtRtiMsg* clone(bool copy = true) const; 00037 00038 public: 00039 00041 static DtRtiMsg* create(const DtNetMsgHeader* initial, 00042 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00043 00044 static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00045 00047 static void addCallback(DtConnectionMgr* conn, 00048 DtInitiatedSaveCb cb, void* usr); 00049 static void removeCallback(DtConnectionMgr* conn, 00050 DtInitiatedSaveCb cb, void* usr); 00051 00052 protected: 00053 00055 virtual DtRtiMsgKind internalDtRtiMsgKind(); 00056 00057 protected: 00058 00059 }; 00060 00061 #endif 00062