mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 10:55:53 +08:00
added getBool() to Slic3r::Config interface.
This commit is contained in:
parent
846e46a130
commit
65676215cc
@ -68,6 +68,10 @@ public:
|
||||
if (print_config_def.options.count(opt_key) == 0) throw InvalidOptionType(opt_key + std::string(" is an invalid option."));
|
||||
return (dynamic_cast<ConfigOption*>(this->_config.optptr(opt_key, create)))->getInt();
|
||||
}
|
||||
bool getBool(const t_config_option_key& opt_key, bool create=true) {
|
||||
if (print_config_def.options.count(opt_key) == 0) throw InvalidOptionType(opt_key + std::string(" is an invalid option."));
|
||||
return (dynamic_cast<ConfigOption*>(this->_config.optptr(opt_key, create)))->getBool();
|
||||
}
|
||||
std::string getString(const t_config_option_key& opt_key, bool create=true) {
|
||||
if (print_config_def.options.count(opt_key) == 0) throw InvalidOptionType(opt_key + std::string(" is an invalid option."));
|
||||
return (dynamic_cast<ConfigOption*>(this->_config.optptr(opt_key, create)))->getString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user