MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
printerBuf.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: printerBuf.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef printerBuf_H_
10 #define printerBuf_H_
11 
14 
15 #include "rtiMsConfig.h"
16 #include <vlutil/vlPrint.h>
17 #include <list>
18 
20 struct DtLogEntry
21 {
22  std::string str;
23  MAKRti::DtNotifyLevelType level;
24 };
25 
26 
28 typedef std::list< DtLogEntry* > DtLogEntryList;
29 
30 
31 
38 {
39 public:
40 
42  DtPrinterBuf();
43 
45  virtual ~DtPrinterBuf();
46 
48  DtPrinterBuf( DtPrinterBuf const&);
49 
51  virtual DtPrinterBuf& operator=( DtPrinterBuf const&);
52 
53 public:
54 
58  virtual const DtLogEntry* readNext();
59 
61  virtual void write( const std::string& st, MAKRti::DtNotifyLevelType level );
62 
64  virtual void copyBufferToList( DtLogEntryList& destList ) const;
65 
68  virtual void writeBufferToOutputStreams() const;
69 
71  virtual void clearBuffer();
72 
74  virtual void setMaxEntries( int max );
75 
76 protected:
77 
81 
84 
87 
88 };
89 
90 #endif
91 
Buffers data output by a DtBufferPrinter.
Definition: printerBuf.h:37
std::list< DtLogEntry * > DtLogEntryList
A list of DtLogEntry items.
Definition: printerBuf.h:28
int myMaxEntries
The maximum number of entries. Negative indicates no limit.
Definition: printerBuf.h:86
MAKRti::DtNotifyLevelType level
Definition: printerBuf.h:23
DtLogEntryList myBuffer
The complete buffer is stored as a list of strings and notification levels.
Definition: printerBuf.h:80
DtLogEntry * myInProcessEntry
The entry being processed.
Definition: printerBuf.h:83
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:160
std::string str
Definition: printerBuf.h:22
Stores a single log entry.
Definition: printerBuf.h:20

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)