MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrUtil
lgrPrint.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef lgrPrint_H_
10
#define lgrPrint_H_
11
12
#include "
lgrUtil.h
"
13
#include <stdio.h>
14
#include <ostream>
15
#include <
lgrUtil/lgrPopupBox.h
>
16
#ifdef _MSC_VER
17
#include <vadefs.h>
18
#endif
19
20
class
DtString;
21
22
namespace
MAKLogger
23
{
24
27
class
DT_DLL_LGRUTIL
DtLgrPrinter
28
{
29
public
:
30
31
32
enum
MessageLevelsEnum
33
{
35
Critical = 0,
36
38
Warning = 1,
39
43
Info = 2,
44
46
Verbose = 3,
47
49
Debug = 4
50
};
51
52
static
void
setMessageLevel(MessageLevelsEnum);
53
static
MessageLevelsEnum messageLevel();
54
56
static
bool
messageWillPrint(
DtLgrPrinter::MessageLevelsEnum
);
57
59
60
static
void
critical(
const
DtString& msg);
61
static
void
critical(
const
char
*s, ...);
63
65
66
static
void
warning(
const
DtString& msg);
67
static
void
warning(
const
char
*s, ...);
69
71
72
static
void
info(
const
DtString& msg);
73
static
void
info(
const
char
*s, ...);
75
77
78
static
void
verbose(
const
DtString& msg);
79
static
void
verbose(
const
char
*s, ...);
81
83
84
static
void
debug(
const
DtString& msg);
85
static
void
debug(
const
char
*s, ...);
87
89
90
static
void
message(
DtLgrPrinter::MessageLevelsEnum
,
const
DtString&);
91
static
void
message(
DtLgrPrinter::MessageLevelsEnum
,
const
char
* fmt, va_list args);
93
95
static
void (*messageFunction)(
const
DtString&);
96
97
static
void
DtPrintLineToOutput(
const
DtString&);
98
static
void
DtPrintToOutput(
const
DtString&);
99
100
static
void
outputMutex(
bool
lock);
101
};
102
103
}
104
105
#endif
Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (
www.mak.com
)