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 

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)