X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/516232a1785d55ab711841639c71ca309f4ddf5f..bec5d17c77e9cfc8482ffca062b8f500859bfe34:/include/stg/module_settings.h?ds=inline

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<std::string>& vs)
+        : param(p),
+          value(vs)
+    {}
+    PARAM_VALUE(const std::string& p, const std::vector<std::string>& vs, const std::vector<PARAM_VALUE>& 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<std::string> value;
+    std::vector<PARAM_VALUE> sections;
 };
 //-----------------------------------------------------------------------------
 struct MODULE_SETTINGS
 {
+    MODULE_SETTINGS() {}
+    MODULE_SETTINGS(const std::string& name, const std::vector<PARAM_VALUE>& params)
+        : moduleName(name),
+          moduleParams(params)
+    {}
     bool operator==(const MODULE_SETTINGS & rhs) const
         { return !strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()); }