libH/Debug.hpp File Reference

Debug class header file. More...

#include "Exception.hpp"
#include <iostream>
#include <ostream>
#include <fstream>
#include <string>

Include dependency graph for Debug.hpp:

Go to the source code of this file.

Namespaces

namespace  H

Classes

class  H::Debug
 Debug stream class. More...

Defines

#define debugOutput(out)
 Macro to test and output the requested data.
#define cdbg   if (H::Debug::testPrint(dbg0)) H::dbg0
#define cdbg1   if (H::Debug::testPrint(dbg1)) H::dbg1
#define cdbg2   if (H::Debug::testPrint(dbg2)) H::dbg2
#define cdbg3   if (H::Debug::testPrint(dbg3)) H::dbg3
#define cdbg4   if (H::Debug::testPrint(dbg4)) H::dbg4
#define cdbg5   if (H::Debug::testPrint(dbg5)) H::dbg5

Functions

const Debug & H::operator<< (const Debug &dbg, const std::string &out)
 Debug insertion operator for string.
const Debug & H::operator<< (const Debug &dbg, const char *out)
 Debug insertion operator for const char *.
const Debug & H::operator<< (const Debug &dbg, const char out)
 Debug insertion operator for char.
const Debug & H::operator<< (const Debug &dbg, const int out)
 Debug insertion operator for int.
const Debug & H::operator<< (const Debug &dbg, const unsigned int out)
 Debug insertion operator for uint.
const Debug & H::operator<< (const Debug &dbg, const long out)
 Debug insertion operator for long.
const Debug & H::operator<< (const Debug &dbg, const long long out)
 Debug insertion operator for long.
const Debug & H::operator<< (const Debug &dbg, const bool out)
 Debug insertion operator for bool.
const Debug & H::operator<< (const Debug &dbg, const unsigned long out)
 Debug insertion operator for ulong.
const Debug & H::operator<< (const Debug &dbg, const unsigned long long out)
 Debug insertion operator for ulong.
const Debug & H::operator<< (const Debug &dbg, const double out)
 Debug insertion operator for double.
const Debug & H::operator<< (const Debug &dbg, std::ostream &(*out)(std::ostream &))
 Debug insertion operator for endl et al.

Variables

static const Debug H::dbg0 (0)
 Instantiation of cdbg level 0.
static const Debug H::dbg1 (1)
 Instantiation of cdbg level 1.
static const Debug H::dbg2 (2)
 Instantiation of cdbg level 2.
static const Debug H::dbg3 (3)
 Instantiation of cdbg level 3.
static const Debug H::dbg4 (4)
 Instantiation of cdbg level 4.
static const Debug H::dbg5 (5)
 Instantiation of cdbg level 5.


Detailed Description

Debug class header file.

Definition in file Debug.hpp.


Define Documentation

#define debugOutput ( out   ) 

Value:

std::cout << out; \
        if (Debug::mLogToFile) { \
                Debug::mLogFile.open(Debug::mLogPath.c_str(), std::ios::app); \
                if (Debug::mLogFile.is_open()) { \
                        Debug::mLogFile << out; \
                        Debug::mLogFile.close(); \
                } \
        } \
        return dbg
Macro to test and output the requested data.

Definition at line 56 of file Debug.hpp.

Referenced by H::operator<<().


Generated on Wed Nov 7 10:06:00 2007 for gizmod by  doxygen 1.5.3