Set the value for a GAAT_DATASET argument. * * It cannot be called several times for a given argument. * Validation checks and other actions are run. * * @param hArg Handle to an argument. Must NOT be null. * @param value Handle to a GDALArgDatasetValue. Must NOT be null. * @return true if success. * @since 3.11 */
| 8973 | * @since 3.11 |
| 8974 | */ |
| 8975 | bool GDALAlgorithmArgSetAsDatasetValue(GDALAlgorithmArgH hArg, |
| 8976 | GDALArgDatasetValueH value) |
| 8977 | { |
| 8978 | VALIDATE_POINTER1(hArg, __func__, false); |
| 8979 | VALIDATE_POINTER1(value, __func__, false); |
| 8980 | return hArg->ptr->SetFrom(*(value->ptr)); |
| 8981 | } |
| 8982 | |
| 8983 | /************************************************************************/ |
| 8984 | /* GDALAlgorithmArgSetDataset() */ |