Changeset 2111 for code/branches/objecthierarchy/src/util/Debug.h
- Timestamp:
- Nov 2, 2008, 12:38:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/util/Debug.h
r2034 r2111 67 67 #include "OutputHandler.h" 68 68 69 70 /**71 @brief Returns the soft debug level, stored in the only existing instance of the OutputHandler class, configured in the config-file.72 @return The soft debug level73 */74 static inline int getSoftDebugLevel()75 {76 return orxonox::OutputHandler::getSoftDebugLevel();77 }78 79 69 namespace orxonox 80 70 { 71 /** 72 @brief Returns the soft debug level, stored in the only existing instance of the OutputHandler class, configured in the config-file. 73 @return The soft debug level 74 */ 75 static inline int getSoftDebugLevel() 76 { 77 return OutputHandler::getSoftDebugLevel(); 78 } 79 81 80 using std::endl; 82 81 } … … 115 114 #if ORX_HARD_DEBUG_LEVEL >= ORX_NONE 116 115 #define COUT0 \ 117 (getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : COUT_EXEC(0)116 (orxonox::getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : COUT_EXEC(0) 118 117 #else 119 118 #define COUT0 \ … … 123 122 #if ORX_HARD_DEBUG_LEVEL >= ORX_ERROR 124 123 #define COUT1 \ 125 ( getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : COUT_EXEC(1)124 (orxonox::getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : COUT_EXEC(1) 126 125 #else 127 126 #define COUT1 \ … … 131 130 #if ORX_HARD_DEBUG_LEVEL >= ORX_WARNING 132 131 #define COUT2 \ 133 ( getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : COUT_EXEC(2)132 (orxonox::getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : COUT_EXEC(2) 134 133 #else 135 134 #define COUT2 \ … … 139 138 #if ORX_HARD_DEBUG_LEVEL >= ORX_INFO 140 139 #define COUT3 \ 141 ( getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : COUT_EXEC(3)140 (orxonox::getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : COUT_EXEC(3) 142 141 #else 143 142 #define COUT3 \ … … 147 146 #if ORX_HARD_DEBUG_LEVEL >= ORX_DEBUG 148 147 #define COUT4 \ 149 ( getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : COUT_EXEC(4)148 (orxonox::getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : COUT_EXEC(4) 150 149 #else 151 150 #define COUT4 \ … … 155 154 #if ORX_HARD_DEBUG_LEVEL >= ORX_VERBOSE 156 155 #define COUT5 \ 157 ( getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : COUT_EXEC(5)156 (orxonox::getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : COUT_EXEC(5) 158 157 #else 159 158 #define COUT5 \ … … 163 162 #if ORX_HARD_DEBUG_LEVEL >= ORX_ULTRA 164 163 #define COUT6 \ 165 ( getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : COUT_EXEC(6)164 (orxonox::getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : COUT_EXEC(6) 166 165 #else 167 166 #define COUT6 \ … … 199 198 #if ORX_HARD_DEBUG_LEVEL >= ORX_NONE 200 199 #define CCOUT0 \ 201 ( getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : CCOUT_EXEC(0)200 (orxonox::getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : CCOUT_EXEC(0) 202 201 #else 203 202 #define CCOUT0 \ … … 207 206 #if ORX_HARD_DEBUG_LEVEL >= ORX_ERROR 208 207 #define CCOUT1 \ 209 ( getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : CCOUT_EXEC(1)208 (orxonox::getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : CCOUT_EXEC(1) 210 209 #else 211 210 #define CCOUT1 \ … … 215 214 #if ORX_HARD_DEBUG_LEVEL >= ORX_WARNING 216 215 #define CCOUT2 \ 217 ( getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : CCOUT_EXEC(2)216 (orxonox::getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : CCOUT_EXEC(2) 218 217 #else 219 218 #define CCOUT2 \ … … 223 222 #if ORX_HARD_DEBUG_LEVEL >= ORX_INFO 224 223 #define CCOUT3 \ 225 ( getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : CCOUT_EXEC(3)224 (orxonox::getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : CCOUT_EXEC(3) 226 225 #else 227 226 #define CCOUT3 \ … … 231 230 #if ORX_HARD_DEBUG_LEVEL >= ORX_DEBUG 232 231 #define CCOUT4 \ 233 ( getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : CCOUT_EXEC(4)232 (orxonox::getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : CCOUT_EXEC(4) 234 233 #else 235 234 #define CCOUT4 \ … … 239 238 #if ORX_HARD_DEBUG_LEVEL >= ORX_VERBOSE 240 239 #define CCOUT5 \ 241 ( getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : CCOUT_EXEC(5)240 (orxonox::getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : CCOUT_EXEC(5) 242 241 #else 243 242 #define CCOUT5 \ … … 247 246 #if ORX_HARD_DEBUG_LEVEL >= ORX_ULTRA 248 247 #define CCOUT6 \ 249 ( getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : CCOUT_EXEC(6)248 (orxonox::getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : CCOUT_EXEC(6) 250 249 #else 251 250 #define CCOUT6 \
Note: See TracChangeset
for help on using the changeset viewer.