MoUT.hpp
Go to the documentation of this file.
00001 /*
00002  * MoUT.hpp
00003  * Copyright 2013 University of Massachusetts Lowell
00004  * Author: Abraham Shultz
00005  * The Museum of Useful Things contains code that does useful, but not terribly specific, things.
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 /* MOUT_HPP_ */


arm
Author(s): Jonathan Hasenzahl
autogenerated on Sun Jan 5 2014 11:12:32