From 601eb639c1b18bf79e811da1fc5b6a01f651ced5 Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Thu, 13 Oct 2011 11:23:16 +0200 Subject: [PATCH] ENH: add missing method --- Code/ApplicationEngine/otbWrapperParameterGroup.h | 6 ++++++ Code/ApplicationEngine/otbWrapperRadiusParameter.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/Code/ApplicationEngine/otbWrapperParameterGroup.h b/Code/ApplicationEngine/otbWrapperParameterGroup.h index d4a52ec38f..4c9c30d7c2 100644 --- a/Code/ApplicationEngine/otbWrapperParameterGroup.h +++ b/Code/ApplicationEngine/otbWrapperParameterGroup.h @@ -67,6 +67,12 @@ public: std::vector<std::string> GetParametersKeys(bool recursive = true); + // Always has value + bool HasValue() const + { + return true; + } + protected: ParameterGroup(); virtual ~ParameterGroup(); diff --git a/Code/ApplicationEngine/otbWrapperRadiusParameter.h b/Code/ApplicationEngine/otbWrapperRadiusParameter.h index b3f0b852fb..7d9585f892 100644 --- a/Code/ApplicationEngine/otbWrapperRadiusParameter.h +++ b/Code/ApplicationEngine/otbWrapperRadiusParameter.h @@ -44,6 +44,11 @@ public: /** RTTI support */ itkTypeMacro(RadiusParameter, Parameter); + bool HasValue() const + { + return true; + } + protected: /** Constructor */ RadiusParameter() -- GitLab