21 #include "softwarecontainer-common.h" 22 #include "commandlineconfigsource.h" 27 CommandlineConfigSource::CommandlineConfigSource(std::vector<StringConfig> &stringConfigs,
28 std::vector<IntConfig> &intConfigs,
29 std::vector<BoolConfig> &boolConfigs):
30 m_stringConfigs(stringConfigs),
31 m_intConfigs(intConfigs),
32 m_boolConfigs(boolConfigs)
34 for (
auto &config : m_stringConfigs) {
35 config.setSource(ConfigSourceType::Commandline);
38 for (
auto &config : m_intConfigs) {
39 config.setSource(ConfigSourceType::Commandline);
42 for (
auto &config : m_boolConfigs) {
43 config.setSource(ConfigSourceType::Commandline);
47 std::vector<StringConfig> CommandlineConfigSource::stringConfigs()
49 return m_stringConfigs;
52 std::vector<IntConfig> CommandlineConfigSource::intConfigs()
57 std::vector<BoolConfig> CommandlineConfigSource::boolConfigs()
Developers guide to adding a config item: