MAK RTIspy API Documentation for HLA 1.3
wwwControlRspMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: wwwControlRspMsg.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtWwwControlRspMsg_H_
13 #define DtWwwControlRspMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netWwwControlMsg.h"
17 #include <vector>
18 
19 class DtConnectionMgr;
20 class DtWwwControlRspMsg;
22 typedef void (*DtWwwControlRspCb)(const DtWwwControlRspMsg& inter, void* usr);
23 
24 
31 {
32 
33 public:
34 
35  typedef std::vector< std::pair< MAKRti::DtString, MAKRti::DtString > > ParameterValuePairList;
36 
38  DtWwwControlRspMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  DtWwwControlRspMsg( unsigned long commandId, unsigned long connId, unsigned long fedexId,
42  unsigned long fedId, const MAKRti::DtString& xml,
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
44 
47  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
48 
50  virtual ~DtWwwControlRspMsg();
51 
53  virtual DtRtiMsg* clone(bool copy = true) const;
54 
56  virtual unsigned long commandId() const;
57  virtual void setCommandId( unsigned long commandId );
58 
60  virtual unsigned long connectionId() const;
61  virtual void setConnectionId( unsigned long connId );
62 
64  virtual unsigned long sourceFederateHandle() const;
65  virtual void setSourceFederateHandle( unsigned long fedId );
66 
68  virtual MAKRti::DtString command() const;
69  virtual void setCommand( const MAKRti::DtString& command );
70 
72  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
73 
74 
75 public:
76 
78  static DtRtiMsg* create(const DtNetMsgHeader* initial,
79  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
80 
81  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
82 
84  static void addCallback(DtConnectionMgr* conn, DtWwwControlRspCb cb, void* usr);
85  static void removeCallback(DtConnectionMgr* conn, DtWwwControlRspCb cb, void* usr);
86 
87 protected:
88 
90  virtual DtNetWwwControlMsg* netWwwControlRspMsg();
91  virtual const DtNetWwwControlMsg* netWwwControlRspMsg() const;
92 
95 
97  virtual char* netMsgCommand();
98  virtual const char* netMsgCommand() const;
99 
101  virtual int minSize() const;
102 
103 };
104 
105 #endif

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)