diff --git a/Code/ApplicationEngine/otbWrapperOutputImageParameter.h b/Code/ApplicationEngine/otbWrapperOutputImageParameter.h index 4d8550dafff035358ca88a61b889b2276e28ee0e..93e0f0bd13293d0f2b540f27a845d3ec935c8b63 100644 --- a/Code/ApplicationEngine/otbWrapperOutputImageParameter.h +++ b/Code/ApplicationEngine/otbWrapperOutputImageParameter.h @@ -64,7 +64,16 @@ public: /** Return true if a filename is set */ bool HasValue() const; - itkSetStringMacro(FileName); + void SetFileName (const char* filename) + { + m_FileName = filename; + SetActive(true); + } + void SetFileName (const std::string& filename) + { + this->SetFileName(filename.c_str()); + } + itkGetStringMacro(FileName); void Write();