MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
resRepMsg.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: resRepMsg.h,v $ $Revision: 1.10 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtRestoreReplyMsg_H_
13 #define DtRestoreReplyMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netResRep.h"
17 
18 
19 class DtConnectionMgr;
20 class DtRestoreReplyMsg;
21 typedef void (*DtRestoreReplyCb)(const DtRestoreReplyMsg& msg, void* usr);
22 
23 
25 {
26 public:
27 
28  enum replyCodes
29  {
30  DT_RESTORE_OK = 0,
31  DT_RESTORE_NO_LABEL = 1,
32  DT_RESTORE_WRONG_CONFIG = 2,
33  DT_RESTORE_IN_PROCESS = 3
34  };
35 
37  DtRestoreReplyMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38 
41  const char* theLabel,
42  const replyCodes response,
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 
46  DtRestoreReplyMsg(const DtNetRestoreReplyMsg* netRepMsg,
47  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
48 
50  virtual ~DtRestoreReplyMsg();
51 
53  virtual DtRtiMsg* clone(bool copy = true) const;
54 
56  virtual void setLabel(const char* label);
57  virtual const char* label() const;
58 
60  virtual void setReply(const replyCodes value);
61  virtual replyCodes reply() const;
62 
64  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
65 
70  virtual unsigned long destinationID() const;
71  virtual void setDestinationID(unsigned long destinationIDValue);
72 
73 public:
74 
76  static DtRtiMsg* create(const DtNetMsgHeader* initial,
77  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
79  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
80 
82  static void addCallback(DtConnectionMgr *conn,
83  DtRestoreReplyCb cb, void *usr);
84  static void removeCallback(DtConnectionMgr *conn,
85  DtRestoreReplyCb cb, void *usr);
86 
87 protected:
89  virtual char* labelPtr();
90 
92  virtual DtNetRestoreReplyMsg* netRestoreReplyMsg();
93  virtual const DtNetRestoreReplyMsg* netRestoreReplyMsg() const;
94 
97 
99  virtual int minSize(const char* theLabel=NULL) const;
100 
102  virtual void setLabelSize(int size);
103  virtual int labelSize() const;
104 
106  virtual DtRestoreReplyMsg* self() const;
107 
108 };
109 
111 {
112  return const_cast<DtRestoreReplyMsg*>( this );
113 }
114 
115 #endif
Definition: netResRep.h:19
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
void(* DtRestoreReplyCb)(const DtRestoreReplyMsg &msg, void *usr)
Definition: resRepMsg.h:21
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
Definition: resRepMsg.h:24
virtual DtRestoreReplyMsg * self() const
Casts away const-ness.
Definition: resRepMsg.h:110
replyCodes
Definition: resRepMsg.h:28
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)