#include <ossimCurlStreamFactory.h>
Definition at line 20 of file ossimCurlStreamFactory.h.
◆ ~CurlStreamFactory()
ossim::CurlStreamFactory::~CurlStreamFactory |
( |
| ) |
|
|
virtual |
◆ CurlStreamFactory() [1/2]
ossim::CurlStreamFactory::CurlStreamFactory |
( |
| ) |
|
|
protected |
◆ CurlStreamFactory() [2/2]
◆ createIOstream()
std::shared_ptr< ossim::iostream > ossim::CurlStreamFactory::createIOstream |
( |
const std::string & |
connectionString, |
|
|
const ossimKeywordlist & |
options, |
|
|
std::ios_base::openmode |
openMode |
|
) |
| const |
|
virtual |
◆ createIstream()
std::shared_ptr< ossim::istream > ossim::CurlStreamFactory::createIstream |
( |
const std::string & |
connectionString, |
|
|
const ossimKeywordlist & |
options, |
|
|
std::ios_base::openmode |
openMode |
|
) |
| const |
|
virtual |
Implements ossim::StreamFactoryBase.
Definition at line 34 of file ossimCurlStreamFactory.cpp.
40 std::shared_ptr<ossim::CurlIStream> result = std::make_shared<ossim::CurlIStream>();
51 f.convertBackToForwardSlashes();
52 result->open( f.
string(), openMode) ;
54 result->open( connectionString, openMode );
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
const std::string & string() const
◆ createOstream()
std::shared_ptr< ossim::ostream > ossim::CurlStreamFactory::createOstream |
( |
const std::string & |
connectionString, |
|
|
const ossimKeywordlist & |
options, |
|
|
std::ios_base::openmode |
openMode |
|
) |
| const |
|
virtual |
◆ exists()
bool ossim::CurlStreamFactory::exists |
( |
const std::string & |
connectionString, |
|
|
bool & |
continueFlag |
|
) |
| const |
|
virtual |
Methods to test if connection exists.
- Parameters
-
connectionString | |
continueFlag | Initializes by this, if set to false, indicates factory handles file/url and no more factory checks are necessary. If true, connection is not handled by this factory. |
- Returns
- true on success, false, if not.
Implements ossim::StreamFactoryBase.
Definition at line 85 of file ossimCurlStreamFactory.cpp.
References ossimUrl::getProtocol(), and ossimHttpRequest::set().
89 if ( connectionString.size() )
93 if( (url.getProtocol() ==
"http") || (url.getProtocol() ==
"https") )
100 curlHttpRequest.
set(url, header);
ossimCurlHttpRequest m_curlHttpRequest
Represents serializable keyword/value map.
ossim_int64 getContentLength() const
bool set(const ossimUrl &url, const ossimKeywordlist &headerOptions, HttpMethodType methodType=HTTP_METHOD_GET)
◆ instance()
◆ m_curlHttpRequest
◆ m_instance
The documentation for this class was generated from the following files: