#ifndef settings_h #define settings_h #include "value.h" #include #include #include namespace eir { class GlobalSettingsManager : public paludis::PrivateImplementationPattern, public paludis::InstantiationPolicy { public: struct IteratorTag; typedef paludis::WrappedForwardIterator > iterator; iterator begin(); iterator end(); iterator find(std::string name); Value& get(std::string name); Value get_with_default(std::string name, Value _default); bool add(std::string n, Value v); size_t remove(std::string n); void remove(iterator it); GlobalSettingsManager(); ~GlobalSettingsManager(); }; } #endif