Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
debug.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
*
6
* Copyright (C) 1997-2015 by Dimitri van Heesch.
7
*
8
* Permission to use, copy, modify, and distribute this software and its
9
* documentation under the terms of the GNU General Public License is hereby
10
* granted. No representations are made about the suitability of this software
11
* for any purpose. It is provided "as is" without express or implied warranty.
12
* See the GNU General Public License for more details.
13
*
14
* Documents produced by Doxygen are derivative works derived from the
15
* input used in their production; they are not affected by this license.
16
*
17
*/
18
19
#ifndef _DEBUG_H
20
#define _DEBUG_H
21
22
/** Class containing a print function for diagnostics. */
23
class
Debug
24
{
25
public
:
26
enum
DebugMask
{
Quiet
= 0x00000000,
27
FindMembers
= 0x00000001,
28
Functions
= 0x00000002,
29
Variables
= 0x00000004,
30
Preprocessor
= 0x00000008,
31
Classes
= 0x00000010,
32
CommentCnv
= 0x00000020,
33
CommentScan
= 0x00000040,
34
Validate
= 0x00000080,
35
PrintTree
= 0x00000100,
36
Time
= 0x00000200,
37
ExtCmd
= 0x00000400,
38
Markdown
= 0x00000800,
39
FilterOutput
= 0x00001000,
40
Lex
= 0x00002000
41
};
42
static
void
print
(
DebugMask
mask
,
int
prio,
const
char
*fmt,...);
43
static
int
setFlag
(
const
char
*
label
);
44
static
void
clearFlag
(
const
char
*
label
);
45
static
bool
isFlagSet
(
DebugMask
mask
);
46
static
void
printFlags
(
void
);
47
static
void
setPriority
(
int
p
);
48
49
private
:
50
static
DebugMask
curMask
;
51
static
int
curPrio
;
52
};
53
54
#endif
Debug::DebugMask
DebugMask
Definition:
debug.h:26
Debug::Time
Definition:
debug.h:36
Debug::printFlags
static void printFlags(void)
Definition:
debug.cpp:124
Debug::FilterOutput
Definition:
debug.h:39
test_nxdot.label
label
Definition:
test_nxdot.py:6
Debug::curMask
static DebugMask curMask
Definition:
debug.h:50
Debug::CommentScan
Definition:
debug.h:33
Debug::CommentCnv
Definition:
debug.h:32
Debug::Validate
Definition:
debug.h:34
Debug::setFlag
static int setFlag(const char *label)
Definition:
debug.cpp:102
Debug::FindMembers
Definition:
debug.h:27
Debug::print
static void print(DebugMask mask, int prio, const char *fmt,...)
Definition:
debug.cpp:84
test.p
p
Definition:
test.py:223
Debug::Lex
Definition:
debug.h:40
Debug::curPrio
static int curPrio
Definition:
debug.h:51
Debug::clearFlag
static void clearFlag(const char *label)
Definition:
debug.cpp:109
Debug::Classes
Definition:
debug.h:31
Debug::Quiet
Definition:
debug.h:26
Debug::setPriority
static void setPriority(int p)
Definition:
debug.cpp:114
run_cnn_3class.mask
mask
Definition:
run_cnn_3class.py:84
Debug::Variables
Definition:
debug.h:29
Debug::Markdown
Definition:
debug.h:38
Debug::PrintTree
Definition:
debug.h:35
Debug
Definition:
debug.h:23
Debug::Preprocessor
Definition:
debug.h:30
Debug::Functions
Definition:
debug.h:28
Debug::isFlagSet
static bool isFlagSet(DebugMask mask)
Definition:
debug.cpp:119
Debug::ExtCmd
Definition:
debug.h:37
Generated by
1.8.11