MAK RTIspy API Documentation for HLA 1516
 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,
52  const char* theLabel, DtResponseFlag flag);
53 
55  void setRequestingFederate(DtFederateHandle requestingFederateVal);
56  DtFederateHandle requestingFederate() const;
57 
59  virtual void setLabel(const char* label);
60  virtual const char* label() const;
61 
63  void setResponseFlag(DtResponseFlag flag);
64  DtResponseFlag responseFlag() const;
65 
67  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
68 
69 public:
70 
72  static DtRtiMsg* create(const DtNetMsgHeader* initial,
73  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
74 
76  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
77 
79  static void addCallback(DtConnectionMgr* conn,
80  DtRestoreBegunCb cb, void* usr);
81  static void removeCallback(DtConnectionMgr* conn,
82  DtRestoreBegunCb cb, void* usr);
83 
84 protected:
85 
87  virtual DtNetSaveResponseMsg* netRestoreBegunMsg();
88  virtual const DtNetSaveResponseMsg* netRestoreBegunMsg() const;
89 
92 
94  virtual char* labelPtr();
95 
97  virtual int labelFieldSize() const;
98 
100  virtual void setLabelSize(int size);
101  virtual int labelSize() const;
102 
104  virtual int minSize(const char* theLabel=NULL) const;
105 
107  virtual DtRestoreBegunMsg* self() const;
108 
109 protected:
110 
111  char* myLabel;
112 };
113 
114 
116 {
117  return const_cast<DtRestoreBegunMsg*>( this );
118 }
119 
120 #endif
121 
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:115
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
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:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
DtHandle DtFederateHandle
Definition: internalTypes.h:29
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
char * myLabel
Definition: resBegMsg.h:111
Definition: resBegMsg.h:28
Definition: resBegMsg.h:25
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
DtResponseFlag
Definition: resBegMsg.h:22

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)