X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fucioption.cpp;h=346fd42b89a5aa8a5ea988618e8640ce92b43e82;hb=d40a12f948590e280a4c0e874cb8a73b6b7929c2;hp=e1b5ae552900b310f61db930caf85d53eb73fb1e;hpb=66a64406ca2bf10f903ec5078515f9c825414c3d;p=stockfish diff --git a/src/ucioption.cpp b/src/ucioption.cpp index e1b5ae55..346fd42b 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -17,17 +17,9 @@ along with this program. If not, see . */ - -//// -//// Includes -//// - -#include -#include -#include -#include +#include +#include #include -#include #include "misc.h" #include "thread.h" @@ -37,150 +29,87 @@ using std::string; using std::cout; using std::endl; -//// -//// Local definitions -//// - -namespace { - - enum OptionType { SPIN, COMBO, CHECK, STRING, BUTTON }; - - typedef std::vector StrVector; - - struct Option { - - string name, defaultValue, currentValue; - OptionType type; - size_t idx; - int minValue, maxValue; - 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 idx < o.idx; } - }; - - typedef std::vector