COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coConfigLog.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef COCONFIGLOG_H
9 #define COCONFIGLOG_H
10 
11 #include <util/coTypes.h>
12 #include <QTextStream>
13 
14 namespace covise
15 {
16 
18 {
19 
20 public:
21  static QTextStream cerr;
22  static QTextStream cout;
23 };
24 }
25 #define COCONFIGMSG(message) \
26  { \
27  covise::coConfigLog::cout << message << endl; \
28  }
29 
30 #define COCONFIGLOG(message) \
31  { \
32  covise::coConfigLog::cerr << message << endl; \
33  }
34 
35 #define COCONFIGDBG(message) \
36  { \
37  if (covise::coConfig::getDebugLevel() == covise::coConfig::DebugAll) \
38  { \
39  covise::coConfigLog::cerr << message << endl; \
40  } \
41  }
42 #define COCONFIGDBG_GET_SET(message) \
43  { \
44  if (covise::coConfig::getDebugLevel() >= covise::coConfig::DebugGetSets) \
45  { \
46  covise::coConfigLog::cerr << message << endl; \
47  } \
48  }
49 #define COCONFIGDBG_DEFAULT(message) \
50  { \
51  if (covise::coConfig::isDebug()) \
52  { \
53  covise::coConfigLog::cerr << message << endl; \
54  } \
55  }
56 
57 #include <config/coConfig.h>
58 
59 #endif
#define CONFIGEXPORT
Definition: coExport.h:337
Definition: coConfigLog.h:17
static QTextStream cout
Definition: coConfigLog.h:22
static QTextStream cerr
Definition: coConfigLog.h:21