Changeset 684 for code/branches/FICN/src/orxonox/core/DebugLevel.h
- Timestamp:
- Dec 26, 2007, 2:19:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/DebugLevel.h
r682 r684 26 26 */ 27 27 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 28 36 #ifndef _DebugLevel_H__ 29 37 #define _DebugLevel_H__ … … 35 43 namespace orxonox 36 44 { 45 //! The DebugLevel class is a singleton, only used to configure the amount of debug output. 37 46 class _CoreExport DebugLevel : public OrxonoxClass 38 47 { 39 48 public: 40 DebugLevel();41 49 static int getSoftDebugLevel(); 42 50 43 51 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) 47 59 }; 48 60 }
Note: See TracChangeset
for help on using the changeset viewer.