MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantNotifyMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantNotifyMsg.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef assistantNotifyMsg_H_
10 #define assistantNotifyMsg_H_
11 
15 
16 #include <vlutil/vlPrint.h>
17 
18 #include "assistantMsg.h"
19 #include "netAssistantNotifyMsg.h"
20 
23 class DtRtiAssistantPeer;
24 
25 typedef void (*DtAssistantNotifyCb)(const DtAssistantNotifyMsg& inter, void* usr);
26 
27 
33 {
34 
35 public:
36 
38  DtAssistantNotifyMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
42 
43  DtAssistantNotifyMsg( const MAKRti::DtString& text,
44  DtNotifyLevelType notifyLevel,
45  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
46 
48  virtual ~DtAssistantNotifyMsg();
49 
51  virtual DtAssistantMsg* clone(bool copy = true) const;
52 
54  virtual void setNotifyLevel( DtNotifyLevelType level );
55 
57  virtual DtNotifyLevelType notifyLevel() const;
58 
60  virtual void setText(const MAKRti::DtString& name, bool adjustBufferSize = true);
61 
63  virtual MAKRti::DtString text() const;
64 
66  virtual void setSourceName(const MAKRti::DtString& name);
67 
69  virtual MAKRti::DtString sourceName() const;
70 
72  virtual void printData() const;
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, DtAssistantNotifyCb cb, void* usr);
85  static void removeCallback(DtRtiAssistantServer* conn, DtAssistantNotifyCb cb, void* usr);
86 
89  static void addCallback(DtRtiAssistantPeer* conn, DtAssistantNotifyCb cb, void* usr);
90  static void removeCallback(DtRtiAssistantPeer* conn, DtAssistantNotifyCb cb, void* usr);
91 
92 protected:
93 
95  virtual DtNetAssistantNotifyMsg* netAssistantNotifyMsg();
96  virtual const DtNetAssistantNotifyMsg* netAssistantNotifyMsg() const;
97 
100 
102  virtual int minSize() const;
103 
105  virtual int minSize( const MAKRti::DtString& text );
106 
108  virtual void setTextSize( unsigned long size );
109  virtual unsigned long textSize() const;
110 
112  virtual const char* textPtr() const;
113  virtual char* textPtr();
114 
116  virtual void setSourceNameSize( unsigned long size );
117  virtual unsigned long sourceNameSize() const;
118 
120  virtual const char* sourceNamePtr() const;
121  virtual char* sourceNamePtr();
122 
123 };
124 
125 #endif
The DtAssistantNotifyMsg defines a wrapper for the RTI Assistant notify message used to send informat...
Definition: assistantNotifyMsg.h:32
Definition: netAssistantMsgHdr.h:26
Network representation for the RTI Assistant notify message.
Definition: netAssistantNotifyMsg.h:23
DtAssistantMsgKind
Definition: assistantMsg.h:54
Base class for assistant Messages.
Definition: assistantMsg.h:154
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
Default – Unix or Win32 static.
Definition: rtiMsConfig.h:150
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
void(* DtAssistantNotifyCb)(const DtAssistantNotifyMsg &inter, void *usr)
Definition: assistantNotifyMsg.h:25
This file contains the declaration of DtNetAssistantNotifyMsg.

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)