Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 16, 2008, 3:46:25 AM (16 years ago)
Author:
landauf
Message:

added comments to all my classes in util

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/util/Debug.h

    r1747 r1791  
    2828
    2929/**
    30  * @file Debug.h
    31  * @brief Handles the output for different verbose-modes.
    32  *
    33  * There are two modes: HARD and SOFT. HARD is precessed during compiletime, while SOFT is for runtime.
     30    @file Debug.h
     31    @brief Handles different output-levels of errors, warnings, infos and debug informations.
     32
     33    The COUT(level) macro acts like std::cout, but the output is only performed if the given
     34    level is <= the soft debug level.
     35
     36    There are two used values in this file:
     37     - The hard debug level is used during compiletime. It describes the highest allowed output level.
     38     - The soft debug level is used during runtime and is the maximum of the three configurable
     39       output-levels for console, logfile and ingame shell.
     40
     41    The separation between the three devices is done by the OutputHandler.
     42
     43    Possible levels are:
     44     0: Very important output
     45     1: Errors
     46     2: Warnings
     47     3: Informations
     48     4: Debug information
     49     5: More debug information
     50     6: Crazy debug informations
     51
     52    @example
     53    COUT(0) << "Very important output" << std::endl;
     54    COUT(1) << "Error: Something went wrong!" << std::endl;
     55    COUT(2) << "Warning: There might be a problem." << std::endl;
     56    COUT(3) << "Info: It's monday" << std::endl;
     57    COUT(4) << "Debug: x is 1.23456" << std::endl;
    3458 */
    3559
Note: See TracChangeset for help on using the changeset viewer.