void add_option(const std::string &, const std::string &, const std::string &);
const Option &get_option(const std::string &) const;
+ const OptionMap &get_options() const { return options; }
const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
bool is_option(const std::string &) const;
bool process(const RawOptionMap &);
void load(const Msp::Path::Path &);
+ void save(const Msp::Path::Path &) const;
private:
class Loader: public Msp::Parser::Loader
{
+ public:
+ Loader(Config &);
+ private:
+ Config &conf;
+
+ void option(const std::string &, const std::string &);
};
OptionMap options;