]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Settings.hh
stream-based logging classes
[chaz/yoink] / src / Moof / Settings.hh
index 9b3e0cb27146bbc3a1a99c91a8c76f56dad3d8d0..2a2a9267026e5475ddd5c0a1d11433da19767251 100644 (file)
@@ -58,6 +58,8 @@ public:
                importLogPrintFunction(mScript);
        }
 
                importLogPrintFunction(mScript);
        }
 
+       ~Settings();
+
        // get global instance
        static Settings& getInstance();
 
        // get global instance
        static Settings& getInstance();
 
@@ -68,13 +70,18 @@ public:
 
        void clear();           // remove all settings
 
 
        void clear();           // remove all settings
 
+       void saveAs(const std::string& filePath);
+       void save() const;
+
        template <typename T>
        bool get(const std::string& key, T& value);
 
 private:
 
        Script                  mScript;
        template <typename T>
        bool get(const std::string& key, T& value);
 
 private:
 
        Script                  mScript;
-       Script::Value   mGlobals, mTop;
+       Script::Slot    mGlobals, mTop;
+
+       std::string             mUserFile;
 };
 
 
 };
 
 
This page took 0.017989 seconds and 4 git commands to generate.