![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2008 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: assistantNtfyLvlUpdateMsg.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *********************************************************************/ 00008 00009 #ifndef DtAssistantNtfyLvlUpdateMsg_H_ 00010 #define DtAssistantNtfyLvlUpdateMsg_H_ 00011 00015 00016 #include <vlutil/vlString.h> 00017 #include <vlutil/vlUtil.h> 00018 00019 #include "assistantMsg.h" 00020 #include "netAssistantNtfyLvlUpdateMsg.h" 00021 00022 class DtRtiAssistantClient; 00023 class DtAssistantNtfyLvlUpdateMsg; 00024 00025 typedef void (*DtAssistantNtfyLvlUpdateCb)(const DtAssistantNtfyLvlUpdateMsg& inter, void* usr); 00026 00031 class DT_DLL_ASSISTANT DtAssistantNtfyLvlUpdateMsg : public DtAssistantMsg 00032 { 00033 public: 00034 00036 DtAssistantNtfyLvlUpdateMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00037 00038 DtAssistantNtfyLvlUpdateMsg(const DtNetAssistantNtfyLvlUpdateMsg* netRepMsg, 00039 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00040 00041 DtAssistantNtfyLvlUpdateMsg( DtNotifyLevelType notifyLevel, 00042 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER ); 00043 00045 virtual ~DtAssistantNtfyLvlUpdateMsg(); 00046 00048 virtual DtAssistantMsg* clone(bool copy = true) const; 00049 00051 virtual void setNotifyLevel( DtNotifyLevelType level ); 00052 00054 virtual DtNotifyLevelType notifyLevel() const; 00055 00057 virtual void printData() const; 00058 00059 public: 00060 00062 static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial, 00063 DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00064 00065 static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER); 00066 00069 static void addCallback(DtRtiAssistantClient* conn, 00070 DtAssistantNtfyLvlUpdateCb cb, void* usr); 00071 static void removeCallback(DtRtiAssistantClient* conn, 00072 DtAssistantNtfyLvlUpdateCb cb, void* usr); 00073 00074 protected: 00075 00077 virtual DtNetAssistantNtfyLvlUpdateMsg* netAssistantNtfyLvlUpdateMsg(); 00078 virtual const DtNetAssistantNtfyLvlUpdateMsg* netAssistantNtfyLvlUpdateMsg() const; 00079 00081 virtual DtAssistantMsgKind internalMsgKind(); 00082 00084 virtual int minSize() const; 00085 00086 }; 00087 00088 #endif