COVISE Core
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#include <qtutil/Qt5_15_deprecated.h>
14
15namespace covise
16{
17
19{
20
21public:
22 static QTextStream cerr;
23 static QTextStream cout;
24};
25}
26#define COCONFIGMSG(message) \
27 { \
28 covise::coConfigLog::cout << message << QT::endl; \
29 }
30
31#define COCONFIGLOG(message) \
32 { \
33 covise::coConfigLog::cerr << message << QT::endl; \
34 }
35
36#define COCONFIGDBG(message) \
37 { \
38 if (covise::coConfig::getDebugLevel() == covise::coConfig::DebugAll) \
39 { \
40 covise::coConfigLog::cerr << message << QT::endl; \
41 } \
42 }
43#define COCONFIGDBG_GET_SET(message) \
44 { \
45 if (covise::coConfig::getDebugLevel() >= covise::coConfig::DebugGetSets) \
46 { \
47 covise::coConfigLog::cerr << message << QT::endl; \
48 } \
49 }
50#define COCONFIGDBG_DEFAULT(message) \
51 { \
52 if (covise::coConfig::isDebug()) \
53 { \
54 covise::coConfigLog::cerr << message << QT::endl; \
55 } \
56 }
57
58#include <config/coConfig.h>
59
60#endif
#define CONFIGEXPORT
Definition: coExport.h:367
list of all chemical elements
Definition: coConfig.h:27
Definition: coConfigLog.h:19
static QTextStream cout
Definition: coConfigLog.h:23
static QTextStream cerr
Definition: coConfigLog.h:22