OpenGP  1.1
Open Geometry Processing Library
Public Member Functions | List of all members
MLogger Class Reference

(c) Andrea Tagliasacchi More...

#include <MLogger.h>

Public Member Functions

 MLogger (std::ostream &out=std::cout)
 
 ~MLogger ()
 
template<typename T >
MLoggeroperator<< (const T &log)
 
MLoggeroperator<< (const WriterFlag &flag)
 Allows manipulators.
 
MLoggeroperator() ()
 
MLoggeroperator() (const char *fmt,...)
 

Detailed Description

(c) Andrea Tagliasacchi

Constructor & Destructor Documentation

MLogger::MLogger ( std::ostream &  out = std::cout)
inline
Note
default redirects to std::cout
MLogger::~MLogger ( )
inline
Note
allows conditional automatic newline

Member Function Documentation

MLogger& MLogger::operator() ( )
inline
Note
this allows mDebug() << ..
MLogger& MLogger::operator() ( const char *  fmt,
  ... 
)
inline
Todo:
possible alternative: varardic templates and type-safe printf

< matches printf

template<typename T >
MLogger& MLogger::operator<< ( const T &  log)
inline
Note
this allows C++ types to be sent to _out

The documentation for this class was generated from the following file: