MAK RTIspy API Documentation for HLA Evolved
 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);
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 
107  virtual int setMinSize( const MAKRti::DtString& text );
108 
110  virtual void setTextSize( unsigned long size );
111  virtual unsigned long textSize() const;
112 
114  virtual const char* textPtr() const;
115  virtual char* textPtr();
116 
118  virtual void setSourceNameSize( unsigned long size );
119  virtual unsigned long sourceNameSize() const;
120 
122  virtual const char* sourceNamePtr() const;
123  virtual char* sourceNamePtr();
124 
125 };
126 
127 #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: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
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 Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)