20 #include "filteredconfigstore.h" 24 FilteredConfigStore::FilteredConfigStore(std::unique_ptr<ServiceManifestLoader> loader):
25 BaseConfigStore(std::move(loader))
31 std::vector<std::string> ids;
32 for (
auto &it : m_capMap) {
33 ids.push_back(it.first);
42 for (
auto &
id : capIDs) {
43 conf.append(configByID(
id));
51 if (m_capMap.count(capID) == 0) {
52 log_warning() <<
"Couldn't find " << capID <<
" in ConfigStore";
53 log_debug() <<
"ConfigStore contains " 54 << std::to_string(m_capMap.size()) <<
" element(s)";
58 return m_capMap.at(capID);
const std::vector< std::string > IDs() const
Returns all capability IDs.
GatewayConfiguration configByID(const std::string &capID) const
Returns all Gateway configurations for a certain Capability.
GatewayConfiguration configsByID(const std::vector< std::string > &capIDs) const
Returns all Gateway configurations for certain Capabilities.
Developers guide to adding a config item: