Skip to main content

The DebugLex Class Reference

Declaration

class DebugLex { ... }

Included Headers

#include <src/debug.h>

Public Constructors Index

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

Public Destructor Index

~DebugLex ()

Private Member Attributes Index

Debug::DebugMaskm_mask
QCStringm_lexName
QCStringm_fileName

Public Static Functions Index

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

Definition at line 96 of file debug.h.

Public Constructors

DebugLex()

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

Declaration at line 99 of file debug.h, definition at line 146 of file debug.cpp.

146DebugLex::DebugLex(Debug::DebugMask mask,const char *lexName,const char *fileName) : m_mask(mask), m_lexName(lexName), m_fileName(fileName)
147{
149}

References m_fileName, m_lexName, m_mask, print and qPrint.

Public Destructor

~DebugLex()

DebugLex::~DebugLex ()

Declaration at line 100 of file debug.h, definition at line 151 of file debug.cpp.

References m_fileName, m_lexName, m_mask, print and qPrint.

Private Member Attributes

m_fileName

QCString DebugLex::m_fileName

Definition at line 107 of file debug.h.

Referenced by DebugLex and ~DebugLex.

m_lexName

QCString DebugLex::m_lexName

Definition at line 106 of file debug.h.

Referenced by DebugLex and ~DebugLex.

m_mask

Debug::DebugMask DebugLex::m_mask

Definition at line 105 of file debug.h.

Referenced by DebugLex and ~DebugLex.

Public Static Functions

print()

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

Declaration at line 102 of file debug.h, definition at line 156 of file debug.cpp.

156void DebugLex::print(Debug::DebugMask mask,const char *state,const char *lexName,const char *fileName)
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}

Reference Debug::isFlagSet.

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


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.