MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantQueryMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantQueryMsg.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtAssistantQueryMsg_H_
10 #define DtAssistantQueryMsg_H_
11 
14 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlUtil.h>
17 
18 #include "assistantMsg.h"
19 #include "netAssistantQueryMsg.h"
20 
21 class DtRtiAssistantPeer;
23 
24 namespace MAKRti
25 {
26  class DtInetAddr;
27 }
28 
29 typedef void (*DtAssistantQueryCb)(const DtAssistantQueryMsg& inter, void* usr);
30 
35 {
36 public:
37 
39  DtAssistantQueryMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
42  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  virtual ~DtAssistantQueryMsg();
46 
48  virtual DtAssistantMsg* clone(bool copy = true) const;
49 
51  virtual void printData() const;
52 
53 public:
54 
56  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
57  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
58 
59  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
60 
63  static void addCallback(DtRtiAssistantPeer* conn,
64  DtAssistantQueryCb cb, void* usr);
65  static void removeCallback(DtRtiAssistantPeer* conn,
66  DtAssistantQueryCb cb, void* usr);
67 
68 protected:
69 
71  virtual DtNetAssistantQueryMsg* netAssistantQueryMsg();
72  virtual const DtNetAssistantQueryMsg* netAssistantQueryMsg() const;
73 
76 
78  virtual int minSize() const;
79 
80 };
81 
82 #endif // DtAssistantQueryMsg_H_
Definition: netAssistantMsgHdr.h:26
DtAssistantMsgKind
Definition: assistantMsg.h:52
Base class for assistant Messages.
Definition: assistantMsg.h:152
This file contains the declaration of DtNetAssistantQueryMsg.
virtual DtAssistantMsgKind internalMsgKind()=0
The DtAssistantQueryMsg defines a wrapper for the RTI Assistant query message used by Assistants to r...
Definition: assistantQueryMsg.h:34
#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
virtual DtAssistantMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual void printData() const
void(* DtAssistantQueryCb)(const DtAssistantQueryMsg &inter, void *usr)
Definition: assistantQueryMsg.h:29
Network representation for the RTI Assistant Query message.
Definition: netAssistantQueryMsg.h:21

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)