#include "Exception.hpp"
#include <iostream>
#include <ostream>
#include <fstream>
#include <string>
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. |
Definition in file Debug.hpp.
#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
Definition at line 56 of file Debug.hpp.
Referenced by H::operator<<().