MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
saveReqTsoMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: saveReqTsoMsg.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSaveRequestTsoMsg_H_
13 #define DtSaveRequestTsoMsg_H_
14 
15 #ifdef DtTIME
16 
17 #include "saveTsoMsg.h"
18 
19 class DtConnectionMgr;
20 class DtSaveRequestTsoMsg;
21 typedef void (*DtSaveRequestTsoCb)(const DtSaveRequestTsoMsg& msg, void* usr);
22 
23 class DT_DLL_LRC DtSaveRequestTsoMsg : public DtSaveTsoMsg
24 {
25 public:
26 
28  DtSaveRequestTsoMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtSaveRequestTsoMsg(
32  const char* theLabel,
33 #ifdef DtIFSPEC1516
34  rti1516::LogicalTime const & theTime,
35 #elif defined(DtIFSPEC1516E)
36  rti1516e::LogicalTime const & theTime,
37 #else
38  RTI::FedTime const & theTime,
39 #endif
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
43  DtSaveRequestTsoMsg(const DtNetSaveMsg* netRepMsg,
44  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
45 
47  virtual ~DtSaveRequestTsoMsg();
48 
50  virtual DtRtiMsg* clone(bool copy = true) const;
51 
52 public:
53 
55  static DtRtiMsg* create(const DtNetMsgHeader* initial,
56  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
57 
59  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
60 
62  static void addCallback(DtConnectionMgr *conn,
63  DtSaveRequestTsoCb cb, void *usr);
64  static void removeCallback(DtConnectionMgr *conn,
65  DtSaveRequestTsoCb cb, void *usr);
66 
67 protected:
68 
70  virtual DtRtiMsgKind internalDtRtiMsgKind();
71 
72 protected:
73 
74 };
75 
76 #endif
77 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
Definition: netSaveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
Definition: LogicalTime.h:27

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)