-
-/// Option::value() definition and specializations
-template<typename T>
-T UCIOption::value() const {
-
- assert(type == "spin");
- return T(atoi(currentValue.c_str()));
-}
-
-template<>
-inline std::string UCIOption::value<std::string>() const {
-
- assert(type == "string");
- return currentValue;
-}
-
-template<>
-inline bool UCIOption::value<bool>() const {
-
- assert(type == "check" || type == "button");
- return currentValue == "true";
-}
-