diff --git a/Code/ApplicationEngine/otbWrapperApplication.cxx b/Code/ApplicationEngine/otbWrapperApplication.cxx index a911541ecdc978066f8616bbeec3c0459feb5ec6..1e451b9c3fffe0cecb5d6a921e8a3cbc59d829d8 100644 --- a/Code/ApplicationEngine/otbWrapperApplication.cxx +++ b/Code/ApplicationEngine/otbWrapperApplication.cxx @@ -156,6 +156,16 @@ bool Application::IsMandatory(std::string paramKey) const return GetParameterByKey(paramKey)->GetMandatory(); } +void Application::MandatoryOn(std::string paramKey) +{ + GetParameterByKey(paramKey)->SetMandatory(true); +} + +void Application::MandatoryOff(std::string paramKey) +{ + GetParameterByKey(paramKey)->SetMandatory(false); +} + /* Returns true if the parameter has an associated value provided externally * (not automatically computed by the application) */ bool Application::HasUserValue(std::string paramKey) const