| 200 | return ( config_[key].isArray() ); |
| 201 | } |
| 202 | FileNamesStack Config::getFileStack( const std::string& key, const FileNamesStack& defaultValue ) const |
| 203 | { |
| 204 | if ( config_[key].isArray() ) |
| 205 | { |
| 206 | auto& val = config_[key]; |
| 207 | FileNamesStack res; |
| 208 | for ( auto& v : val ) |
| 209 | { |
| 210 | res.push_back( pathFromUtf8( v.asString() ) ); |
| 211 | } |
| 212 | return res; |
| 213 | } |
| 214 | if ( loggerHandle_ ) |
| 215 | loggerHandle_->debug( "Key {} does not exist, default value returned", key ); |
| 216 | return defaultValue; |
| 217 | } |
| 218 | void Config::setFileStack( const std::string& key, const FileNamesStack& keyValue ) |
| 219 | { |
| 220 | for ( auto i = 0; i < keyValue.size(); i++ ) |
no test coverage detected