![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2009 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: assistantExecObserveRspMsg.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 00009 #ifndef DtAssistantExecObserveRspMsg_H_ 00010 #define DtAssistantExecObserveRspMsg_H_ 00011 00015 00016 #include <vlutil/vlString.h> 00017 #include <vlutil/vlUtil.h> 00018 00019 #include "assistantMsg.h" 00020 #include "netAssistantExecObserveRspMsg.h" 00021 00022 class DtRtiAssistantPeer; 00023 class DtRtiAssistantServer; 00024 class DtAssistantExecObserveRspMsg; 00025 00026 typedef void (*DtAssistantExecObserveRspCb)(const DtAssistantExecObserveRspMsg& inter, void* usr); 00027 00032 class DT_DLL_ASSISTANT DtAssistantExecObserveRspMsg : public DtAssistantMsg 00033 { 00034 public: 00035 00037 DtAssistantExecObserveRspMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00038 00039 DtAssistantExecObserveRspMsg(const DtNetAssistantExecObserveRspMsg* netRepMsg, 00040 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00041 00043 virtual ~DtAssistantExecObserveRspMsg(); 00044 00046 virtual DtAssistantMsg* clone(bool copy = true) const; 00047 00049 virtual MAKRti::DtInetAddr webServerIp() const; 00050 00052 virtual void setWebServerIp( const MAKRti::DtInetAddr& ip ); 00053 00055 virtual unsigned int webServerPort() const; 00056 00058 virtual void setWebServerPort( unsigned int port ); 00059 00061 virtual void setNotifyLevel( DtNotifyLevelType level ); 00062 00064 virtual DtNotifyLevelType notifyLevel() const; 00065 00067 virtual void printData() const; 00068 00069 public: 00070 00072 static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial, 00073 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00074 00075 static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00076 00079 static void addCallback(DtRtiAssistantServer* conn, 00080 DtAssistantExecObserveRspCb cb, void* usr); 00081 static void removeCallback(DtRtiAssistantServer* conn, 00082 DtAssistantExecObserveRspCb cb, void* usr); 00083 00086 static void addCallback(DtRtiAssistantPeer* conn, 00087 DtAssistantExecObserveRspCb cb, void* usr); 00088 static void removeCallback(DtRtiAssistantPeer* conn, 00089 DtAssistantExecObserveRspCb cb, void* usr); 00090 00091 protected: 00092 00094 virtual DtNetAssistantExecObserveRspMsg* netAssistantExecObserveRspMsg(); 00095 virtual const DtNetAssistantExecObserveRspMsg* netAssistantExecObserveRspMsg() const; 00096 00098 virtual DtAssistantMsgKind internalMsgKind(); 00099 00101 virtual int minSize() const; 00102 00103 }; 00104 00105 #endif