| 497 | } |
| 498 | |
| 499 | bool GDALAlgorithmArg::SetDatasetName(const std::string &name) |
| 500 | { |
| 501 | if (m_decl.GetType() != GAAT_DATASET) |
| 502 | { |
| 503 | CPLError(CE_Failure, CPLE_AppDefined, |
| 504 | "Calling SetDatasetName() on argument '%s' of type %s is " |
| 505 | "not supported", |
| 506 | GetName().c_str(), GDALAlgorithmArgTypeName(m_decl.GetType())); |
| 507 | return false; |
| 508 | } |
| 509 | m_explicitlySet = true; |
| 510 | std::get<GDALArgDatasetValue *>(m_value)->Set(name); |
| 511 | return RunAllActions(); |
| 512 | } |
| 513 | |
| 514 | bool GDALAlgorithmArg::SetFrom(const GDALArgDatasetValue &other) |
| 515 | { |