diff options
Diffstat (limited to 'project2/files/optionsSource.h')
-rw-r--r-- | project2/files/optionsSource.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/project2/files/optionsSource.h b/project2/files/optionsSource.h index 6f25459..a6d1cd1 100644 --- a/project2/files/optionsSource.h +++ b/project2/files/optionsSource.h @@ -3,20 +3,23 @@ #include "../common/optionsSource.h" #include "../common/options.h" +#include <boost/filesystem/path.hpp> + +class FileOptions; +typedef boost::shared_ptr<FileOptions> FileOptionsPtr; class FileOptions : public OptionsSource { public: - FileOptions(const Glib::ustring & file); + FileOptions(const boost::filesystem::path & file); void loadInto(const ConfigConsumer & consume, const Options::CurrentPlatform & platform) const; - bool needReload() const; + boost::posix_time::ptime modifiedTime() const override; INITOPTIONS; private: - const Glib::ustring file; - mutable time_t loadedAt; + const boost::filesystem::path file; - typedef std::map<std::string, boost::shared_ptr<FileOptions>> ExtraFileOptions; + typedef std::map<std::string, FileOptionsPtr> ExtraFileOptions; static ExtraFileOptions extraFileOptions; }; |