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

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)