-class UCIOption {
-public:
- UCIOption() {} // To be used in a std::map
- UCIOption(const char* defaultValue);
- UCIOption(bool defaultValue, std::string type = "check");
- UCIOption(int defaultValue, int minValue, int maxValue);
-
- void set_value(const std::string& v);
- template<typename T> T value() const;
-
-private:
- friend struct OptionsMap;
-
- std::string defaultValue, currentValue, type;
- int minValue, maxValue;
- size_t idx;
-};