MAK RTIspy API Documentation for HLA 1.3
 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 

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)