Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2009, 9:22:22 PM (14 years ago)
Author:
rgrieder
Message:

Synchronised sandbox with current code trunk. There should be a few bug fixes.

Location:
sandbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox

  • sandbox/src/libraries/core/Core.h

    r5782 r6038  
    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__
     
    5546    @brief
    5647        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.
    6048    @remark
    6149        You should only create this singleton once because it destroys the identifiers!
     
    8573            static void  resetLanguage();
    8674
    87             //! Returns the path to the data files as boost::filesystem::path
    88             static const boost::filesystem::path& getDataPath();
    89             //! Returns the path to the config files as boost::filesystem::path
    90             static const boost::filesystem::path& getConfigPath();
    91             //! Returns the path to the log files as boost::filesystem::path
    92             static const boost::filesystem::path& getLogPath();
    93             //! Returns the path to the root folder as boost::filesystem::path
    94             static const boost::filesystem::path& getRootPath();
    95             //! Returns the path to the data files as std::string
    96             static std::string getDataPathString();
    97             //! Returns the path to the config files as std::string
    98             static std::string getConfigPathString();
    99             //! Returns the path to the log files as std::string
    100             static std::string getLogPathString();
    101             //! Returns the path to the root folder as std::string
    102             static std::string getRootPathString();
    103 
    104             static bool isDevelopmentRun() { return getInstance().bDevRun_; }
    105 
    10675        private:
    10776            Core(const Core&); //!< Don't use (undefined symbol)
     
    11079            void postUpdate(const Clock& time);
    11180
    112             void setFixedPaths();
    113             void setConfigurablePaths();
    11481            void setThreadAffinity(int limitToCPU);
    11582
    11683            // Mind the order for the destruction!
     84            scoped_ptr<PathConfig>        pathConfig_;
    11785            scoped_ptr<DynLibManager>     dynLibManager_;
    11886            scoped_ptr<SignalHandler>     signalHandler_;
     
    12290            scoped_ptr<CoreConfiguration> configuration_;
    12391
    124             bool                          bDevRun_;             //!< True for runs in the build directory (not installed)
    125 
    12692            static Core* singletonPtr_s;
    12793    };
Note: See TracChangeset for help on using the changeset viewer.