Doxygen
Debug类 参考

Class containing a print function for diagnostics. 更多...

#include <debug.h>

Public 类型

enum  DebugMask {
  Quiet = 0x00000000, FindMembers = 0x00000001, Functions = 0x00000002, Variables = 0x00000004,
  Preprocessor = 0x00000008, Classes = 0x00000010, CommentCnv = 0x00000020, CommentScan = 0x00000040,
  Validate = 0x00000080, PrintTree = 0x00000100, Time = 0x00000200, ExtCmd = 0x00000400,
  Markdown = 0x00000800, FilterOutput = 0x00001000, Lex = 0x00002000, Plantuml = 0x00004000,
  FortranFixed2Free = 0x00008000, Cite = 0x00010000, NoLineNo = 0x00020000, Rtf = 0x00040000
}
 

静态 Public 成员函数

static void print (DebugMask mask, int prio, const char *fmt,...)
 
static int setFlag (const QCString &label)
 
static void clearFlag (const QCString &label)
 
static bool isFlagSet (DebugMask mask)
 
static void printFlags ()
 
static void setPriority (int p)
 
static void startTimer ()
 
static double elapsedTime ()
 

静态 Private 属性

static DebugMask curMask = Debug::Quiet
 
static int curPrio = 0
 

详细描述

Class containing a print function for diagnostics.

在文件 debug.h22 行定义.

成员枚举类型说明

◆ DebugMask

枚举值
Quiet 
FindMembers 
Functions 
Variables 
Preprocessor 
Classes 
CommentCnv 
CommentScan 
Validate 
PrintTree 
Time 
ExtCmd 
Markdown 
FilterOutput 
Lex 
Plantuml 
FortranFixed2Free 
Cite 
NoLineNo 
Rtf 

在文件 debug.h25 行定义.

25  { Quiet = 0x00000000,
26  FindMembers = 0x00000001,
27  Functions = 0x00000002,
28  Variables = 0x00000004,
29  Preprocessor = 0x00000008,
30  Classes = 0x00000010,
31  CommentCnv = 0x00000020,
32  CommentScan = 0x00000040,
33  Validate = 0x00000080,
34  PrintTree = 0x00000100,
35  Time = 0x00000200,
36  ExtCmd = 0x00000400,
37  Markdown = 0x00000800,
38  FilterOutput = 0x00001000,
39  Lex = 0x00002000,
40  Plantuml = 0x00004000,
41  FortranFixed2Free = 0x00008000,
42  Cite = 0x00010000,
43  NoLineNo = 0x00020000,
44  Rtf = 0x00040000
45  };

成员函数说明

◆ clearFlag()

void Debug::clearFlag ( const QCString label)
static

在文件 debug.cpp89 行定义.

90 {
92 }

引用了 curMask , 以及 labelToEnumValue().

被这些函数引用 Statistics::print().

◆ elapsedTime()

double Debug::elapsedTime ( )
static

在文件 debug.cpp138 行定义.

139 {
140  return g_runningTime.elapsedTimeS();
141 }

引用了 Timer::elapsedTimeS() , 以及 g_runningTime.

被这些函数引用 generateOutput() , 以及 msg().

◆ isFlagSet()

◆ print()

◆ printFlags()

void Debug::printFlags ( )
static

在文件 debug.cpp104 行定义.

105 {
106  for (const auto &v : s_labels)
107  {
108  msg("\t%s\n",v.first.c_str());
109  }
110 }

引用了 msg() , 以及 s_labels.

被这些函数引用 devUsage().

◆ setFlag()

int Debug::setFlag ( const QCString label)
static

在文件 debug.cpp82 行定义.

83 {
84  int retVal = labelToEnumValue(lab);
85  curMask = (DebugMask)(curMask | retVal);
86  return retVal;
87 }

引用了 curMask , 以及 labelToEnumValue().

被这些函数引用 Statistics::print() , 以及 readConfiguration().

◆ setPriority()

void Debug::setPriority ( int  p)
static

在文件 debug.cpp94 行定义.

95 {
96  curPrio = p;
97 }

引用了 curPrio.

◆ startTimer()

void Debug::startTimer ( )
static

在文件 debug.cpp133 行定义.

134 {
136 }

引用了 g_runningTime , 以及 Timer::start().

被这些函数引用 initDoxygen().

类成员变量说明

◆ curMask

Debug::DebugMask Debug::curMask = Debug::Quiet
staticprivate

在文件 debug.h58 行定义.

被这些函数引用 clearFlag(), isFlagSet(), print() , 以及 setFlag().

◆ curPrio

int Debug::curPrio = 0
staticprivate

在文件 debug.h59 行定义.

被这些函数引用 print() , 以及 setPriority().


该类的文档由以下文件生成:
Debug::ExtCmd
@ ExtCmd
Definition: debug.h:36
Debug::curPrio
static int curPrio
Definition: debug.h:59
Debug::NoLineNo
@ NoLineNo
Definition: debug.h:43
Debug::Validate
@ Validate
Definition: debug.h:33
Preprocessor
Definition: pre.h:26
Debug::Cite
@ Cite
Definition: debug.h:42
Debug::Lex
@ Lex
Definition: debug.h:39
Debug::FortranFixed2Free
@ FortranFixed2Free
Definition: debug.h:41
Debug::CommentScan
@ CommentScan
Definition: debug.h:32
Debug::DebugMask
DebugMask
Definition: debug.h:25
Debug::FindMembers
@ FindMembers
Definition: debug.h:26
Debug::CommentCnv
@ CommentCnv
Definition: debug.h:31
Debug::Functions
@ Functions
Definition: debug.h:27
g_runningTime
static Timer g_runningTime
Definition: debug.cpp:131
Debug::FilterOutput
@ FilterOutput
Definition: debug.h:38
Timer::elapsedTimeS
double elapsedTimeS()
Definition: debug.cpp:121
Debug::curMask
static DebugMask curMask
Definition: debug.h:58
Debug::Variables
@ Variables
Definition: debug.h:28
s_labels
static std::map< std::string, Debug::DebugMask > s_labels
Definition: debug.cpp:29
Debug::Quiet
@ Quiet
Definition: debug.h:25
Markdown
Helper class to process markdown formatted text
Definition: markdown.h:32
msg
void msg(const char *fmt,...)
Definition: message.cpp:53
Timer::start
void start()
Definition: debug.cpp:117
Debug::Time
@ Time
Definition: debug.h:35
Debug::Classes
@ Classes
Definition: debug.h:30
Debug::Rtf
@ Rtf
Definition: debug.h:44
Debug::Plantuml
@ Plantuml
Definition: debug.h:40
labelToEnumValue
static int labelToEnumValue(const QCString &l)
Definition: debug.cpp:74
Debug::PrintTree
@ PrintTree
Definition: debug.h:34