From: Maxim Mamontov Date: Sun, 11 Mar 2018 10:12:32 +0000 (+0200) Subject: Merge branch 'stg-2.409' into stg-2.409-radius X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/0d3126b51031578f051af3f38ed73b8e4e6a18bf?hp=-c Merge branch 'stg-2.409' into stg-2.409-radius --- 0d3126b51031578f051af3f38ed73b8e4e6a18bf diff --combined include/stg/module_settings.h index 5af5eefc,669cc225..b94de10c --- a/include/stg/module_settings.h +++ b/include/stg/module_settings.h @@@ -14,16 -14,6 +14,16 @@@ //----------------------------------------------------------------------------- struct PARAM_VALUE { + PARAM_VALUE() {} + PARAM_VALUE(const std::string& p, const std::vector& vs) + : param(p), + value(vs) + {} + PARAM_VALUE(const std::string& p, const std::vector& vs, const std::vector& ss) + : param(p), + value(vs), + sections(ss) + {} bool operator==(const PARAM_VALUE & rhs) const { return !strcasecmp(param.c_str(), rhs.param.c_str()); } @@@ -32,19 -22,10 +32,16 @@@ std::string param; std::vector value; + std::vector sections; }; //----------------------------------------------------------------------------- struct MODULE_SETTINGS { - MODULE_SETTINGS() - : moduleName(), - moduleParams() - {} ++ MODULE_SETTINGS() {} + MODULE_SETTINGS(const std::string& name, const std::vector& params) + : moduleName(name), + moduleParams(params) + {} bool operator==(const MODULE_SETTINGS & rhs) const { return !strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()); }