Changeset 688 for code/branches/FICN/src
- Timestamp:
- Dec 26, 2007, 9:33:08 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox/core
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/DebugLevel.cc
r687 r688 31 31 */ 32 32 33 #include "Co reIncludes.h"33 #include "ConfigValueContainer.h" 34 34 #include "Debug.h" 35 35 #include "DebugLevel.h" … … 45 45 this->softDebugLevel_ = this->softDebugLevelContainer_->getValue(this->softDebugLevel_); 46 46 } 47 48 /**49 @returns a pointer to the only existing instance of this class.50 */51 int DebugLevel::getSoftDebugLevel()52 {53 static DebugLevel theOneAndOnlyInstance = DebugLevel();54 return theOneAndOnlyInstance.softDebugLevel_;55 }56 47 } 57 48 -
code/branches/FICN/src/orxonox/core/DebugLevel.h
r687 r688 39 39 #include "CorePrereqs.h" 40 40 41 #include "OrxonoxClass.h"42 43 41 namespace orxonox 44 42 { … … 47 45 { 48 46 public: 49 static int getSoftDebugLevel(); 47 static inline int getSoftDebugLevel() 48 { 49 static DebugLevel theOneAndOnlyInstance = DebugLevel(); 50 return theOneAndOnlyInstance.softDebugLevel_; 51 } 50 52 51 53 private:
Note: See TracChangeset
for help on using the changeset viewer.