Register an action that is executed by the ValidateArguments() * method. If the provided function returns false, validation fails. * Such validation function should typically be used to ensure * cross-argument validation. For validation of individual arguments, * GDALAlgorithmArg::AddValidationAction should rather be called. */
| 3124 | * GDALAlgorithmArg::AddValidationAction should rather be called. |
| 3125 | */ |
| 3126 | void AddValidationAction(std::function<bool()> f) |
| 3127 | { |
| 3128 | m_validationActions.push_back(f); |
| 3129 | } |
| 3130 | |
| 3131 | /** Add KEY=VALUE suggestion from open, creation options */ |
| 3132 | static bool AddOptionsSuggestions(const char *pszXML, int datasetType, |
no test coverage detected