20 #include "filegatewaysettingstore.h" 24 FileGatewaySettingStore::FileGatewaySettingStore()
29 FileGatewaySettingStore::~FileGatewaySettingStore()
33 bool FileGatewaySettingStore::addSetting(
const FileGatewayParser::FileSetting &setting)
35 auto it = std::find(m_settings.begin(), m_settings.end(), setting);
36 if (it != m_settings.end()) {
37 if (it->pathInHost != setting.pathInHost) {
38 log_error() <<
"Specifying two files with destination path " 39 << setting.pathInContainer <<
" but different host paths, " 40 <<
"this is an error";
43 it->readOnly &= setting.readOnly;
48 m_settings.push_back(setting);
52 const std::vector<FileGatewayParser::FileSetting> &FileGatewaySettingStore::getSettings()
Developers guide to adding a config item: