Defines

C:/CVUT/diplomka/Automata_editor/include/utility/dbglog.h File Reference

#include <QtDebug>
Include dependency graph for dbglog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __func__   "<unknown>"
#define CURRENT_FUNCTION_NAME   __func__
#define DBGLOG(x)   DBGLOG_("EDITOR", x)
 General debugging macro.
#define DBGLOG_(id, x)   DBGLOG_PURE("<"id">\t" << CURRENT_FUNCTION_NAME << "->" << x)
 Debugging macros with identifiers printed first (eg. define user macro define DBGLOG_MODULE(x) DBGLOG("MODULE", x).
#define DBGLOG_PURE(x)   do { qDebug() << x; } while(false)
 Debug logging macros - define own macros for granulating log messages.
#define DBGPAR(PAR)   #PAR << "=" << PAR << " "
 for easily parameters logging
#define RELLOG(x)   RELLOG_("EDITOR", x)
#define RELLOG_(id, x)   RELLOG_PURE("<"id">\t" << "->" << x)
#define RELLOG_PURE(x)   do { qWarning() << x; } while(false)
 release messages (used qWarning, so make sure that QT_NO_WARNING_OUTPUT isn't defined)
#define STRNUMB(x)   STRNUMB_HELP(x)
#define STRNUMB_HELP(x)   #x

Define Documentation

#define __func__   "<unknown>"

Definition at line 20 of file dbglog.h.

#define CURRENT_FUNCTION_NAME   __func__

Definition at line 28 of file dbglog.h.

#define DBGLOG (   x  )     DBGLOG_("EDITOR", x)

General debugging macro.

Definition at line 40 of file dbglog.h.

Referenced by Editor::addGraphVizDrawAlgorithm(), TransitionVArc::adjust(), AutomataWorkSimulator::AutomataWorkSimulator(), MainWindow::closeEvent(), StringProcessor::computeCharacterList(), Editor::Editor(), Editor::editTransition(), MainWindow::exportTo(), Editor::exportToEPS(), Transition::findIntersectedPoints(), Editor::generateGraph(), AutomataWorkSimulator::generateSlideshow(), LoadAutomataDialog::getAlphabet(), LoadAutomataDialog::getAlphabetSymbol(), Editor::getAutomaton(), LoadAutomataDialog::getEpsilonSymbol(), Editor::getExpandedGridRect(), Editor::isPastePossible(), LabelSyntaxChecker::LabelSyntaxChecker(), MainWindow::loadPlugins(), MainWindow::MainWindow(), NameAcceptDialog::myAccept(), LoadAutomataDialog::myAccept(), MainWindow::openFile(), Editor::openFile(), MainWindow::processAlgorithmsPlugin(), MainWindow::processGraphVizPlugin(), Editor::runAlgorithm(), MainWindow::save(), MainWindow::saveAs(), AutomataWorkSimulator::saveInputState(), NextLabelsDialog::selectionChanged(), Editor::setFileName(), TransitionDialog::setTrOrientation(), Editor::slotAlignToGrid(), Editor::switchAntialiasing(), AutomataWorkSimulator::~AutomataWorkSimulator(), Editor::~Editor(), LabelX::~LabelX(), SimulationDialog::~SimulationDialog(), State::~State(), Transition::~Transition(), TransitionArc::~TransitionArc(), TransitionLine::~TransitionLine(), TransitionLoop::~TransitionLoop(), TransitionSELine::~TransitionSELine(), TransitionVArc::~TransitionVArc(), and TransitionVCurve::~TransitionVCurve().

#define DBGLOG_ (   id,
  x 
)    DBGLOG_PURE("<"id">\t" << CURRENT_FUNCTION_NAME << "->" << x)

Debugging macros with identifiers printed first (eg. define user macro define DBGLOG_MODULE(x) DBGLOG("MODULE", x).

Definition at line 37 of file dbglog.h.

#define DBGLOG_PURE (   x  )     do { qDebug() << x; } while(false)

Debug logging macros - define own macros for granulating log messages.

Definition at line 34 of file dbglog.h.

#define DBGPAR (   PAR  )     #PAR << "=" << PAR << " "
#define RELLOG (   x  )     RELLOG_("EDITOR", x)

Definition at line 48 of file dbglog.h.

Referenced by GVGraph::addEdge(), Editor::addGraphVizDrawAlgorithm(), State::addTransition(), StateImpl::addTransition(), StateImpl::addTransitionTo(), TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), TransitionArc::adjust(), StringProcessor::computeCharacterList(), Editor::createLaTeXTable(), AutomatonImpl::createPrivateTransitionIfNotExists(), Transition::createStrokes(), Editor::detectAutomataSettings(), Parser::EndTransitionDeclaration(), MainWindow::exportTo(), Transition::findIntersectedPoints(), AutomataWorkSimulator::generateSlideshow(), AutomataWorkSimulator::getFileName(), OneStateTransition::getTypeNameSuffix(), Parser::Label_r(), Editor::loadAutomata(), MainWindow::MainWindow(), Editor::mousePressEvent(), NameAcceptDialog::myAccept(), Parser::OneStateTransition(), Editor::openFile(), Editor::paste(), printHelp(), MainWindow::processAlgorithmsPlugin(), MainWindow::processGraphVizPlugin(), LexAn::readStringBetween(), Transition::removeNextLabel(), AutomatonImpl::removeTransition(), BasicAlgorithm::run(), Editor::runAlgorithm(), IntersectionParallelAlgorithm::runInternal(), UniteParallelAlgorithm::runInternal(), MinimalizeAlgorithm::runInternal(), DeterminizeAlgorithm::runInternal(), RemoveMultipleInitialsAlgorithm::runInternal(), RemoveUselessAlgorithm::runInternal(), RemoveInaccessibleAlgorithm::runInternal(), RemoveEpsilonAlgorithm::runInternal(), Editor::saveToFile(), AutomatonImpl::setAllowRedundantTransitions(), Transition::setEndState(), Transition::setLabelText(), StringProcessor::setText(), Parser::StateDeclaration(), StringProcessor::StringProcessor(), trAngleFromDirection(), trMouseAction(), and Parser::VCPut().

#define RELLOG_ (   id,
  x 
)    RELLOG_PURE("<"id">\t" << "->" << x)

Definition at line 47 of file dbglog.h.

#define RELLOG_PURE (   x  )     do { qWarning() << x; } while(false)

release messages (used qWarning, so make sure that QT_NO_WARNING_OUTPUT isn't defined)

Definition at line 46 of file dbglog.h.

#define STRNUMB (   x  )     STRNUMB_HELP(x)

Definition at line 8 of file dbglog.h.

#define STRNUMB_HELP (   x  )     #x

Definition at line 7 of file dbglog.h.