MCPcopy Create free account
hub / github.com/OSGeo/gdal / Finalize

Method Finalize

gcore/gdalalgorithm.cpp:6307–6328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6305/************************************************************************/
6306
6307bool GDALAlgorithm::Finalize()
6308{
6309 bool ret = true;
6310 if (m_selectedSubAlg)
6311 ret = m_selectedSubAlg->Finalize();
6312
6313 for (auto &arg : m_args)
6314 {
6315 if (arg->GetType() == GAAT_DATASET)
6316 {
6317 ret = arg->Get<GDALArgDatasetValue>().Close() && ret;
6318 }
6319 else if (arg->GetType() == GAAT_DATASET_LIST)
6320 {
6321 for (auto &ds : arg->Get<std::vector<GDALArgDatasetValue>>())
6322 {
6323 ret = ds.Close() && ret;
6324 }
6325 }
6326 }
6327 return ret;
6328}
6329
6330/************************************************************************/
6331/* GDALAlgorithm::GetArgNamesForCLI() */

Calls 2

GetTypeMethod · 0.45
CloseMethod · 0.45