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

Function AddValidationAction

gcore/gdalalgorithm_cpp.h:3126–3129  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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,

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected