diff --git a/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h b/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h index 3d944f931ca7f268d8b0b07389f97bf5cf289af6..7c1337651ce98baa1acb667749916ba2f5b69864 100644 --- a/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h +++ b/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h @@ -167,7 +167,7 @@ public: /* Get the internal application parameter specified * * WARNING: this method may disappear from the API */ - const Parameter* GetParameterByKey(std::string parameter) const; + const Parameter* GetParameterByKey(std::string parameter, bool follow=true) const; /* Returns the description of a parameter */ std::string GetParameterName(std::string paramKey); diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx index 7a7b45bb34e6b7b329b8ce174bd916d9a2f24c4d..3a04bad27075d99caa0ff696b601b8f8512f6556 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx @@ -297,11 +297,11 @@ void Application::SetParameterUserValue(std::string paramKey, bool value) GetParameterByKey(paramKey)->SetUserValue(value); } -const Parameter* Application::GetParameterByKey(std::string name) const +const Parameter* Application::GetParameterByKey(std::string name, bool follow) const { // GetParameterList is non const... Application* _this = const_cast<Application*>(this); - return _this->GetParameterByKey(name); + return _this->GetParameterByKey(name,follow); } void Application::Init()