Basic Image AlgorithmS Library
2.8.0
Main Page
Related Pages
Modules
Classes
Examples
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Base
Debug
DebugSimple.hh
1
/*
2
This file is part of the BIAS library (Basic ImageAlgorithmS).
3
4
Copyright (C) 2003-2009 (see file CONTACT for details)
5
Multimediale Systeme der Informationsverarbeitung
6
Institut fuer Informatik
7
Christian-Albrechts-Universitaet Kiel
8
9
10
BIAS is free software; you can redistribute it and/or modify
11
it under the terms of the GNU Lesser General Public License as published by
12
the Free Software Foundation; either version 2.1 of the License, or
13
(at your option) any later version.
14
15
BIAS is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU Lesser General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public License
21
along with BIAS; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
*/
24
25
26
#ifndef __DEBUG_SIMPLE_HH__
27
#define __DEBUG_SIMPLE_HH__
28
29
/**
30
@brief Macros for output instead of direct cout<<
31
Can be switched on or off globally,
32
can be used for logging to file, too.
33
34
The significant difference to BIASDebug is that this macro does not
35
touch the class hierarchy and does not add artificial class members.
36
But: This debugging scheme supports only levels, not flags.
37
If you really need more granular debugging/outputs look at BIAS/Base/Debug.hh .
38
@author Jan Woetzel
39
**/
40
41
// for std::cout / std::cerr
42
#include <iostream>
43
44
45
/// do COUT outputs?, default is 'on'
46
#ifndef COUT_ONOFF
47
# define COUT_ONOFF 1
48
#endif
49
50
/// which destination for COUT ?
51
#ifndef COUT_DEST
52
# define COUT_DEST std::cout
53
#endif
54
55
// ------ define the macros ------------------------------------------------------
56
#if defined(COUT_ONOFF) && COUT_ONOFF
57
// -- COUT's argument is an ostream to be printed
58
# define COUT(output) \
59
COUT_DEST<<output
60
#else
61
// -- do nothing
62
# define COUT(output)
63
#endif
64
65
66
67
#endif // do not add code after this line
Generated on Tue Feb 6 2018 02:01:31 for Basic Image AlgorithmS Library by
1.8.5