28 #ifndef CPL_SWIFT_INCLUDED_H
29 #define CPL_SWIFT_INCLUDED_H
35 #include <curl/curl.h>
40 class VSISwiftHandleHelper final:
public IVSIS3LikeHandleHelper
48 static bool GetConfiguration(
CPLString& osStorageURL,
55 void RebuildURL()
override;
58 VSISwiftHandleHelper(
const CPLString& osStorageURL,
62 ~VSISwiftHandleHelper();
64 static VSISwiftHandleHelper* BuildFromURI(
const char* pszURI,
65 const char* pszFSPrefix);
67 struct curl_slist* GetCurlHeaders(
const CPLString& osVerbosVerb,
68 const struct curl_slist* psExistingHeaders,
69 const void *pabyDataContent =
nullptr,
70 size_t nBytesContent = 0)
const override;
72 const CPLString& GetURL()
const override {
return m_osURL; }
74 static void CleanMutex();
75 static void ClearCache();
double CPLStrtodDelim(const char *, char **, char)
Definition: cpl_strtod.cpp:231
CPLHTTPResult * CPLHTTPFetch(const char *pszURL, CSLConstList papszOptions)
Fetch a document from an url and return in a string.
Definition: cpl_http.cpp:648
void CPLHTTPDestroyResult(CPLHTTPResult *psResult)
Clean the memory associated with the return value of CPLHTTPFetch()
Definition: cpl_http.cpp:2080
const char * CSLFetchNameValueDef(CSLConstList papszStrList, const char *pszName, const char *pszDefault)
Definition: cpl_string.cpp:1646
char ** CSLSetNameValue(char **papszStrList, const char *pszName, const char *pszValue)
Definition: cpl_string.cpp:1877
Convenient string class based on std::string.
Definition: cpl_string.h:329
double CPLAtofM(const char *)
Definition: cpl_strtod.cpp:142
Definition: cpl_http.h:66
GByte * pabyData
Definition: cpl_http.h:82
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:602
#define STARTS_WITH(a, b)
Definition: cpl_port.h:578
char ** papszHeaders
Definition: cpl_http.h:85
const char * CPLSPrintf(const char *fmt,...)
Definition: cpl_string.cpp:977
float CPLStrtof(const char *, char **)
Definition: cpl_strtod.cpp:397
Definition: cpl_multiproc.h:139
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
char * CPLStrdup(const char *)
Definition: cpl_conv.cpp:293
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
float CPLStrtofDelim(const char *, char **, char)
Definition: cpl_strtod.cpp:347
double CPLAtofDelim(const char *, char)
Definition: cpl_strtod.cpp:73
#define CPLFree
Definition: cpl_conv.h:81
double CPLStrtod(const char *, char **)
Definition: cpl_strtod.cpp:321
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1692
#define STARTS_WITH_CI(a, b)
Definition: cpl_port.h:580
Generated for GDAL by
1.8.17.