]> git.tdb.fi Git - builder.git/blobdiff - source/config.h
Reorder Config members
[builder.git] / source / config.h
index 91a6ef07e7c7e75845994b361ab2f2d0c3cd493d..92f558577d0c167454f3e05df0b112a0d1d57270 100644 (file)
@@ -52,18 +52,19 @@ public:
        /** Adds a configuration option with name, default value and description. */
        void add_option(const std::string &, const std::string &, const std::string &);
 
+       bool set_option(const std::string &, const std::string &);
+
+       /** Checks whether an option exists. */
+       bool is_option(const std::string &) const;
+
        /** Gets a configuration option by name. */
        const Option &get_option(const std::string &) const;
 
        const OptionMap &get_options() const { return options; }
        const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
 
-       /** Checks whether an option exists. */
-       bool is_option(const std::string &) const;
-
-       void save() const;
-       bool set_option(const std::string &, const std::string &);
        void load();
+       void save() const;
 };
 
 #endif