1 #ifndef SZA_UTIL_DEBUG_H
2 #define SZA_UTIL_DEBUG_H
12 #include "carma/szautil/IoLock.h"
16 #include "carma/szautil/Directives.h"
19 #define DBPRINT(doprint, level, statement) \
20 if(doprint && sza::util::Debug::debugging(level)) {\
21 sza::util::TimeVal timeVal; \
22 timeVal.setToCurrentTime(); \
23 sza::util::IoLock::lockCout(); \
24 std::cout << timeVal \
26 << __PRETTY_FUNCTION__ << ": "\
27 << statement << std::endl; \
28 sza::util::IoLock::unlockCout(); \
31 #define DBPRINT(doprint, level, statement) {}
36 #define DEBUG_CAN sza::util::Debug::DEBUG1
37 #define DEBUG_CALTERT sza::util::Debug::DEBUG2
38 #define DEBUG_SIGNAL sza::util::Debug::DEBUG3
39 #define DEBUG_DELAY sza::util::Debug::DEBUG4
41 #define DEBUG_PMAC sza::util::Debug::DEBUG6
42 #define DEBUG_TRACKER sza::util::Debug::DEBUG7
43 #define DEBUG_IFMOD sza::util::Debug::DEBUG8
91 static void setLevel(Level level);
96 static void setLevel(
unsigned int);
101 static void addLevel(Level level);
106 static void remLevel(Level level);
111 static bool debugging(Level level = Debug::DEBUGANY);
114 static void unlock();
138 #endif // End #ifndef
Tagged: Fri Nov 14 12:39:38 UTC 2003.
Tagged: Sat Mar 27 16:28:13 PST 2004.
Tagged: Sat May 22 07:36:14 PDT 2004.