MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
networkMapReqMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: networkMapReqMsg.h,v $ $Revision: 1.3 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtNetworkMapReqMsg_H_
13 #define DtNetworkMapReqMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "rtiMsConfig.h"
17 #include "netNetworkMapReqMsg.h"
18 
19 class DtConnectionMgr;
20 class DtNetworkMapReqMsg;
22 typedef void (*DtNetworkMapRequestCb)(const DtNetworkMapReqMsg& msg, void* usr);
23 
24 
26 {
27 
28 public:
29 
31  DtNetworkMapReqMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtNetworkMapReqMsg(unsigned long sourceId, unsigned long requestorId,
35  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36 
39  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
42  virtual ~DtNetworkMapReqMsg();
43 
45  virtual DtRtiMsg* clone(bool copy = true) const;
46 
49  virtual unsigned long sourceId() const;
50  virtual void setSourceId( unsigned long connId );
51 
55  virtual unsigned long requestorId() const;
56  virtual void setRequestorId( unsigned long connId );
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, DtNetworkMapRequestCb cb, void* usr);
71  static void removeCallback(DtConnectionMgr* conn, DtNetworkMapRequestCb cb, void* usr);
72 
73 protected:
74 
76  virtual DtNetNetworkMapReqMsg* netNetworkMapReqMsg();
77  virtual const DtNetNetworkMapReqMsg* netNetworkMapReqMsg() const;
78 
81 
83  virtual int minSize() const;
84 
85 };
86 
87 #endif
88 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
void(* DtNetworkMapRequestCb)(const DtNetworkMapReqMsg &msg, void *usr)
Definition: networkMapReqMsg.h:22
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Definition: netNetworkMapReqMsg.h:20
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
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
Definition: networkMapReqMsg.h:25

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)