MAK RTIspy API Documentation for HLA 1516
wwwFederateStateRspMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: wwwFederateStateRspMsg.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtWwwFederateStateRspMsg_H_
13 #define DtWwwFederateStateRspMsg_H_
14 
15 #include "rtiMsConfig.h"
16 #include "rtiMsg.h"
17 #include "netWwwFederateStateMsg.h"
18 
19 class DtConnectionMgr;
22 typedef void (*DtWwwFederateStateResponseCb)(const DtWwwFederateStateRspMsg& inter, void* usr);
23 
24 
26 {
27 
28 public:
29 
31  DtWwwFederateStateRspMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtWwwFederateStateRspMsg( unsigned long connId, unsigned long federationHandle,
35  unsigned long federateHandle, unsigned long responseType, const MAKRti::DtString& xml,
36  bool replaceExistingNotAppend = true, bool isStateFragment = false,
37  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
38 
41  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
42 
44  virtual ~DtWwwFederateStateRspMsg();
45 
47  virtual DtRtiMsg* clone(bool copy = true) const;
48 
50  virtual unsigned long sourceConnectionId() const;
51  virtual void setSourceConnectionId( unsigned long connId );
52 
54  virtual unsigned long sourceFederateHandle() const;
55  virtual void setSourceFederateHandle( unsigned long handle );
56 
58  virtual unsigned long responseType() const;
59  virtual void setResponseType( unsigned long responseType );
60 
62  virtual const MAKRti::DtString& payload() const;
63  virtual void setPayload( const MAKRti::DtString& xml );
64 
68  virtual bool isReplacementNotAppend() const;
69  virtual void setIsReplacementNotAppend( bool replacesExistingState = true );
70 
74  virtual bool isComplete() const;
75  virtual void setIsComplete( bool complete = true );
76 
78  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
79 
80 
81 public:
82 
84  static DtRtiMsg* create(const DtNetMsgHeader* initial,
85  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
86 
87  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
88 
90  static void addCallback(DtConnectionMgr* conn, DtWwwFederateStateResponseCb cb, void* usr);
91  static void removeCallback(DtConnectionMgr* conn, DtWwwFederateStateResponseCb cb, void* usr);
92 
93 protected:
94 
96  virtual DtNetWwwFederateStateMsg* netWwwFederateStateMsg();
97  virtual const DtNetWwwFederateStateMsg* netWwwFederateStateMsg() const;
98 
101 
103  virtual char* netMsgPayload();
104 
106  virtual int minSize() const;
107 
108 protected:
109 
111  MAKRti::DtString myXmlResponse;
112 
113 };
114 
115 #endif
116 

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)