![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 2007 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: networkMapRspMsg.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtNetworkMapRspMsg_H_ 00013 #define DtNetworkMapRspMsg_H_ 00014 00015 #include "rtiMsg.h" 00016 #include "rtiMsConfig.h" 00017 #include "netNetworkMapRspMsg.h" 00018 00019 class DtConnectionMgr; 00020 class DtNetworkMapRspMsg; 00021 class DtLogicalTimeFactory; 00022 typedef void (*DtNetworkMapResponseCb)(const DtNetworkMapRspMsg& msg, void* usr); 00023 00024 00025 class DT_DLL_LRC DtNetworkMapRspMsg : public DtRtiMsg 00026 { 00027 00028 public: 00029 00031 DtNetworkMapRspMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00032 00034 DtNetworkMapRspMsg( unsigned long sourceId, unsigned long requestorId, 00035 const MAKRti::DtString& xml, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER ); 00036 00038 DtNetworkMapRspMsg(const DtNetNetworkMapRspMsg* netRep, 00039 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00040 00042 virtual ~DtNetworkMapRspMsg(); 00043 00045 virtual DtRtiMsg* clone(bool copy = true) const; 00046 00049 virtual unsigned long sourceId() const; 00050 virtual void setSourceId( unsigned long connId ); 00051 00055 virtual unsigned long requestorId() const; 00056 virtual void setRequestorId( unsigned long connId ); 00057 00059 virtual const MAKRti::DtString& payload() const; 00060 virtual void setPayload( const MAKRti::DtString& xml ); 00061 00063 virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const; 00064 00065 public: 00066 00068 static DtRtiMsg* create(const DtNetMsgHeader* initial, 00069 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00070 00071 static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00072 00074 static void addCallback(DtConnectionMgr* conn, DtNetworkMapResponseCb cb, void* usr); 00075 static void removeCallback(DtConnectionMgr* conn, DtNetworkMapResponseCb cb, void* usr); 00076 00077 protected: 00078 00080 virtual DtNetNetworkMapRspMsg* netNetworkMapRspMsg(); 00081 virtual const DtNetNetworkMapRspMsg* netNetworkMapRspMsg() const; 00082 00084 virtual DtRtiMsgKind internalDtRtiMsgKind(); 00085 00087 virtual char* netMsgPayload(); 00088 00090 virtual int minSize() const; 00091 00092 protected: 00093 00095 MAKRti::DtString myXmlResponse; 00096 00097 }; 00098 00099 #endif //! DtNetworkMapRspMsg_H_ 00100