|
@@ -13,15 +13,20 @@ struct Option
|
|
|
std::string name;
|
|
|
std::string type;
|
|
|
std::string defaultValue;
|
|
|
- std::string min;
|
|
|
- std::string max;
|
|
|
+ int min;
|
|
|
+ int max;
|
|
|
};
|
|
|
|
|
|
|
|
|
class OptionsManager
|
|
|
{
|
|
|
+ std::map<std::string, Option> options = {
|
|
|
+ {"", {}}
|
|
|
+ };
|
|
|
public:
|
|
|
- OptionsManager(void);
|
|
|
+ OptionsManager(void) = default;
|
|
|
+
|
|
|
+ void setOption(const std::string& name, const Option& option);
|
|
|
};
|
|
|
|
|
|
|
|
@@ -50,6 +55,7 @@ public:
|
|
|
virtual void sendCommand(const std::string& command,
|
|
|
const std::vector<std::string>& args = {});
|
|
|
|
|
|
+ // command handlers
|
|
|
virtual void uci (const std::vector<std::string>& args);
|
|
|
virtual void debug (const std::vector<std::string>& args);
|
|
|
virtual void isready (const std::vector<std::string>& args);
|