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

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)