MAK RTIspy API Documentation for HLA 1.3
saveReqTsoMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: saveReqTsoMsg.h,v $ $Revision: 1.6 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtSaveRequestTsoMsg_H_
00013 #define DtSaveRequestTsoMsg_H_
00014 
00015 #ifdef DtTIME
00016 
00017 #include "saveTsoMsg.h"
00018 
00019 class DtConnectionMgr;
00020 class DtSaveRequestTsoMsg;
00021 typedef void (*DtSaveRequestTsoCb)(const DtSaveRequestTsoMsg& msg, void* usr);
00022 
00023 class DT_DLL_LRC DtSaveRequestTsoMsg : public DtSaveTsoMsg
00024 {
00025 public:
00026 
00028    DtSaveRequestTsoMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00029 
00031    DtSaveRequestTsoMsg(
00032       const char* theLabel,
00033 #ifdef DtIFSPEC1516
00034       rti1516::LogicalTime const & theTime,
00035 #elif defined(DtIFSPEC1516E)
00036       rti1516e::LogicalTime const & theTime,
00037 #else
00038       RTI::FedTime const & theTime,
00039 #endif
00040       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00041 
00043    DtSaveRequestTsoMsg(const DtNetSaveMsg* netRepMsg,
00044       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00045 
00047    virtual ~DtSaveRequestTsoMsg();
00048 
00050    virtual DtRtiMsg* clone(bool copy = true) const; 
00051 
00052 public:
00053 
00055    static DtRtiMsg* create(const DtNetMsgHeader* initial, 
00056       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);    
00057 
00059    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);    
00060 
00062    static void addCallback(DtConnectionMgr *conn, 
00063       DtSaveRequestTsoCb cb, void *usr);
00064    static void removeCallback(DtConnectionMgr *conn, 
00065       DtSaveRequestTsoCb cb, void *usr);
00066    
00067 protected:
00068    
00070    virtual DtRtiMsgKind internalDtRtiMsgKind();
00071 
00072 protected:
00073 
00074 };
00075 
00076 #endif //! DtTIME
00077 #endif //! DtSaveRequestTsoMsg_H_

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)