21 #ifndef otbCurlHelperInterface_h
22 #define otbCurlHelperInterface_h
25 #include "itkObject.h"
26 #include "itkObjectFactory.h"
27 #include "OTBCurlAdaptersExport.h"
55 virtual int RetrieveFile(
const std::ostringstream& urlStream, std::string filename)
const = 0;
57 virtual int RetrieveFile(
const std::string& urlString, std::string filename)
const = 0;
61 virtual int RetrieveFileMulti(
const std::vector<std::string>& listURLs,
const std::vector<std::string>& listFiles,
int maxConnect)
const = 0;
Class to use the curl capabilities from OTB.
CurlHelperInterface(const Self &)=delete
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
virtual int RetrieveFile(const std::ostringstream &urlStream, std::string filename) const =0
static bool IsCurlAvailable()
virtual int RetrieveFile(const std::string &urlString, std::string filename) const =0
virtual bool TestUrlAvailability(const std::string &url) const =0
static bool IsCurlMultiAvailable()
~CurlHelperInterface() override
virtual int RetrieveUrlInMemory(const std::string &urlString, std::string &output) const =0
virtual int RetrieveFileMulti(const std::vector< std::string > &listURLs, const std::vector< std::string > &listFiles, int maxConnect) const =0
void operator=(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.