MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
networkMapRspMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: networkMapRspMsg.h,v $ $Revision: 1.3 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtNetworkMapRspMsg_H_
13 #define DtNetworkMapRspMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "rtiMsConfig.h"
17 #include "netNetworkMapRspMsg.h"
18 
19 class DtConnectionMgr;
20 class DtNetworkMapRspMsg;
22 typedef void (*DtNetworkMapResponseCb)(const DtNetworkMapRspMsg& msg, void* usr);
23 
24 
26 {
27 
28 public:
29 
31  DtNetworkMapRspMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtNetworkMapRspMsg( unsigned long sourceId, unsigned long requestorId,
35  const MAKRti::DtString& xml, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
36 
39  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
42  virtual ~DtNetworkMapRspMsg();
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 const MAKRti::DtString& payload() const;
60  virtual void setPayload( const MAKRti::DtString& xml );
61 
63  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
64 
65 public:
66 
68  static DtRtiMsg* create(const DtNetMsgHeader* initial,
69  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
70 
71  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
72 
74  static void addCallback(DtConnectionMgr* conn, DtNetworkMapResponseCb cb, void* usr);
75  static void removeCallback(DtConnectionMgr* conn, DtNetworkMapResponseCb cb, void* usr);
76 
77 protected:
78 
80  virtual DtNetNetworkMapRspMsg* netNetworkMapRspMsg();
81  virtual const DtNetNetworkMapRspMsg* netNetworkMapRspMsg() const;
82 
85 
87  virtual char* netMsgPayload();
88 
90  virtual int minSize() const;
91 
92 protected:
93 
95  MAKRti::DtString myXmlResponse;
96 
97 };
98 
99 #endif
100 

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)