Skip to content
Snippets Groups Projects
Commit 91b5a64d authored by Julien Malik's avatar Julien Malik
Browse files

ENH: implement Application::MandatoryOn && MandatoryOff

parent bbbdcc4a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment