Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #ifndef MOUT_HPP_
00009 #define MOUT_HPP_
00010 
00011 #include <string>
00012 #include <sstream>
00013 #include <iostream>
00014 
00019 template <class T>
00020 std::string toString(T t, std::ios_base & (*f)(std::ios_base&))
00021 {
00022   std::ostringstream oss;
00023   oss << f << t;
00024   return oss.str();
00025 }
00026 
00030 void debug(std::string message)
00031 {
00032 #ifdef DEBUG
00033         std::cout << message << std::endl;
00034 #endif
00035 }
00036 
00037 #endif