Doxygen
Loading...
Searching...
No Matches
DebugLex Class Reference

#include <src/debug.h>

+ Collaboration diagram for DebugLex:

Public Member Functions

 DebugLex (Debug::DebugMask mask, const char *lexName, const char *fileName)
 
 ~DebugLex ()
 

Static Public Member Functions

static void print (Debug::DebugMask mask, const char *state, const char *lexName, const char *fileName)
 

Private Attributes

Debug::DebugMask m_mask
 
QCString m_lexName
 
QCString m_fileName
 

Detailed Description

Definition at line 89 of file debug.h.

Constructor & Destructor Documentation

◆ DebugLex()

DebugLex::DebugLex ( Debug::DebugMask mask,
const char * lexName,
const char * fileName )

Definition at line 149 of file debug.cpp.

149 : m_mask(mask), m_lexName(lexName), m_fileName(fileName)
150{
152}
Debug::DebugMask m_mask
Definition debug.h:98
QCString m_fileName
Definition debug.h:100
static void print(Debug::DebugMask mask, const char *state, const char *lexName, const char *fileName)
Definition debug.cpp:159
QCString m_lexName
Definition debug.h:99
const char * qPrint(const char *s)
Definition qcstring.h:661

References m_fileName, m_lexName, m_mask, print(), and qPrint().

◆ ~DebugLex()

DebugLex::~DebugLex ( )

Definition at line 154 of file debug.cpp.

155{
157}

References m_fileName, m_lexName, m_mask, print(), and qPrint().

Member Function Documentation

◆ print()

void DebugLex::print ( Debug::DebugMask mask,
const char * state,
const char * lexName,
const char * fileName )
static

Definition at line 159 of file debug.cpp.

160{
161 if (fileName && *fileName)
162 {
163 if (Debug::isFlagSet(mask))
164 {
165 fprintf(stderr,"%s lexical analyzer: %s (for: %s)\n",state, lexName, fileName);
166 }
167 }
168 else
169 {
170 if (Debug::isFlagSet(mask))
171 {
172 fprintf(stderr,"%s lexical analyzer: %s\n",state, lexName);
173 }
174 }
175}
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:135

References Debug::isFlagSet().

Referenced by DebugLex(), LayoutDocManager::parse(), and ~DebugLex().

Member Data Documentation

◆ m_fileName

QCString DebugLex::m_fileName
private

Definition at line 100 of file debug.h.

Referenced by DebugLex(), and ~DebugLex().

◆ m_lexName

QCString DebugLex::m_lexName
private

Definition at line 99 of file debug.h.

Referenced by DebugLex(), and ~DebugLex().

◆ m_mask

Debug::DebugMask DebugLex::m_mask
private

Definition at line 98 of file debug.h.

Referenced by DebugLex(), and ~DebugLex().


The documentation for this class was generated from the following files: