MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
queryInterTransportMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: queryInterTransportMsg.h,v $ $Revision: 1.0 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtQueryInterTransportMsg_H_
13 #define DtQueryInterTransportMsg_H_
14 
15 #include "rtiMsConfig.h"
16 #include "rtiMsg.h"
17 #include "netQueryInterMsg.h"
18 #include "vlutil/vlFedTarget.h"
19 
20 class DtConnectionMgr;
22 typedef void (*DtQueryInterTransportCb)(const DtQueryInterTransportMsg& msg, void* usr);
23 
25 {
26 public:
27 
29  DtQueryInterTransportMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
33  DtFederateHandle targetFed,
35  DtFederateHandle sendingFed,
36  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
43  virtual ~DtQueryInterTransportMsg();
44 
46  virtual DtRtiMsg* clone(bool copy = true) const;
47 
49  virtual void set(
50  DtFederateHandle targetFed,
52  DtFederateHandle sendingFed);
53 
55  virtual void setClassHandle(DtObjectClassHandle handle);
56  virtual DtObjectClassHandle classHandle() const;
57 
59  virtual void setRecipientFederate(DtFederateHandle hand);
60  virtual DtFederateHandle recipientFederate() const;
61 
63  virtual void setSendingFederate(DtFederateHandle hand);
64  virtual DtFederateHandle sendingFederate() const;
65 
67  virtual void setHandle(const DtInteractionClassHandle& handle);
68  virtual const DtInteractionClassHandle& handle() const;
69 
71  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
72 
73 public:
74 
76  static DtRtiMsg* create(const DtNetMsgHeader* initial,
77  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
78 
80  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
81 
83  static void addCallback(DtConnectionMgr *conn,
84  DtQueryInterTransportCb cb, void *usr);
85  static void removeCallback(DtConnectionMgr *conn,
86  DtQueryInterTransportCb cb, void *usr);
87 
88 protected:
89 
91  virtual int tagFieldSize() const;
92 
94  virtual DtNetQueryInterTransportMsg* netQueryInterTransportMsg();
95  virtual const DtNetQueryInterTransportMsg* netQueryInterTransportMsg() const;
96 
99 
101  virtual int minSize() const;
102 
104  virtual DtQueryInterTransportMsg* self() const;
105 
106 protected:
107 
108  int myDirty;
110 };
111 
112 
114 {
115  return const_cast<DtQueryInterTransportMsg*>( this );
116 }
117 
118 #endif
119 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
int myDirty
Definition: queryInterTransportMsg.h:108
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
virtual DtQueryInterTransportMsg * self() const
Casts away const-ness.
Definition: queryInterTransportMsg.h:113
DtHandle DtObjectClassHandle
Definition: internalTypes.h:48
DtHandle DtInteractionClassHandle
Definition: internalTypes.h:52
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
DtHandle DtFederateHandle
Definition: internalTypes.h:46
void(* DtQueryInterTransportCb)(const DtQueryInterTransportMsg &msg, void *usr)
Definition: queryInterTransportMsg.h:22
Definition: netQueryInterMsg.h:19
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
DtInteractionClassHandle * myHandle
Definition: queryInterTransportMsg.h:109
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
virtual int tagFieldSize(int encodedLength) const
Returns size of a tag field (including byte alignment adjustment) given the tag&#39;s encoded length...
Definition: queryInterTransportMsg.h:24

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)