X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a6680ce3d763763a6010c81c8a5a8f7a1ce052db..06186a8866478b05d56179dc2c5a3c4b3fd3a8f4:/include/stg/module_settings.h 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()); }