21 #ifndef otbCurlHelperInterface_h
22 #define otbCurlHelperInterface_h
25 #include "itkObject.h"
26 #include "itkObjectFactory.h"
27 #include "OTBCurlAdaptersExport.h"
53 virtual bool TestUrlAvailability(
const std::string& url)
const = 0;
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;
59 virtual int RetrieveUrlInMemory(
const std::string& urlString, std::string& output)
const = 0;
61 virtual int RetrieveFileMulti(
const std::vector<std::string>& listURLs,
const std::vector<std::string>& listFiles,
int maxConnect)
const = 0;
63 static bool IsCurlAvailable();
64 static bool IsCurlMultiAvailable();
76 void operator=(
const Self&) =
delete;