Index: src/libchcore/EngineCfg.h =================================================================== diff -u -N -rd5c3edd0d167db9b5d47d04248820fda49499a5e -rd791f35daa46db295cc0b1ebc54763e23879a351 --- src/libchcore/EngineCfg.h (.../EngineCfg.h) (revision d5c3edd0d167db9b5d47d04248820fda49499a5e) +++ src/libchcore/EngineCfg.h (.../EngineCfg.h) (revision d791f35daa46db295cc0b1ebc54763e23879a351) @@ -20,6 +20,7 @@ #define __ENGINE_CFG_H__ #include "libchcore.h" +#include "../libicpf/cfg.h" BEGIN_CHCORE_NAMESPACE @@ -28,10 +29,13 @@ // ones related to current instance of CH core class LIBCHCORE_API engine_config : public icpf::config { -public: +protected: engine_config(icpf::config::config_base_types eType); virtual ~engine_config(); +public: + static engine_config& Acquire(); + // paths handling void set_base_path(const tchar_t* pszPath); const tchar_t* get_base_path() { return m_strBasePath.c_str(); } @@ -40,6 +44,8 @@ private: tstring_t m_strBasePath; tstring_t m_strTasksPath; + + static engine_config S_Config; }; END_CHCORE_NAMESPACE