// $Id: IntegerSetting.hh 5300 2006-04-05 08:13:25Z m9710797 $ #ifndef INTEGERSETTING_HH #define INTEGERSETTING_HH #include "SettingRangePolicy.hh" #include "SettingImpl.hh" namespace openmsx { class IntegerSettingPolicy : public SettingRangePolicy { protected: IntegerSettingPolicy(CommandController& commandController, int minValue, int maxValue); std::string toString(int value) const; int fromString(const std::string& str) const; std::string getTypeString() const; }; /** A Setting with an integer value. */ class IntegerSetting : public SettingImpl { public: IntegerSetting(CommandController& commandController, const std::string& name, const std::string& description, int initialValue, int minValue, int maxValue); }; } // namespace openmsx #endif