Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 10, 2008, 12:05:03 AM (15 years ago)
Author:
landauf
Message:

merged revisions 2111-2170 from objecthierarchy branch back to trunk.

Location:
code/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/util

  • code/trunk/src/util/Debug.h

    r2087 r2171  
    2828
    2929/**
    30     @file Debug.h
     30    @file
    3131    @brief Handles different output-levels of errors, warnings, infos and debug informations.
    3232
     
    6767#include "OutputHandler.h"
    6868
    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 level
    73 */
    74 static inline int getSoftDebugLevel()
    75 {
    76     return orxonox::OutputHandler::getSoftDebugLevel();
    77 }
    78 
    7969namespace orxonox
    8070{
     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
    8180    using std::endl;
    8281}
     
    115114  #if ORX_HARD_DEBUG_LEVEL >= ORX_NONE
    116115   #define COUT0 \
    117     (getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : COUT_EXEC(0)
     116   (orxonox::getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : COUT_EXEC(0)
    118117  #else
    119118   #define COUT0 \
     
    123122  #if ORX_HARD_DEBUG_LEVEL >= ORX_ERROR
    124123   #define COUT1 \
    125     (getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : COUT_EXEC(1)
     124    (orxonox::getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : COUT_EXEC(1)
    126125  #else
    127126   #define COUT1 \
     
    131130  #if ORX_HARD_DEBUG_LEVEL >= ORX_WARNING
    132131   #define COUT2 \
    133     (getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : COUT_EXEC(2)
     132    (orxonox::getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : COUT_EXEC(2)
    134133  #else
    135134   #define COUT2 \
     
    139138  #if ORX_HARD_DEBUG_LEVEL >= ORX_INFO
    140139   #define COUT3 \
    141     (getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : COUT_EXEC(3)
     140    (orxonox::getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : COUT_EXEC(3)
    142141  #else
    143142   #define COUT3 \
     
    147146  #if ORX_HARD_DEBUG_LEVEL >= ORX_DEBUG
    148147   #define COUT4 \
    149     (getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : COUT_EXEC(4)
     148    (orxonox::getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : COUT_EXEC(4)
    150149  #else
    151150   #define COUT4 \
     
    155154  #if ORX_HARD_DEBUG_LEVEL >= ORX_VERBOSE
    156155   #define COUT5 \
    157     (getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : COUT_EXEC(5)
     156    (orxonox::getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : COUT_EXEC(5)
    158157  #else
    159158   #define COUT5 \
     
    163162  #if ORX_HARD_DEBUG_LEVEL >= ORX_ULTRA
    164163   #define COUT6 \
    165     (getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : COUT_EXEC(6)
     164    (orxonox::getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : COUT_EXEC(6)
    166165  #else
    167166   #define COUT6 \
     
    199198  #if ORX_HARD_DEBUG_LEVEL >= ORX_NONE
    200199   #define CCOUT0 \
    201     (getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : CCOUT_EXEC(0)
     200    (orxonox::getSoftDebugLevel() < ORX_NONE) ? COUT_EXEC(0) : CCOUT_EXEC(0)
    202201  #else
    203202   #define CCOUT0 \
     
    207206  #if ORX_HARD_DEBUG_LEVEL >= ORX_ERROR
    208207   #define CCOUT1 \
    209     (getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : CCOUT_EXEC(1)
     208    (orxonox::getSoftDebugLevel() < ORX_ERROR) ? COUT_EXEC(1) : CCOUT_EXEC(1)
    210209  #else
    211210   #define CCOUT1 \
     
    215214  #if ORX_HARD_DEBUG_LEVEL >= ORX_WARNING
    216215   #define CCOUT2 \
    217     (getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : CCOUT_EXEC(2)
     216    (orxonox::getSoftDebugLevel() < ORX_WARNING) ? COUT_EXEC(2) : CCOUT_EXEC(2)
    218217  #else
    219218   #define CCOUT2 \
     
    223222  #if ORX_HARD_DEBUG_LEVEL >= ORX_INFO
    224223   #define CCOUT3 \
    225     (getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : CCOUT_EXEC(3)
     224    (orxonox::getSoftDebugLevel() < ORX_INFO) ? COUT_EXEC(3) : CCOUT_EXEC(3)
    226225  #else
    227226   #define CCOUT3 \
     
    231230  #if ORX_HARD_DEBUG_LEVEL >= ORX_DEBUG
    232231   #define CCOUT4 \
    233     (getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : CCOUT_EXEC(4)
     232    (orxonox::getSoftDebugLevel() < ORX_DEBUG) ? COUT_EXEC(4) : CCOUT_EXEC(4)
    234233  #else
    235234   #define CCOUT4 \
     
    239238  #if ORX_HARD_DEBUG_LEVEL >= ORX_VERBOSE
    240239   #define CCOUT5 \
    241     (getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : CCOUT_EXEC(5)
     240    (orxonox::getSoftDebugLevel() < ORX_VERBOSE) ? COUT_EXEC(5) : CCOUT_EXEC(5)
    242241  #else
    243242   #define CCOUT5 \
     
    247246  #if ORX_HARD_DEBUG_LEVEL >= ORX_ULTRA
    248247   #define CCOUT6 \
    249     (getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : CCOUT_EXEC(6)
     248    (orxonox::getSoftDebugLevel() < ORX_ULTRA) ? COUT_EXEC(6) : CCOUT_EXEC(6)
    250249  #else
    251250   #define CCOUT6 \
Note: See TracChangeset for help on using the changeset viewer.