HyperspaceExplorer 0.7.1
Public Member Functions | Private Member Functions | Friends
Log Class Reference

Conditionally prints messages, if the preprocessor variable DEBUG is defined. More...

#include <Log.h>

List of all members.

Public Member Functions

void log (std::string)
template<typename T >
Logoperator<< (const T &)

Private Member Functions

 Log ()
 Log (const Log &)
Logoperator= (const Log &)
 ~Log ()

Friends

class Loki::CreateUsingNew< Log >

Detailed Description

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.

Author:
Lene Preuss <lene.preuss@gmail.com>

Constructor & Destructor Documentation

Log::Log ( ) [inline, private]

disabled default constructor

Log::Log ( const Log ) [private]

disabled copy constructor

Log::~Log ( ) [inline, private]

disabled destructor


Member Function Documentation

void Log::log ( std::string  ) [inline]

print a string with a line break

References std::cerr, and std::endl().

Here is the call graph for this function:

template<typename T >
Log& Log::operator<< ( const T &  ) [inline]

print a string without a line break

References std::cerr.

Log& Log::operator= ( const Log ) [private]

disabled assignment operator


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo