MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantNotifyObserveMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2011 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef DtAssistantNotifyObserveMsg_H_
7 #define DtAssistantNotifyObserveMsg_H_
8 
12 
13 #include <vlutil/vlString.h>
14 #include <vlutil/vlUtil.h>
15 
16 #include "assistantMsg.h"
18 
19 class DtRtiAssistantPeer;
23 
24 typedef void (*DtAssistantNotifyObserveCb)(const DtAssistantNotifyObserveMsg& inter, void* usr);
25 
31 {
32 public:
33 
35  DtAssistantNotifyObserveMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36 
39  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
42  virtual ~DtAssistantNotifyObserveMsg();
43 
45  virtual DtAssistantMsg* clone(bool copy = true) const;
46 
48  virtual bool isObserved() const;
49 
51  virtual void setIsObserved( bool observed );
52 
54  virtual void printData() const;
55 
56 public:
57 
59  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
60  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
61 
62  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
63 
66  static void addCallback(DtRtiAssistantPeer* conn,
67  DtAssistantNotifyObserveCb cb, void* usr);
68  static void removeCallback(DtRtiAssistantPeer* conn,
69  DtAssistantNotifyObserveCb cb, void* usr);
70 
71 protected:
72 
74  virtual DtNetAssistantNotifyObserveMsg* netAssistantNotifyObserveMsg();
75  virtual const DtNetAssistantNotifyObserveMsg* netAssistantNotifyObserveMsg() const;
76 
79 
81  virtual int minSize() const;
82 
83 };
84 
85 #endif
86 
Definition: netAssistantMsgHdr.h:26
Manages the client connection to the RTI Assistant.
Definition: rtiAssistantClient.h:59
DtAssistantMsgKind
Definition: assistantMsg.h:52
Base class for assistant Messages.
Definition: assistantMsg.h:152
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
_WIN32
Definition: rtiMsConfig.h:121
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
This file contains the declaration of DtNetAssistantNotifyObserveMsg.
virtual DtAssistantMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual void printData() const
Network representation for the RTI Assistant notify observe message.
Definition: netAssistantNotifyObserveMsg.h:20
The DtAssistantNotifyObserveMsg defines a wrapper for the RTI Assistant message used by the Assistant...
Definition: assistantNotifyObserveMsg.h:30
Stores the information on an RTI connection known by the Assistant.
Definition: assistantConnectionInfo.h:36
void(* DtAssistantNotifyObserveCb)(const DtAssistantNotifyObserveMsg &inter, void *usr)
Definition: assistantNotifyObserveMsg.h:24

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)