#include <msp/datafile/loader.h>
#include <msp/fs/path.h>
#include <msp/time/timestamp.h>
-#include "misc.h"
class SourcePackage;
/** 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