MAK RTIspy API Documentation for HLA Evolved
wwwFederateStateReqMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: wwwFederateStateReqMsg.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtWwwFederateStateReqMsg_H_
13 #define DtWwwFederateStateReqMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netWwwFederateStateMsg.h"
17 
18 class DtConnectionMgr;
21 typedef void (*DtWwwFederateStateRequestCb)(const DtWwwFederateStateReqMsg& inter, void* usr);
22 
23 
25 {
26 
27 public:
28 
30  DtWwwFederateStateReqMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
31 
33  DtWwwFederateStateReqMsg( unsigned long connId, unsigned long federationHandle,
34  unsigned long federateHandle, unsigned long requestType, bool isProxied,
35  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36 
39  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
42  virtual ~DtWwwFederateStateReqMsg();
43 
45  virtual DtRtiMsg* clone(bool copy = true) const;
46 
48  virtual unsigned long targetConnectionId() const;
49  virtual void setTargetConnectionId( unsigned long connId );
50 
52  virtual unsigned long targetFederateHandle() const;
53  virtual void setTargetFederateHandle( unsigned long handle );
54 
56  virtual unsigned long requestType() const;
57  virtual void setRequestType( unsigned long handle );
58 
60  virtual bool isProxied() const;
61  virtual void setProxied( bool val );
62 
64  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
65 
66 public:
67 
69  static DtRtiMsg* create(const DtNetMsgHeader* initial,
70  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
71 
72  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
73 
75  static void addCallback(DtConnectionMgr* conn, DtWwwFederateStateRequestCb cb, void* usr);
76  static void removeCallback(DtConnectionMgr* conn, DtWwwFederateStateRequestCb cb, void* usr);
77 
78 protected:
79 
81  virtual DtNetWwwFederateStateMsg* netWwwFederateStateMsg();
82  virtual const DtNetWwwFederateStateMsg* netWwwFederateStateMsg() const;
83 
86 
88  virtual int minSize() const;
89 
90 };
91 
92 #endif
93 

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)