MAK RTIspy API Documentation for HLA 1.3
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

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)