MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getFileStack

Method getFileStack

source/MRMesh/MRConfig.cpp:202–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 return ( config_[key].isArray() );
201}
202FileNamesStack 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}
218void Config::setFileStack( const std::string& key, const FileNamesStack& keyValue )
219{
220 for ( auto i = 0; i < keyValue.size(); i++ )

Callers 2

storeFileMethod · 0.80
getStoredFilesMethod · 0.80

Calls 2

pathFromUtf8Function · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected