X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fucioption.cpp;h=9b9c20da0019e5b507468cca7f9aa22b3c432954;hb=f44aea7508d3516c474bce6d95a03b7760391cef;hp=accde1ec188e5d320f2ccb20252cac5b32857a27;hpb=c0616d773dcb967dad755de74c36937fc5753b63;p=stockfish diff --git a/src/ucioption.cpp b/src/ucioption.cpp index accde1ec..9b9c20da 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -17,17 +17,8 @@ along with this program. If not, see . */ - -//// -//// Includes -//// - -#include -#include -#include -#include +#include #include -#include #include "misc.h" #include "thread.h" @@ -37,150 +28,69 @@ 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