X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=e1b5ae552900b310f61db930caf85d53eb73fb1e;hp=af568a37953799786ce4f15aec954cc18b817e2a;hb=66a64406ca2bf10f903ec5078515f9c825414c3d;hpb=a5a8830e97cbf8005d559029d273bdb13a341278 diff --git a/src/ucioption.cpp b/src/ucioption.cpp index af568a37..e1b5ae55 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -34,6 +34,8 @@ #include "ucioption.h" using std::string; +using std::cout; +using std::endl; //// //// Local definitions @@ -41,13 +43,9 @@ using std::string; namespace { - /// - /// Types - /// - enum OptionType { SPIN, COMBO, CHECK, STRING, BUTTON }; - typedef std::vector ComboValues; + typedef std::vector StrVector; struct Option { @@ -55,23 +53,42 @@ namespace { OptionType type; size_t idx; int minValue, maxValue; - ComboValues comboValues; + StrVector comboValues; Option(); Option(const char* defaultValue, OptionType = STRING); Option(bool defaultValue, OptionType = CHECK); Option(int defaultValue, int minValue, int maxValue); - bool operator<(const Option& o) const { return this->idx < o.idx; } + bool operator<(const Option& o) const { return idx < o.idx; } }; + typedef std::vector