MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
savReqMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: savReqMsg.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSaveRequestMsg_H_
13 #define DtSaveRequestMsg_H_
14 
15 #include "saveMsg.h"
16 
17 
18 class DtConnectionMgr;
19 class DtSaveRequestMsg;
20 typedef void (*DtSaveRequestCb)(const DtSaveRequestMsg& msg, void* usr);
21 
22 
24 {
25 public:
26 
28  DtSaveRequestMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtSaveRequestMsg(unsigned long requestIDValue,
32  const char* theLabel,
33  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 
36  DtSaveRequestMsg(const DtNetSaveMsg* netRepMsg,
37  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38 
40  virtual ~DtSaveRequestMsg();
41 
43  virtual DtRtiMsg* clone(bool copy = true) const;
44 
46  virtual void set(unsigned long theRequestID, const char* theLabel);
47 
49  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
50 
51 public:
52 
54  static DtRtiMsg* create(const DtNetMsgHeader* initial,
55  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
56 
58  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
59 
61  static void addCallback(DtConnectionMgr *conn,
62  DtSaveRequestCb cb, void *usr);
63  static void removeCallback(DtConnectionMgr *conn,
64  DtSaveRequestCb cb, void *usr);
65 
66 protected:
67 
70 
71 protected:
72 
73  char* myTag;
74 };
75 
76 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
A base class for the various save/restore messages.
Definition: saveMsg.h:20
virtual DtRtiMsgKind internalDtRtiMsgKind()
Returns the kind of this message.
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
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Print the data section.
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
void(* DtSaveRequestCb)(const DtSaveRequestMsg &msg, void *usr)
Definition: savReqMsg.h:20
Definition: savReqMsg.h:23
Definition: netSaveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
void set(const char *theLabel)
Set all fields.
char * myTag
Definition: savReqMsg.h:73

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)