Commit b4baedbb authored by Victor Poughon's avatar Victor Poughon

ENH: depreciate const char* overloads

parent 84bae027
......@@ -71,8 +71,9 @@ public:
std::unordered_map< std::string , std::string > gdalOptions;
};
/** Set extended filename */
/** \deprecated const char* overload of SetExtendedFileName is deprecated, use std::string instead */
void SetExtendedFileName(const char* extFname) override;
void SetExtendedFileName(const std::string& extFname) override;
/** Get the GDAL option for type operation */
......
......@@ -55,8 +55,11 @@ public:
typedef std::map< std::string, std::string > OptionMapType;
/** \deprecated const char* overload of SetExtendedFileName is deprecated, use std::string instead */
virtual void SetExtendedFileName(const char * extFname);
virtual void SetExtendedFileName(const std::string& extFname);
const OptionMapType & GetOptionMap(void) const;
itkGetStringMacro(ExtendedFileName);
......
......@@ -79,8 +79,9 @@ public:
std::vector<std::string> optionList;
};
/* Set Methods */
/** \deprecated const char* overload of SetExtendedFileName is deprecated, use std::string instead */
void SetExtendedFileName(const char* extFname) override;
void SetExtendedFileName(const std::string& extFname) override;
/* Get Methods */
......
......@@ -83,9 +83,11 @@ public:
NoDataListType m_NoDataList;
bool has_noDataValue;
/* Set Methods */
/** \deprecated const char* overload of SetExtendedFileName is deprecated, use std::string instead */
void SetExtendedFileName(const char* extFname) override;
void SetExtendedFileName(const std::string& extFname) override;
/* Get Methods */
bool SimpleFileNameIsSet () const;
bool NoDataValueIsSet () const;
......
......@@ -140,8 +140,11 @@ public:
void SetImageIO( otb::ImageIOBase * imageIO );
itkGetObjectMacro(ImageIO,otb::ImageIOBase);
/** \deprecated const char* overload of SetFileName is deprecated, use std::string instead */
virtual void SetFileName(const char* extendedFileName);
virtual void SetFileName(const std::string& extendedFileName);
virtual const char* GetFileName () const;
/** Get the resolution information from the file */
......
......@@ -172,9 +172,11 @@ public:
* has no output. */
void Update() override;
/** ImageFileWriter Methods */
/** \deprecated const char* overload of SetFileName is deprecated, use std::string instead */
virtual void SetFileName(const char* extendedFileName);
virtual void SetFileName(const std::string& extendedFileName);
virtual const char* GetFileName () const;
/** Specify the region to write. If left NULL, then the whole image
......
......@@ -111,6 +111,13 @@ public:
* selection
*/
virtual void SetFileName(const std::string& file);
/**
* Set the file to be read. Once the Filename is set, ReadMeatFile is called in order to get
* the number of image files to be read, the images file names, the band and region
* selection
* \deprecated const char* overload of SetFileName is deprecated, use std::string instead
*/
virtual void SetFileName(const char * file);
/** get the Filenames */
......
......@@ -218,9 +218,11 @@ public:
/** Does the real work. */
virtual void Update() override;
/** SimpleParallelTiffWriter Methods */
/** \deprecated const char* overload of SetFileName is deprecated, use std::string instead */
virtual void SetFileName(const char* extendedFileName);
virtual void SetFileName(const std::string& extendedFileName);
virtual const char* GetFileName () const;
/** Specify the region to write. If left NULL, then the whole image
......
......@@ -80,9 +80,11 @@ public:
/** Does the real work. */
virtual void Update() override;
/** SimpleParallelTiffWriter Methods */
/** \deprecated const char* overload of SetFileName is deprecated, use std::string instead */
virtual void SetFileName(const char* extendedFileName);
virtual void SetFileName(const std::string& extendedFileName);
virtual const char* GetFileName () const;
/** Specify the region to write. If left NULL, then the whole image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment