MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantPopupMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantPopupMsg.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef assistantPopupMsg_H_
10 #define assistantPopupMsg_H_
11 
15 
16 #include <vlutil/vlPrint.h>
17 
18 #include "assistantMsg.h"
19 #include "netAssistantPopupMsg.h"
20 
23 class DtRtiAssistantPeer;
25 
26 typedef void (*DtAssistantPopupCb)(const DtAssistantPopupMsg& inter, void* usr);
27 
28 
34 {
35 
36 public:
37 
39  DtAssistantPopupMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
42  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
44  DtAssistantPopupMsg( const MAKRti::DtString& text, const MAKRti::DtString& advancedText,
45  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
46 
48  virtual ~DtAssistantPopupMsg();
49 
51  virtual DtAssistantMsg* clone(bool copy = true) const;
52 
54  virtual MAKRti::DtString text() const;
55 
57  virtual MAKRti::DtString advancedText() const;
58 
60  virtual void printData() const;
61 
63  virtual void set(const MAKRti::DtString& text, const MAKRti::DtString& advanced, bool adjustBufferSize = true);
64 
65 
66 protected:
68  virtual void setAdvancedText(const MAKRti::DtString& advanced, bool adjustBufferSize = true);
69 
71  virtual void setText(const MAKRti::DtString& name, bool adjustBufferSize = true);
72 
73 
74 public:
75 
77  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
78  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
79 
80  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
81 
84  static void addCallback(DtRtiAssistantServer* conn, DtAssistantPopupCb cb, void* usr);
85  static void removeCallback(DtRtiAssistantServer* conn, DtAssistantPopupCb cb, void* usr);
86 
89  static void addCallback(DtRtiAssistantPeer* conn, DtAssistantPopupCb cb, void* usr);
90  static void removeCallback(DtRtiAssistantPeer* conn, DtAssistantPopupCb cb, void* usr);
91 
94  static void addCallback(DtAssistantMsgQueue* queue, DtAssistantPopupCb cb, void* usr);
95  static void removeCallback(DtAssistantMsgQueue* queue, DtAssistantPopupCb cb, void* usr);
96 
97 protected:
98 
100  virtual DtNetAssistantPopupMsg* netAssistantPopupMsg();
101  virtual const DtNetAssistantPopupMsg* netAssistantPopupMsg() const;
102 
105 
107  virtual int minSize() const;
108 
110  virtual int minSize( const MAKRti::DtString& text, const MAKRti::DtString& advanced );
111 
113  virtual void setTextSize( unsigned long size );
114  virtual unsigned long textSize() const;
115 
117  virtual void setAdvancedTextSize( unsigned long size );
118  virtual unsigned long advancedTextSize() const;
119 
121  virtual const char* textPtr() const;
122  virtual char* textPtr();
123 
125  virtual const char* advancedTextPtr() const;
126  virtual char* advancedTextPtr();
127 
128 };
129 
130 #endif
Definition: netAssistantMsgHdr.h:26
The DtAssistantPopupMsg defines a wrapper for the RTI Assistant Popup message used to send informatio...
Definition: assistantPopupMsg.h:33
DtAssistantMsgKind
Definition: assistantMsg.h:53
Base class for assistant Messages.
Definition: assistantMsg.h:153
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
Default – Unix or Win32 static.
Definition: rtiMsConfig.h:150
void(* DtAssistantPopupCb)(const DtAssistantPopupMsg &inter, void *usr)
Definition: assistantPopupMsg.h:26
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
Manages the server connections of the RTI Assistant.
Definition: rtiAssistantServer.h:45
virtual DtAssistantMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual void printData() const
This file contains the declaration of DtNetAssistantPopupMsg.
Network representation for the RTI Assistant Popup message.
Definition: netAssistantPopupMsg.h:23
Maintains a queue of RTI Assistant messages.
Definition: assistantMsgQueue.h:27

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)