MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
resEndMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: resEndMsg.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtRestoreEndMsg_H_
13 #define DtRestoreEndMsg_H_
14 
15 #include "saveMsg.h"
16 
17 class DtConnectionMgr;
18 class DtRestoreEndMsg;
19 typedef void (*DtRestoreEndCb)(const DtRestoreEndMsg& msg, void* usr);
20 
22 {
29 };
30 
32 {
33 public:
34 
36  DtRestoreEndMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
40  const char* theLabel,
41  DtEndRestoreResult theResult,
42  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  DtRestoreEndMsg(const DtNetSaveMsg* netRepMsg,
46  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
47 
49  virtual ~DtRestoreEndMsg();
50 
52  virtual DtRtiMsg* clone(bool copy = true) const;
53 
55  virtual void set(const char* theLabel,
56  DtEndRestoreResult theResult);
57 
59  virtual void setEndResult(DtEndRestoreResult theResult);
60  virtual DtEndRestoreResult endResult() const;
61 
62 public:
63 
65  static DtRtiMsg* create(const DtNetMsgHeader* initial,
66  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
68  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
69 
71  static void addCallback(DtConnectionMgr *conn,
72  DtRestoreEndCb cb, void *usr);
73  static void removeCallback(DtConnectionMgr *conn,
74  DtRestoreEndCb cb, void *usr);
75 
76 protected:
77 
78 
81 
82 
83 protected:
84 
85 };
86 
87 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
A base class for the various save/restore messages.
Definition: saveMsg.h:20
void(* DtRestoreEndCb)(const DtRestoreEndMsg &msg, void *usr)
Definition: resEndMsg.h:19
Definition: resEndMsg.h:24
virtual DtRtiMsgKind internalDtRtiMsgKind()
Returns the kind of this message.
Definition: resEndMsg.h:28
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: resEndMsg.h:31
Definition: resEndMsg.h:27
DtEndRestoreResult
Definition: resEndMsg.h:21
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
Definition: resEndMsg.h:23
Definition: resEndMsg.h:25
Definition: netSaveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
void set(const char *theLabel)
Set all fields.
Definition: resEndMsg.h:26

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)