MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
rtiutil
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
37
class
DT_DLL_RTIUTIL
DtPrinterBuf
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
80
DtLogEntryList
myBuffer
;
81
83
DtLogEntry
*
myInProcessEntry
;
84
86
int
myMaxEntries
;
87
88
};
89
90
#endif
91
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
)