VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfutil
outputLogger.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: outputLogger.h,v $ $Revision: 1.5 $ $State: Exp $
7
*********************************************************************/
8
11
12
#include <vlutil/vlPrint.h>
13
#include <string>
14
#include <vlutil/vlString.h>
15
28
29
#include "
vrfutil/vrfutilDefines.h
"
30
class
DT_DLL_vrfutil
DtOutputLogger
31
{
32
public
:
33
35
DtOutputLogger
(
const
std::string& filename,
36
int
&globalThreshold,
37
int
threshold = 0);
38
40
~
DtOutputLogger
();
41
43
void
operator()(
const
char
*s, ...);
44
void
operator()(
const
std::string& s, ...);
45
void
operator()(
const
DtString
& s, ...);
46
48
bool
resetLog();
49
51
const
std::string& filename()
const
;
52
56
bool
setFilename(
const
std::string& newFilename);
57
58
int
threshold()
const
;
59
void
setThreshold(
int
threshold);
60
61
const
int
& globalThreshold()
const
;
62
63
bool
testInvariant()
const
;
64
65
protected
:
66
67
private
:
69
DtOutputLogger
(
const
DtOutputLogger
& orig);
70
const
DtOutputLogger
& operator=(
const
DtOutputLogger
& orig);
71
73
DtFilePrinter*
myFilePrinter
;
74
76
DtOutputStreamBuffer*
myBuffer
;
77
79
DtOutputStream*
myLogger
;
80
83
int
&
myGlobalThreshold
;
84
87
int
myThreshold
;
88
90
std::string
myFilename
;
91
};
92
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)