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