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 96 of file debug.h.

Constructor & Destructor Documentation

◆ DebugLex()

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

Definition at line 146 of file debug.cpp.

146 : m_mask(mask), m_lexName(lexName), m_fileName(fileName)
147{
149}
Debug::DebugMask m_mask
Definition debug.h:105
QCString m_fileName
Definition debug.h:107
static void print(Debug::DebugMask mask, const char *state, const char *lexName, const char *fileName)
Definition debug.cpp:156
QCString m_lexName
Definition debug.h:106
const char * qPrint(const char *s)
Definition qcstring.h:672

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

◆ ~DebugLex()

DebugLex::~DebugLex ( )

Definition at line 151 of file debug.cpp.

152{
154}

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 156 of file debug.cpp.

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

References Debug::isFlagSet().

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

Member Data Documentation

◆ m_fileName

QCString DebugLex::m_fileName
private

Definition at line 107 of file debug.h.

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

◆ m_lexName

QCString DebugLex::m_lexName
private

Definition at line 106 of file debug.h.

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

◆ m_mask

Debug::DebugMask DebugLex::m_mask
private

Definition at line 105 of file debug.h.

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


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