MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantLogMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantLogMsg.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef assistantLogMsg_H_
10 #define assistantLogMsg_H_
11 
15 
16 #include <vlutil/vlPrint.h>
17 #include <string>
18 #include <list>
19 
20 #include "assistantMsg.h"
21 #include "netAssistantLogMsg.h"
22 #include <printerBuf.h>
23 
24 class DtAssistantLogMsg;
26 class DtRtiAssistantPeer;
27 
28 typedef void (*DtAssistantLogCb)(const DtAssistantLogMsg& inter, void* usr);
29 
30 
37 {
38 
39 public:
40 
42  DtAssistantLogMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
46 
48  virtual ~DtAssistantLogMsg();
49 
51  virtual DtAssistantMsg* clone(bool copy = true) const;
52 
54  virtual void setLog( const DtLogEntryList& log, unsigned maxSize );
55 
58  virtual const char* nextEntry( DtNotifyLevelType& notifyLevel ) const;
59 
61  virtual unsigned textSize() const;
62 
64  virtual void printData() const;
65 
66 public:
67 
69  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
70  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
71 
72  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
73 
76  static void addCallback(DtRtiAssistantServer* conn, DtAssistantLogCb cb, void* usr);
77  static void removeCallback(DtRtiAssistantServer* conn, DtAssistantLogCb cb, void* usr);
78 
81  static void addCallback(DtRtiAssistantPeer* conn, DtAssistantLogCb cb, void* usr);
82  static void removeCallback(DtRtiAssistantPeer* conn, DtAssistantLogCb cb, void* usr);
83 
84 protected:
85 
87  virtual DtNetAssistantLogMsg* netAssistantLogMsg();
88  virtual const DtNetAssistantLogMsg* netAssistantLogMsg() const;
89 
92 
94  virtual int minSize() const;
95 
97  virtual void setTextSize( unsigned size );
98 
100  virtual void setNumEntries( unsigned num );
101  virtual unsigned numEntries() const;
102 
104  virtual const DtNetU8* notifyLevelPtr() const;
105  virtual DtNetU8* notifyLevelPtr();
106 
108  virtual const char* textPtr() const;
109  virtual char* textPtr();
110 
112  mutable const char* myNextTextPtr;
113 
115  mutable unsigned myNextNum;
116 
117 };
118 
119 #endif
Network representation for the RTI Assistant log message.
Definition: netAssistantLogMsg.h:23
This file contains the declaration of DtPrinterBuf.
Definition: netAssistantMsgHdr.h:26
const char * myNextTextPtr
The next text location to read from the message.
Definition: assistantLogMsg.h:112
void(* DtAssistantLogCb)(const DtAssistantLogMsg &inter, void *usr)
Definition: assistantLogMsg.h:28
DtAssistantMsgKind
Definition: assistantMsg.h:54
Base class for assistant Messages.
Definition: assistantMsg.h:154
The DtAssistantLogMsg defines a wrapper for the RTI Assistant log message used to send a full log fro...
Definition: assistantLogMsg.h:36
std::list< DtLogEntry * > DtLogEntryList
A list of DtLogEntry items.
Definition: printerBuf.h:28
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
unsigned myNextNum
The next entry to read from the message.
Definition: assistantLogMsg.h:115
This file contains the declaration of DtNetAssistantLogMsg.

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)