Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2009, 8:20:07 PM (16 years ago)
Author:
rgrieder
Message:

Merged core5 branch back to the trunk.
Key features include clean level unloading and an extended XML event system.

Two important notes:
Delete your keybindings.ini files! * or you will still get parser errors when loading the key bindings.
Delete build_dir/lib/modules/libgamestates.module! * or orxonox won't start.
Best thing to do is to delete the build folder ;)

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/core/Core.h

    r5781 r5929  
    2828 */
    2929
    30 /**
    31 @file
    32 @brief
    33     Declaration of the Core class.
    34 @details
    35     The Core class is a singleton, only used to configure some variables
    36     in the core through the config-file.
    37 */
    38 
    3930#ifndef _Core_H__
    4031#define _Core_H__
     
    4536#include <boost/scoped_ptr.hpp>
    4637#include "util/OutputHandler.h"
     38#include "util/Scope.h"
    4739#include "util/ScopeGuard.h"
    4840#include "util/Singleton.h"
     
    5547    @brief
    5648        The Core class is a singleton used to configure the program basics.
    57     @details
    58         The class provides information about the data, config and log path.
    59         It determines those by the use of platform specific functions.
    6049    @remark
    6150        You should only create this singleton once because it destroys the identifiers!
     
    8574            static void  resetLanguage();
    8675
    87             static void tsetExternalDataPath(const std::string& path);
    88             //! Returns the path to the data files as boost::filesystem::path
    89             static const boost::filesystem::path& getDataPath();
    90             //! Returns the path to the external data files as boost::filesystem::path
    91             static const boost::filesystem::path& getExternalDataPath();
    92             //! Returns the path to the config files as boost::filesystem::path
    93             static const boost::filesystem::path& getConfigPath();
    94             //! Returns the path to the log files as boost::filesystem::path
    95             static const boost::filesystem::path& getLogPath();
    96             //! Returns the path to the root folder as boost::filesystem::path
    97             static const boost::filesystem::path& getRootPath();
    98             //! Returns the path to the data files as std::string
    99             static std::string getDataPathString();
    100             //! Returns the path to the external data files as std::string
    101             static std::string getExternalDataPathString();
    102             //! Returns the path to the config files as std::string
    103             static std::string getConfigPathString();
    104             //! Returns the path to the log files as std::string
    105             static std::string getLogPathString();
    106             //! Returns the path to the root folder as std::string
    107             static std::string getRootPathString();
    108 
    109             static bool isDevelopmentRun() { return getInstance().bDevRun_; }
    110 
    11176        private:
    11277            Core(const Core&); //!< Don't use (undefined symbol)
     
    11883            void unloadGraphics();
    11984
    120             void setFixedPaths();
    121             void setConfigurablePaths();
    12285            void setThreadAffinity(int limitToCPU);
    12386
    12487            // Mind the order for the destruction!
     88            scoped_ptr<PathConfig>        pathConfig_;
    12589            scoped_ptr<DynLibManager>     dynLibManager_;
    12690            scoped_ptr<SignalHandler>     signalHandler_;
     
    137101            scoped_ptr<InputManager>      inputManager_;        //!< Interface to OIS
    138102            scoped_ptr<GUIManager>        guiManager_;          //!< Interface to GUI
     103            scoped_ptr<Scope<ScopeID::Root> >     rootScope_;
     104            scoped_ptr<Scope<ScopeID::Graphics> > graphicsScope_;
    139105
    140             bool                          bDevRun_;             //!< True for runs in the build directory (not installed)
    141106            bool                          bGraphicsLoaded_;
    142 
    143107            static Core* singletonPtr_s;
    144108    };
Note: See TracChangeset for help on using the changeset viewer.