MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
resBegMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: resBegMsg.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtRestoreBegunMsg_H_
13 #define DtRestoreBegunMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netSavRespMsg.h"
17 
18 class DtConnectionMgr;
19 class DtRestoreBegunMsg;
20 typedef void (*DtRestoreBegunCb)(const DtRestoreBegunMsg& inter, void* usr);
21 
23 {
26 };
27 
29 {
30 public:
31 
33  DtRestoreBegunMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 
35  DtRestoreBegunMsg(DtFederateHandle requestingFederateVal,
36  const char* labelVal,
37  DtResponseFlag flag,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  DtRestoreBegunMsg(const DtNetSaveResponseMsg* netRepMsg,
42  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  virtual ~DtRestoreBegunMsg();
46 
48  virtual DtRtiMsg* clone(bool copy = true) const;
49 
51  virtual void set(DtFederateHandle requestingFederateVal, const char* theLabel, DtResponseFlag flag,
52  bool adjustBufferSize = true);
53 
55  void setRequestingFederate(DtFederateHandle requestingFederateVal);
56  DtFederateHandle requestingFederate() const;
57 
59  virtual void setLabel(const char* label, bool adjustBufferSize = true);
60 
62  virtual const char* label() const;
63 
65  void setResponseFlag(DtResponseFlag flag);
66  DtResponseFlag responseFlag() const;
67 
69  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
70 
71 public:
72 
74  static DtRtiMsg* create(const DtNetMsgHeader* initial,
75  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
76 
78  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
79 
81  static void addCallback(DtConnectionMgr* conn,
82  DtRestoreBegunCb cb, void* usr);
83  static void removeCallback(DtConnectionMgr* conn,
84  DtRestoreBegunCb cb, void* usr);
85 
86 protected:
87 
89  virtual DtNetSaveResponseMsg* netRestoreBegunMsg();
90  virtual const DtNetSaveResponseMsg* netRestoreBegunMsg() const;
91 
94 
96  virtual char* labelPtr();
97 
99  virtual void setLabelSize(int size);
100  virtual int labelSize() const;
101 
103  virtual int minSize(const char* theLabel=NULL) const;
104 
106  virtual DtRestoreBegunMsg* self() const;
107 
108 };
109 
110 
112 {
113  return const_cast<DtRestoreBegunMsg*>( this );
114 }
115 
116 #endif
117 
void(* DtRestoreBegunCb)(const DtRestoreBegunMsg &inter, void *usr)
Definition: resBegMsg.h:20
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
virtual DtRestoreBegunMsg * self() const
Casts away const-ness.
Definition: resBegMsg.h:111
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Definition: resBegMsg.h:24
Definition: netSavRespMsg.h:19
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
DtHandle DtFederateHandle
Definition: internalTypes.h:46
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
Definition: resBegMsg.h:28
Definition: resBegMsg.h:25
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
DtResponseFlag
Definition: resBegMsg.h:22

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)