From 09c9138cad7bd4e25956a846a973570a1c4a860a Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Sun, 12 Jun 2011 09:33:22 +0200 Subject: [PATCH] COMP: remove usage of internal types --- Code/Core/otbWrapperApplication.cxx | 4 ++-- Code/Core/otbWrapperApplication.h | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Code/Core/otbWrapperApplication.cxx b/Code/Core/otbWrapperApplication.cxx index 969e06a4bc..26b7b1c392 100644 --- a/Code/Core/otbWrapperApplication.cxx +++ b/Code/Core/otbWrapperApplication.cxx @@ -296,7 +296,7 @@ void Application::SetParameterString(std::string parameter, std::string value) } -void Application::SetParameterOutputImage(std::string parameter, OutputImageParameter::VectorImageType* value) +void Application::SetParameterOutputImage(std::string parameter, VectorImageType* value) { Parameter* param = GetParameterByKey(parameter); @@ -307,7 +307,7 @@ void Application::SetParameterOutputImage(std::string parameter, OutputImagePara } } -void Application::SetParameterOutputVectorData(std::string parameter, OutputVectorDataParameter::VectorDataType* value) +void Application::SetParameterOutputVectorData(std::string parameter, VectorDataType* value) { Parameter* param = GetParameterByKey(parameter); diff --git a/Code/Core/otbWrapperApplication.h b/Code/Core/otbWrapperApplication.h index 1f10f67dc9..6917323991 100644 --- a/Code/Core/otbWrapperApplication.h +++ b/Code/Core/otbWrapperApplication.h @@ -80,6 +80,12 @@ public: * the I/O (intermediary results for example) */ void Execute(); + /** Run the application, then writes all the output to disk + * if they have an associated filename. + * This is a helper function for wrappers without pipeline support. + */ + void ExecuteAndWriteOutput(); + /* Get the internal application parameters * * WARNING: this method may disappear from the API */ -- GitLab