X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/516232a1785d55ab711841639c71ca309f4ddf5f..4a1a62fae847eab4e83fdd61a5c801e9ec99529e:/include/stg/module_settings.h?ds=sidebyside diff --git a/include/stg/module_settings.h b/include/stg/module_settings.h index 669cc225..b94de10c 100644 --- a/include/stg/module_settings.h +++ b/include/stg/module_settings.h @@ -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()); } @@ -22,10 +32,16 @@ struct PARAM_VALUE std::string param; std::vector value; + std::vector sections; }; //----------------------------------------------------------------------------- struct MODULE_SETTINGS { + 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()); }