5 #include <cstring> // strcasecmp
10 //-----------------------------------------------------------------------------
13 ParamValue() = default;
14 ParamValue(const std::string& p, const std::vector<std::string>& vs) noexcept
18 ParamValue(const std::string& p, const std::vector<std::string>& vs, const std::vector<ParamValue>& ss) noexcept
24 ParamValue(const ParamValue&) = default;
25 ParamValue& operator=(const ParamValue&) = default;
26 ParamValue(ParamValue&&) = default;
27 ParamValue& operator=(ParamValue&&) = default;
29 bool operator==(const ParamValue & rhs) const noexcept
30 { return !strcasecmp(param.c_str(), rhs.param.c_str()); }
32 bool operator<(const ParamValue & rhs) const noexcept
33 { return strcasecmp(param.c_str(), rhs.param.c_str()) < 0; }
36 std::vector<std::string> value;
37 std::vector<ParamValue> sections;
39 //-----------------------------------------------------------------------------
42 ModuleSettings() = default;
43 ModuleSettings(const std::string& name, const std::vector<ParamValue>& params) noexcept
48 ModuleSettings(const ModuleSettings&) = default;
49 ModuleSettings& operator=(const ModuleSettings&) = default;
50 ModuleSettings(ModuleSettings&&) = default;
51 ModuleSettings& operator=(ModuleSettings&&) = default;
53 bool operator==(const ModuleSettings & rhs) const noexcept
54 { return !strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()); }
56 bool operator<(const ModuleSettings & rhs) const noexcept
57 { return strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()) < 0; }
59 std::string moduleName;
60 std::vector<ParamValue> moduleParams;
62 //-----------------------------------------------------------------------------