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;
+ void select_last_profile();
+ void select_profile(const std::string &);
+ bool update(const RawOptionMap &);
+ void set_source(const Msp::Path::Path &s) { source=s; }
+ void save() const;
private:
class Loader: public Msp::Parser::Loader
{
void option(const std::string &, const std::string &);
};
- OptionMap options;
+ Msp::Path::Path source;
+ OptionMap options;
Msp::Time::TimeStamp mtime;
+
+ bool set_option(const std::string &, const std::string &);
+ void load();
};
#endif