Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 31, 2011, 11:42:55 PM (13 years ago)
Author:
landauf
Message:

Removed debugLevel_ from Shell, using correct variable inherited from BaseWriter as config value.
Fixed OutputListener::setLevelMax() which ignored the new output level "message".
Fixed using a boolean called "verbose" instead of the output level with the same name in Loader.
Preventing further problems of this kind by defining OutputLevel as an enum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/util/output/OutputDefinitions.h

    r8807 r8808  
    3838namespace orxonox
    3939{
    40     typedef uint16_t OutputLevel;
    41 
    4240    namespace level
    4341    {
    44         static const OutputLevel all              = 0xFFFF;
    45         static const OutputLevel none             = 0x0000;
     42        enum OutputLevel
     43        {
     44            all              = 0xFFFF,
     45            none             = 0x0000,
    4646
    47         static const OutputLevel message          = 0x0001;
    48         static const OutputLevel debug_output     = 0x0002;
    49         static const OutputLevel user_error       = 0x0004;
    50         static const OutputLevel user_warning     = 0x0008;
    51         static const OutputLevel user_status      = 0x0010;
    52         static const OutputLevel user_info        = 0x0020;
    53         static const OutputLevel internal_error   = 0x0040;
    54         static const OutputLevel internal_warning = 0x0080;
    55         static const OutputLevel internal_status  = 0x0100;
    56         static const OutputLevel internal_info    = 0x0200;
    57         static const OutputLevel verbose          = 0x0400;
    58         static const OutputLevel verbose_more     = 0x0800;
    59         static const OutputLevel verbose_ultra    = 0x1000;
     47            message          = 0x0001,
     48            debug_output     = 0x0002,
     49            user_error       = 0x0004,
     50            user_warning     = 0x0008,
     51            user_status      = 0x0010,
     52            user_info        = 0x0020,
     53            internal_error   = 0x0040,
     54            internal_warning = 0x0080,
     55            internal_status  = 0x0100,
     56            internal_info    = 0x0200,
     57            verbose          = 0x0400,
     58            verbose_more     = 0x0800,
     59            verbose_ultra    = 0x1000
     60        };
    6061    }
     62
     63    using namespace level;
    6164
    6265    typedef uint64_t OutputContext;
Note: See TracChangeset for help on using the changeset viewer.