| 50 | static std::string getConfigSetting(const std::string& name) {return config.pluginData.at(name);} |
| 51 | static int getConfigSettingInt(const std::string& name) {return std::stoi(config.pluginData.at(name));} |
| 52 | static bool getConfigSettingBool(const std::string& name) { |
| 53 | const std::string val = config.pluginData.at(name); |
| 54 | if (val == "true") return true; |
| 55 | else if (val == "false") return false; |
| 56 | else throw std::invalid_argument("Not a boolean value"); |
| 57 | } |
| 58 | static void setConfigSetting(const std::string& name, const std::string& value) {config.pluginData[name] = value;} |
| 59 | static void setConfigSettingInt(const std::string& name, int value) {config.pluginData[name] = std::to_string(value);} |
| 60 | static void setConfigSettingBool(const std::string& name, bool value) {config.pluginData[name] = value ? "true" : "false";} |
nothing calls this directly
no outgoing calls
no test coverage detected