- cout << "\noption name " << it->first << " type " << o.type;
-
- if (o.type == "check")
- cout << " default " << (o.defaultValue == "1" ? "true" : "false");
- else if (o.type == "string")
- cout << " default " << o.defaultValue;
- else if (o.type == "spin")
- {
- cout << " default " << o.defaultValue
- << " min " << o.minValue << " max " << o.maxValue;
- }
- else if (o.type != "button")
- assert(false);
+ s << "\noption name " << it->first << " type " << o.type;
+
+ if (o.type != "button")
+ s << " default " << o.defaultValue;
+
+ if (o.type == "spin")
+ s << " min " << o.minValue << " max " << o.maxValue;