HyperspaceExplorer 0.7.1
|
Conditionally prints messages, if the preprocessor variable DEBUG is defined. More...
#include <Log.h>
Public Member Functions | |
void | log (std::string) |
template<typename T > | |
Log & | operator<< (const T &) |
Private Member Functions | |
Log () | |
Log (const Log &) | |
Log & | operator= (const Log &) |
~Log () | |
Friends | |
class | Loki::CreateUsingNew< Log > |
Conditionally prints messages, if the preprocessor variable DEBUG is defined.
That implies a lot of #ifdef DEBUG in its declaration as well as its definition. Never mind the ugliness.
Log::Log | ( | ) | [inline, private] |
disabled default constructor
Log::Log | ( | const Log & | ) | [private] |
disabled copy constructor
Log::~Log | ( | ) | [inline, private] |
disabled destructor
void Log::log | ( | std::string | ) | [inline] |
print a string with a line break
References std::cerr, and std::endl().
Log& Log::operator<< | ( | const T & | ) | [inline] |
print a string without a line break
References std::cerr.