svcore  1.9
Debug.cpp File Reference
#include "Debug.h"
#include "ResourceFinder.h"
#include <QString>
#include <QUrl>
#include <QMutex>
#include <QMutexLocker>
#include <QFile>
#include <QDir>
#include <QCoreApplication>
#include <QDateTime>
#include <QThreadStorage>
#include <cstdio>
Include dependency graph for Debug.cpp:

Go to the source code of this file.

Functions

QDebug & getSVDebug ()
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 QThreadStorage< QDebug * > debugs
static QMutex mutex
static char * prefix = 0

Function Documentation

QDebug& getSVDebug ( )

!! what to do if mkpath fails?

Definition at line 36 of file Debug.cpp.

References debugs, ResourceFinder::getUserResourcePrefix(), mutex, and prefix.

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

Definition at line 84 of file Debug.cpp.

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

Definition at line 91 of file Debug.cpp.

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

Definition at line 97 of file Debug.cpp.


Variable Documentation

QThreadStorage<QDebug *> debugs [static]

Definition at line 31 of file Debug.cpp.

Referenced by getSVDebug().

QMutex mutex [static]