Tracer.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (C) 2007-2008 Anael Orlinski
00003 *
00004 * This file is part of Panomatic.
00005 *
00006 * Panomatic is free software; you can redistribute it and/or modify
00007 * it under the terms of the GNU General Public License as published by
00008 * the Free Software Foundation; either version 2 of the License, or
00009 * (at your option) any later version.
00010 *
00011 * Panomatic is distributed in the hope that it will be useful,
00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 * GNU General Public License for more details.
00015 *
00016 * You should have received a copy of the GNU General Public License
00017 * along with Panomatic; if not, write to the Free Software
00018 * <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef __Tracer_h
00022 #define __Tracer_h
00023 
00024 #include <iostream>
00025 
00026 #define TRACE_INFO(x) { std::ostringstream buf; buf << x; std::cout << buf.str(); std::cout.flush();}
00027 
00028 #ifdef _DEBUG
00029 #define TRACE_DEBUG(x) { std::ostringstream buf; buf << x; std::cout << buf.str(); std::cout.flush();}
00030 #else
00031 #define TRACE_DEBUG(x)
00032 #endif
00033 
00034 #define TRACE_ERROR(x) { std::ostringstream buf; buf << x; std::cerr << buf.str(); std::cerr.flush(); }
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 #endif //  __Tracer_h
00043 

Generated on 30 Aug 2015 for Hugintrunk by  doxygen 1.4.7