Changeset 7421 for sandbox_qt/src/libraries/core/Core.h
- Timestamp:
- Sep 12, 2010, 12:47:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox_qt/src/libraries/core/Core.h
r7401 r7421 45 45 46 46 #include <string> 47 #include < boost/scoped_ptr.hpp>47 #include <QScopedPointer> 48 48 #include <loki/ScopeGuard.h> 49 49 50 50 #include "util/Singleton.h" 51 #include " OrxonoxClass.h"51 #include "PathConfig.h" 52 52 53 53 namespace orxonox … … 59 59 You should only create this singleton once because it destroys the identifiers! 60 60 */ 61 class _CoreExport Core : public Singleton<Core> , public OrxonoxClass61 class _CoreExport Core : public Singleton<Core> 62 62 { 63 63 typedef Loki::ScopeGuardImpl0<void (*)()> SimpleScopeGuard; … … 78 78 void setConfigValues(); 79 79 80 //! Returns the configured language.81 const std::string& getLanguage()82 { return this->language_; }83 void resetLanguage();84 85 80 private: 86 81 Core(const Core&); //!< Don't use (undefined symbol) 87 82 88 void languageChanged();89 83 void initRandomNumberGenerator(); 90 84 91 void preUpdate(const Clock& time); 92 void postUpdate(const Clock& time); 93 94 void loadGraphics(); 95 void unloadGraphics(); 85 void update() {} 96 86 97 87 void setThreadAffinity(int limitToCPU); 98 88 // MANAGED SINGLETONS/OBJECTS 99 89 // Mind the order for the destruction! 100 scoped_ptr<PathConfig> pathConfig_; 101 scoped_ptr<DynLibManager> dynLibManager_; 102 scoped_ptr<SignalHandler> signalHandler_; 103 SimpleScopeGuard identifierDestroyer_; 104 SimpleScopeGuard consoleCommandDestroyer_; 105 scoped_ptr<ConfigFileManager> configFileManager_; 106 scoped_ptr<Language> languageInstance_; 107 scoped_ptr<IOConsole> ioConsole_; 108 scoped_ptr<TclBind> tclBind_; 109 scoped_ptr<TclThreadManager> tclThreadManager_; 110 scoped_ptr<Scope<ScopeID::Root> > rootScope_; 111 // graphical 112 scoped_ptr<GraphicsManager> graphicsManager_; //!< Interface to OGRE 113 scoped_ptr<InputManager> inputManager_; //!< Interface to OIS 114 scoped_ptr<GUIManager> guiManager_; //!< Interface to GUI 115 scoped_ptr<Scope<ScopeID::Graphics> > graphicsScope_; 90 QScopedPointer<PathConfig> pathConfig_; 116 91 117 bool bGraphicsLoaded_;118 92 int softDebugLevelLogFile_; //!< The debug level for the log file (belongs to OutputHandler) 119 std::string language_; //!< The language120 93 bool bInitRandomNumberGenerator_; //!< If true, srand(time(0)) is called 121 bool bStartIOConsole_; //!< Set to false if you don't want to use the IOConsole122 94 123 95 static Core* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.