1 #ifndef GCP_UTIL_DEBUG_H
2 #define GCP_UTIL_DEBUG_H
12 #include "gcp/util/common/IoLock.h"
13 #include "gcp/util/common/MutexException.h"
14 #include "gcp/util/common/Mutex.h"
15 #include "gcp/util/common/TimeVal.h"
16 #include "gcp/util/common/Directives.h"
19 #define DBPRINT(doprint, level, statement) \
20 if(doprint && gcp::util::Debug::debugging(level)) {\
21 gcp::util::TimeVal timeVal; \
22 timeVal.setToCurrentTime(); \
23 gcp::util::IoLock::lockCout(); \
24 std::cout << timeVal \
26 << __PRETTY_FUNCTION__ << ": "\
27 << statement << std::endl; \
28 gcp::util::IoLock::unlockCout(); \
31 #define DBPRINT(doprint, level, statement) {}
36 #define DEBUG_CAN gcp::util::Debug::DEBUG1
37 #define DEBUG_CALTERT gcp::util::Debug::DEBUG2
38 #define DEBUG_SIGNAL gcp::util::Debug::DEBUG3
39 #define DEBUG_DELAY gcp::util::Debug::DEBUG4
41 #define DEBUG_PMAC gcp::util::Debug::DEBUG6
42 #define DEBUG_TRACKER gcp::util::Debug::DEBUG7
43 #define DEBUG_IFMOD gcp::util::Debug::DEBUG8
111 static bool debugging(Level level = Debug::DEBUGANY);
114 static void unlock();
138 #endif // End #ifndef
static void remLevel(Level level)
Definition: Debug.cc:41
static void addLevel(Level level)
Definition: Debug.cc:31
static void setLevel(Level level)
Definition: Debug.cc:23
static bool debugging(Level level=Debug::DEBUGANY)
Definition: Debug.cc:62