Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxDebug.h

00001 /*
00002  *  Copyright (c) 1998, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *
00006  *  Author(s):
00007  *  Dennis Koelma (koelma@wins.uva.nl)
00008  *  Edo Poll (poll@wins.uva.nl)
00009  */
00010 
00011 #ifndef HxDebug_h
00012 #define HxDebug_h
00013 
00014 #include "HxIo.h"
00015 #include <iomanip>
00016 
00017 #define enter(f) STD_COUT << "Entering " << #f << "()" << STD_ENDL
00018 #define leave(f) STD_COUT << "Leaving " << #f << "()" << STD_ENDL
00019 #define doit(c) STD_COUT    << '"' << __FILE__ << '"' << ", line " << __LINE__ \
00020                         << " $ " << #c << ";" << STD_ENDL << flush; c
00021 #define show(v) STD_COUT    << '"' << __FILE__ << '"' << ", line " << __LINE__ \
00022                         << ": " << #v << " = " << flush << (v) << STD_ENDL
00023 #define errshow(v) STD_CERR    << '"' << __FILE__ << '"' << ", line " << __LINE__ \
00024                         << ": " << #v << " = " << flush << (v) << STD_ENDL
00025 #define here    STD_COUT << '"' << __FILE__ << '"' << ", line " << __LINE__ << STD_ENDL
00026 
00027 #endif

Generated on Tue Feb 3 14:18:33 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001