Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 26, 2007, 2:19:53 PM (16 years ago)
Author:
landauf
Message:
  • added new class: the OutputHandler replaces std::cout in Debug.h and redirects the output not only to the console, but also into orxonox.log (this works, of course, only for output using COUT(level) from Debug.h)
  • commented DebugLevel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/DebugLevel.h

    r682 r684  
    2626 */
    2727
     28/*!
     29    @file DebugLevel.h
     30    @brief Definition of the DebugLevel class.
     31
     32    The DebugLevel class is a singleton, only used to configure the amount of debug
     33    output (see Debug.h) into the console and the log-file (see OutputHandler.h).
     34*/
     35
    2836#ifndef _DebugLevel_H__
    2937#define _DebugLevel_H__
     
    3543namespace orxonox
    3644{
     45    //! The DebugLevel class is a singleton, only used to configure the amount of debug output.
    3746    class _CoreExport DebugLevel : public OrxonoxClass
    3847    {
    3948        public:
    40             DebugLevel();
    4149            static int getSoftDebugLevel();
    4250
    4351        private:
    44             int softDebugLevel_s;
    45             static DebugLevel* pointer_s;
    46             static bool bCreatingDebugLevelObject_s;
     52            DebugLevel();                       // don't create
     53            DebugLevel(const DebugLevel& dl) {} // don't copy
     54            ~DebugLevel() {}                    // don't delete
     55
     56            int softDebugLevel_s;                       //!< The output level
     57            static DebugLevel* pointer_s;               //!< A pointer to the only existing instance of this class
     58            static bool bCreatingDebugLevelObject_s;    //!< True if the only instance is being created (this is needed to avoid recurstion - creating the object produces debug output, debug output needs the object)
    4759    };
    4860}
Note: See TracChangeset for help on using the changeset viewer.