MAK RTIspy API Documentation for HLA Evolved
wwwStateReqMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: wwwStateReqMsg.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtWwwStateReqMsg_H_
13 #define DtWwwStateReqMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "rtiMsConfig.h"
17 #include "netWwwStateReqMsg.h"
18 
19 class DtConnectionMgr;
20 class DtWwwStateReqMsg;
22 typedef void (*DtWwwStateRequestCb)(const DtWwwStateReqMsg& inter, void* usr);
23 
24 
26 {
27 
28 public:
29 
31  DtWwwStateReqMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtWwwStateReqMsg(unsigned long connHandle, unsigned long requestType, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  virtual ~DtWwwStateReqMsg();
42 
44  virtual DtRtiMsg* clone(bool copy = true) const;
45 
47  virtual unsigned long targetConnectionId() const;
48  virtual void setTargetConnectionId( unsigned long handle );
49 
51  virtual unsigned long requestType() const;
52  virtual void setRequestType( unsigned long requestType );
53 
55  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
56 
57 public:
58 
60  static DtRtiMsg* create(const DtNetMsgHeader* initial,
61  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
62 
63  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
64 
66  static void addCallback(DtConnectionMgr* conn, DtWwwStateRequestCb cb, void* usr);
67  static void removeCallback(DtConnectionMgr* conn, DtWwwStateRequestCb cb, void* usr);
68 
69 protected:
70 
72  virtual DtNetWwwStateReqMsg* netWwwStateReqMsg();
73  virtual const DtNetWwwStateReqMsg* netWwwStateReqMsg() const;
74 
77 
79  virtual int minSize() const;
80 
81 };
82 
83 #endif
84 

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)