MAK RTIspy API Documentation for HLA 1.3
assistantNotifyObserveMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2011 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 #ifndef DtAssistantNotifyObserveMsg_H_
00007 #define DtAssistantNotifyObserveMsg_H_
00008 
00012 
00013 #include <vlutil/vlString.h>
00014 #include <vlutil/vlUtil.h>
00015 
00016 #include "assistantMsg.h"
00017 #include "netAssistantNotifyObserveMsg.h"
00018 
00019 class DtRtiAssistantPeer;
00020 class DtRtiAssistantClient;
00021 class DtAssistantNotifyObserveMsg;
00022 class DtRtiConnectionInfo;
00023 
00024 typedef void (*DtAssistantNotifyObserveCb)(const DtAssistantNotifyObserveMsg& inter, void* usr);
00025 
00030 class DT_DLL_ASSISTANT DtAssistantNotifyObserveMsg : public DtAssistantMsg
00031 {
00032 public:
00033 
00035    DtAssistantNotifyObserveMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00036 
00038    DtAssistantNotifyObserveMsg(const DtNetAssistantNotifyObserveMsg* netRepMsg,
00039       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00040 
00042    virtual ~DtAssistantNotifyObserveMsg();
00043 
00045    virtual DtAssistantMsg* clone(bool copy = true) const;
00046 
00048    virtual bool isObserved() const;
00049 
00051    virtual void setIsObserved( bool observed );
00052 
00054    virtual void printData() const;
00055 
00056 public:
00057 
00059    static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
00060       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00061 
00062    static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00063       
00066    static void addCallback(DtRtiAssistantPeer* conn,
00067       DtAssistantNotifyObserveCb cb, void* usr);
00068    static void removeCallback(DtRtiAssistantPeer* conn,
00069       DtAssistantNotifyObserveCb cb, void* usr);
00070       
00071 protected:
00072 
00074    virtual DtNetAssistantNotifyObserveMsg* netAssistantNotifyObserveMsg();
00075    virtual const DtNetAssistantNotifyObserveMsg* netAssistantNotifyObserveMsg() const;
00076 
00078    virtual DtAssistantMsgKind internalMsgKind();
00079 
00081    virtual int minSize() const;
00082 
00083 };
00084 
00085 #endif
00086 

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)