MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
forwarderPingMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: forwarderPingMsg.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtForwarderPingMsg_H_
13 #define DtForwarderPingMsg_H_
14 
15 #include "rtiMsConfig.h"
16 #include "rtiMsg.h"
17 
18 class DtConnectionMgr;
19 class DtForwarderPingMsg;
21 typedef void (*DtForwarderPingCb)(const DtForwarderPingMsg& inter, void* usr);
22 
24 {
25 public:
27  {
28  PingRequest = 0,
30  PingResponseNotFound
31  };
32 
34  DtForwarderPingMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  DtForwarderPingMsg( unsigned long target, DtPingStatus status,
42  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  virtual ~DtForwarderPingMsg();
46 
48  virtual DtRtiMsg* clone(bool copy = true) const;
49 
50 
52  virtual void set( unsigned long target, DtPingStatus status );
53 
55  virtual void setPingStatus( DtPingStatus status );
56  virtual DtPingStatus pingStatus() const;
57 
60  virtual void setDestination( unsigned long target );
61  virtual unsigned long destination() const;
62 
64  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
65 
66 public:
67 
69  static DtRtiMsg* create(const DtNetMsgHeader* initial,
70  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
71 
72  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
73 
75  static void addCallback(DtConnectionMgr* conn,
76  DtForwarderPingCb cb, void* usr, bool isMomCallback=false);
77  static void removeCallback(DtConnectionMgr* conn,
78  DtForwarderPingCb cb, void* usr, bool isMomCallback=false);
79 
80 protected:
81 
83  virtual DtNetForwarderPingMsg* netForwarderPingMsg();
84  virtual const DtNetForwarderPingMsg* netForwarderPingMsg() const;
85 
88 
90  virtual int minSize() const;
91 
93  virtual DtForwarderPingMsg* self() const;
94 
95 protected:
96 
97 };
98 
100 {
101  return const_cast<DtForwarderPingMsg*>( this );
102 }
103 
104 
105 #endif
106 
Definition: netForwarderPingMsg.h:19
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
void(* DtForwarderPingCb)(const DtForwarderPingMsg &inter, void *usr)
Definition: forwarderPingMsg.h:21
virtual DtForwarderPingMsg * self() const
Casts away const-ness.
Definition: forwarderPingMsg.h:99
DtPingStatus
Definition: forwarderPingMsg.h:26
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
Definition: forwarderPingMsg.h:29
Definition: forwarderPingMsg.h:23

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)