OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
otb::CurlHelperInterface Class Referenceabstract

#include <otbCurlHelperInterface.h>

+ Inheritance diagram for otb::CurlHelperInterface:
+ Collaboration diagram for otb::CurlHelperInterface:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef CurlHelperInterface Self
 
typedef itk::Object Superclass
 

Public Member Functions

virtual const char * GetNameOfClass () const
 
virtual int RetrieveFile (const std::ostringstream &urlStream, std::string filename) const =0
 
virtual int RetrieveFile (const std::string &urlString, std::string filename) const =0
 
virtual int RetrieveFileMulti (const std::vector< std::string > &listURLs, const std::vector< std::string > &listFiles, int maxConnect) const =0
 
virtual int RetrieveUrlInMemory (const std::string &urlString, std::string &output) const =0
 
virtual bool TestUrlAvailability (const std::string &url) const =0
 

Static Public Member Functions

static bool IsCurlAvailable ()
 
static bool IsCurlMultiAvailable ()
 

Protected Member Functions

 CurlHelperInterface ()
 
 ~CurlHelperInterface () override
 

Private Member Functions

 CurlHelperInterface (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

Class to use the curl capabilities from OTB.

This class implement the interface of the curl access allowing for different implementation to be used (include stubs for test).

Definition at line 41 of file otbCurlHelperInterface.h.

Member Typedef Documentation

◆ ConstPointer

typedef itk::SmartPointer<const Self> otb::CurlHelperInterface::ConstPointer

Definition at line 48 of file otbCurlHelperInterface.h.

◆ Pointer

typedef itk::SmartPointer<Self> otb::CurlHelperInterface::Pointer

Definition at line 47 of file otbCurlHelperInterface.h.

◆ Self

Standard class typedefs.

Definition at line 46 of file otbCurlHelperInterface.h.

◆ Superclass

Definition at line 49 of file otbCurlHelperInterface.h.

Constructor & Destructor Documentation

◆ CurlHelperInterface() [1/2]

otb::CurlHelperInterface::CurlHelperInterface ( )
inlineprotected

Definition at line 67 of file otbCurlHelperInterface.h.

◆ ~CurlHelperInterface()

otb::CurlHelperInterface::~CurlHelperInterface ( )
inlineoverrideprotected

Definition at line 70 of file otbCurlHelperInterface.h.

◆ CurlHelperInterface() [2/2]

otb::CurlHelperInterface::CurlHelperInterface ( const Self )
privatedelete

Member Function Documentation

◆ GetNameOfClass()

virtual const char* otb::CurlHelperInterface::GetNameOfClass ( ) const
virtual

Reimplemented in otb::CurlHelper, and otb::CurlHelperStub.

◆ IsCurlAvailable()

static bool otb::CurlHelperInterface::IsCurlAvailable ( )
static

◆ IsCurlMultiAvailable()

static bool otb::CurlHelperInterface::IsCurlMultiAvailable ( )
static

◆ operator=()

void otb::CurlHelperInterface::operator= ( const Self )
privatedelete

◆ RetrieveFile() [1/2]

virtual int otb::CurlHelperInterface::RetrieveFile ( const std::ostringstream &  urlStream,
std::string  filename 
) const
pure virtual

Implemented in otb::CurlHelper, and otb::CurlHelperStub.

◆ RetrieveFile() [2/2]

virtual int otb::CurlHelperInterface::RetrieveFile ( const std::string &  urlString,
std::string  filename 
) const
pure virtual

Implemented in otb::CurlHelper, and otb::CurlHelperStub.

◆ RetrieveFileMulti()

virtual int otb::CurlHelperInterface::RetrieveFileMulti ( const std::vector< std::string > &  listURLs,
const std::vector< std::string > &  listFiles,
int  maxConnect 
) const
pure virtual

Implemented in otb::CurlHelper, and otb::CurlHelperStub.

◆ RetrieveUrlInMemory()

virtual int otb::CurlHelperInterface::RetrieveUrlInMemory ( const std::string &  urlString,
std::string &  output 
) const
pure virtual

Implemented in otb::CurlHelper, and otb::CurlHelperStub.

◆ TestUrlAvailability()

virtual bool otb::CurlHelperInterface::TestUrlAvailability ( const std::string &  url) const
pure virtual

Implemented in otb::CurlHelper, and otb::CurlHelperStub.


The documentation for this class was generated from the following file: