MAK RTIspy API Documentation for HLA 1.3
wwwStateRspMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: wwwStateRspMsg.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtWwwStateRspMsg_H_
13 #define DtWwwStateRspMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "rtiMsConfig.h"
17 #include "netWwwStateRspMsg.h"
18 
19 class DtConnectionMgr;
20 class DtWwwStateRspMsg;
22 typedef void (*DtWwwStateResponseCb)(const DtWwwStateRspMsg& inter, void* usr);
23 
24 
26 {
27 
28 public:
29 
31  DtWwwStateRspMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtWwwStateRspMsg(unsigned long handle, unsigned long responseType, const MAKRti::DtString& xml,
35  bool replaceExistingNotAppend = true, bool isStateFragment = false,
36  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
43  virtual ~DtWwwStateRspMsg();
44 
46  virtual DtRtiMsg* clone(bool copy = true) const;
47 
49  virtual unsigned long source() const;
50  virtual void setSource( unsigned long connHandle );
51 
53  virtual unsigned long responseType() const;
54  virtual void setResponseType( unsigned long responseType );
55 
57  virtual const MAKRti::DtString& payload() const;
58  virtual void setPayload( const MAKRti::DtString& xml );
59 
63  virtual bool isReplacementNotAppend() const;
64  virtual void setIsReplacementNotAppend( bool replacesExistingState = true );
65 
69  virtual bool isComplete() const;
70  virtual void setIsComplete( bool complete = true );
71 
72 
74  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
75 
76 
77 public:
78 
80  static DtRtiMsg* create(const DtNetMsgHeader* initial,
81  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
82 
83  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
84 
86  static void addCallback(DtConnectionMgr* conn, DtWwwStateResponseCb cb, void* usr);
87  static void removeCallback(DtConnectionMgr* conn, DtWwwStateResponseCb cb, void* usr);
88 
89 protected:
90 
92  virtual DtNetWwwStateRspMsg* netWwwStateRspMsg();
93  virtual const DtNetWwwStateRspMsg* netWwwStateRspMsg() const;
94 
97 
99  virtual char* netMsgPayload();
100 
102  virtual int minSize() const;
103 
104 protected:
105 
107  MAKRti::DtString myXmlResponse;
108 
109 };
110 
111 #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)