Debug.cpp File Reference
#include "Debug.h"
#include "ResourceFinder.h"
#include <QMutex>
#include <QDir>
#include <QUrl>
#include <QCoreApplication>
#include <QDateTime>
#include <stdexcept>
#include <memory>
Include dependency graph for Debug.cpp:

Go to the source code of this file.

Functions

SVDebuggetSVDebug ()
 
SVCerrgetSVCerr ()
 
QDebug & operator<< (QDebug &dbg, const std::string &s)
 
std::ostream & operator<< (std::ostream &target, const QString &str)
 
std::ostream & operator<< (std::ostream &target, const QUrl &u)
 

Variables

static std::unique_ptr< SVDebugsvdebug = nullptr
 
static std::unique_ptr< SVCerrsvcerr = nullptr
 
static QMutex mutex
 

Function Documentation

SVDebug& getSVDebug ( )

Definition at line 32 of file Debug.cpp.

References mutex, and svdebug.

SVCerr& getSVCerr ( )

Definition at line 41 of file Debug.cpp.

References SVDebug::m_silenced, SVCerr::m_silenced, mutex, svcerr, and svdebug.

QDebug& operator<< ( QDebug &  dbg,
const std::string &  s 
)

Definition at line 105 of file Debug.cpp.

std::ostream& operator<< ( std::ostream &  target,
const QString &  str 
)

Definition at line 112 of file Debug.cpp.

std::ostream& operator<< ( std::ostream &  target,
const QUrl &  u 
)

Definition at line 118 of file Debug.cpp.

Variable Documentation

std::unique_ptr<SVDebug> svdebug = nullptr
static

Definition at line 28 of file Debug.cpp.

Referenced by getSVCerr(), and getSVDebug().

std::unique_ptr<SVCerr> svcerr = nullptr
static

Definition at line 29 of file Debug.cpp.

Referenced by getSVCerr().