Support enum config options

This commit is contained in:
Alessandro Ranellucci 2013-12-21 10:46:43 +01:00
parent f274287b0e
commit bb5bbe191f
3 changed files with 58 additions and 31 deletions

View file

@ -129,6 +129,8 @@ DynamicConfig::option(const t_config_option_key opt_key, bool create) {
opt = new ConfigOptionPoint ();
} else if (Options[opt_key].type == coBool) {
opt = new ConfigOptionBool ();
} else if (Options[opt_key].type == coEnumGCodeFlavor) {
opt = new ConfigOptionEnumGCodeFlavor ();
} else {
throw "Unknown option type";
}