Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
c
d
e
f
g
i
l
m
n
u
v
Typedefs
a
c
d
e
g
i
m
n
o
p
s
u
v
Enumerations
_
e
g
h
i
p
Enumerator
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
x
y
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
y
Typedefs
a
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
v
Enumerations
Enumerator
a
c
d
e
f
i
n
o
r
s
t
w
x
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
y
Functions
c
d
e
g
i
l
m
o
p
r
t
Variables
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
p
s
t
u
Enumerations
a
b
c
d
e
f
g
i
p
s
t
u
Enumerator
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
y
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
NDC.hh
Go to the documentation of this file.
1
/*
2
* NDC.hh
3
*
4
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2000, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef _LOG4CPP_NDC_HH
11
#define _LOG4CPP_NDC_HH
12
13
#include <
log4cpp/Portability.hh
>
14
#include <string>
15
#include <vector>
16
17
LOG4CPP_NS_BEGIN
69
class
LOG4CPP_EXPORT
NDC
{
70
static
bool
isUsedNDC
;
71
static
const
std::string
emptyString
;
72
public
:
73
74
struct
DiagnosticContext
{
75
DiagnosticContext
(
const
std::string& message);
76
DiagnosticContext
(
const
std::string& message,
77
const
DiagnosticContext
& parent);
78
79
std::string
message
;
80
std::string
fullMessage
;
81
};
82
83
85
static
void
shutdown();
86
87
typedef
std::vector<DiagnosticContext>
ContextStack
;
88
97
static
void
clear();
98
112
static
ContextStack
* cloneStack();
113
118
static
const
std::string& get();
119
124
static
size_t
getDepth();
125
126
static
void
inherit(
ContextStack
* stack);
127
138
static
std::string pop();
139
148
static
void
push(
const
std::string& message);
149
156
static
void
setMaxDepth(
int
maxDepth);
157
162
static
NDC
& getNDC();
163
164
NDC
();
165
virtual
~
NDC
();
166
167
public
:
168
virtual
void
_clear();
169
virtual
ContextStack
* _cloneStack();
170
virtual
const
std::string& _get()
const
;
171
virtual
size_t
_getDepth()
const
;
172
virtual
void
_inherit(
ContextStack
* stack);
173
virtual
std::string _pop();
174
virtual
void
_push(
const
std::string& message);
175
virtual
void
_setMaxDepth(
int
maxDepth);
176
177
ContextStack
_stack
;
178
};
179
LOG4CPP_NS_END
180
181
#endif // _LOG4CPP_NDC_HH
NDC::DiagnosticContext
Definition:
NDC.hh:74
NDC::_stack
ContextStack _stack
Definition:
NDC.hh:177
Portability.hh
NDC
The NDC class implements nested diagnostic contexts as defined by Neil Harrison in the article "Patte...
Definition:
NDC.hh:69
NDC::isUsedNDC
static bool isUsedNDC
Definition:
NDC.hh:70
LOG4CPP_NS_BEGIN
#define LOG4CPP_NS_BEGIN
Definition:
Portability.hh:49
LOG4CPP_NS_END
#define LOG4CPP_NS_END
Definition:
Portability.hh:50
NDC::DiagnosticContext::fullMessage
std::string fullMessage
Definition:
NDC.hh:80
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:21
NDC::ContextStack
std::vector< DiagnosticContext > ContextStack
Definition:
NDC.hh:87
NDC::emptyString
static const std::string emptyString
Definition:
NDC.hh:71
NDC::DiagnosticContext::message
std::string message
Definition:
NDC.hh:79
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11