MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
retractMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: retractMsg.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtRetractMsg_H_
13 #define DtRetractMsg_H_
14 
15 #ifdef DtTIME
16 
17 #include "rtiMsg.h"
18 #include "netRetractMsg.h"
19 
20 class DtConnectionMgr;
21 class DtRetractMsg;
22 typedef void (*DtRetractCb)(const DtRetractMsg& msg, void* usr);
23 
24 class DT_DLL_LRC DtRetractMsg : public DtRtiMsg
25 {
26 public:
27 
29  DtRetractMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
32  DtRetractMsg(
33  unsigned long serialNumberVal,
34  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
37  DtRetractMsg(const DtNetRetractMsg* netRepMsg,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  virtual ~DtRetractMsg();
42 
44  virtual DtRtiMsg* clone(bool copy = true) const;
45 
47  virtual void set(unsigned long serialNumberVal);
48 
50  virtual void setSerialNumber(unsigned long serialNumberVal);
51  virtual unsigned long serialNumber() const;
52 
54  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
55 
56 public:
57 
59  static DtRtiMsg* create(const DtNetMsgHeader* initial,
60  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
61 
63  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
64 
66  static void addCallback(DtConnectionMgr *conn,
67  DtRetractCb cb, void *usr);
68  static void removeCallback(DtConnectionMgr *conn,
69  DtRetractCb cb, void *usr);
70 
71 protected:
72 
75 
77  virtual DtNetRetractMsg* netRetractMsg();
78  virtual const DtNetRetractMsg* netRetractMsg() const;
79 
81  virtual int minSize() const;
82 
84  virtual DtRetractMsg* self() const;
85 
86 protected:
88 };
89 
90 inline DtRetractMsg* DtRetractMsg::self() const
91 {
92  return const_cast<DtRetractMsg*>( this );
93 }
94 
95 #endif
96 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
virtual unsigned long serialNumber() const
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
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
Format for arranging the data for a retract message.
Definition: netRetractMsg.h:21
virtual void setSerialNumber(unsigned long serialNumberValue)
Set/Get event retraction serial number Used in timestamped messages.

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)