MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
forwarderConnectionLostMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: forwarderConnectionLostMsg.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtForwarderConnectionLostMsg_H_
13 #define DtForwarderConnectionLostMsg_H_
14 
15 #include "rtiMsConfig.h"
16 #include "rtiMsg.h"
17 
18 class DtConnectionMgr;
21 typedef void (*DtForwarderConnectionLostCb)(const DtForwarderConnectionLostMsg& inter, void* usr);
22 
24 {
25 public:
26 
28  DtForwarderConnectionLostMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
32  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
33 
35  DtForwarderConnectionLostMsg( unsigned int senderId, unsigned int lostId,
36  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
40 
42  virtual DtRtiMsg* clone(bool copy = true) const;
43 
44 
46  virtual void set( unsigned int senderId, unsigned int lostId );
47 
50  virtual void setSenderId( unsigned int senderId );
51  virtual unsigned int senderId() const;
52 
55  virtual void setLostId( unsigned int lostId );
56  virtual unsigned int lostId() const;
57 
59  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
60 
61 public:
62 
64  static DtRtiMsg* create(const DtNetMsgHeader* initial,
65  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
66 
67  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
68 
70  static void addCallback(DtConnectionMgr* conn,
71  DtForwarderConnectionLostCb cb, void* usr, bool isMomCallback=false);
72  static void removeCallback(DtConnectionMgr* conn,
73  DtForwarderConnectionLostCb cb, void* usr, bool isMomCallback=false);
74 
75 protected:
76 
78  virtual DtNetForwarderConnectionLostMsg* netForwarderConnectionLostMsg();
79  virtual const DtNetForwarderConnectionLostMsg* netForwarderConnectionLostMsg() const;
80 
83 
85  virtual int minSize() const;
86 
88  virtual DtForwarderConnectionLostMsg* self() const;
89 
90 protected:
91 
92 };
93 
95 {
96  return const_cast<DtForwarderConnectionLostMsg*>( this );
97 }
98 
99 
100 #endif
101 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
Definition: forwarderConnectionLostMsg.h:23
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Definition: netForwarderConnectionLostMsg.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
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
virtual DtForwarderConnectionLostMsg * self() const
Casts away const-ness.
Definition: forwarderConnectionLostMsg.h:94
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
void(* DtForwarderConnectionLostCb)(const DtForwarderConnectionLostMsg &inter, void *usr)
Definition: forwarderConnectionLostMsg.h:21

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)