#include "url-transfer.h"
Inherited by octave::curl_transfer.
|
| base_url_transfer () |
|
| base_url_transfer (const std::string &host, const std::string &, const std::string &, std::ostream &os) |
|
| base_url_transfer (const std::string &url, std::ostream &os) |
|
virtual | ~base_url_transfer ()=default |
|
virtual void | ascii () |
|
virtual void | binary () |
|
virtual void | cookie_jar (const std::string &) |
|
virtual void | cwd (const std::string &) |
|
virtual void | del (const std::string &) |
|
virtual void | dir () |
|
virtual void | form_data_post (const Array< std::string > &) |
|
virtual void | get (const std::string &, std::ostream &) |
|
virtual void | get_fileinfo (const std::string &, double &, OCTAVE_TIME_T &, bool &) |
|
bool | good () const |
|
virtual void | http_action (const Array< std::string > &, const std::string &) |
|
virtual void | http_get (const Array< std::string > &) |
|
virtual void | http_post (const Array< std::string > &) |
|
bool | is_ascii () const |
|
bool | is_binary () const |
|
bool | is_valid () const |
|
virtual std::string | lasterror () const |
|
virtual string_vector | list () |
|
void | mget_directory (const std::string &directory, const std::string &target) |
|
virtual void | mkdir (const std::string &) |
|
string_vector | mput_directory (const std::string &base, const std::string &directory) |
|
virtual void | perform () |
|
virtual void | put (const std::string &, std::istream &) |
|
virtual std::string | pwd () |
|
virtual void | rename (const std::string &, const std::string &) |
|
virtual void | rmdir (const std::string &) |
|
virtual void | set_header_fields (const Array< std::string > &) |
|
virtual std::istream & | set_istream (std::istream &) |
|
virtual std::ostream & | set_ostream (std::ostream &) |
|
virtual void | set_weboptions (const struct weboptions &) |
|
Definition at line 54 of file url-transfer.h.
◆ base_url_transfer() [1/3]
base_url_transfer::base_url_transfer |
( |
| ) |
|
◆ base_url_transfer() [2/3]
base_url_transfer::base_url_transfer |
( |
const std::string & |
host, |
|
|
const std::string & |
, |
|
|
const std::string & |
, |
|
|
std::ostream & |
os |
|
) |
| |
◆ base_url_transfer() [3/3]
base_url_transfer::base_url_transfer |
( |
const std::string & |
url, |
|
|
std::ostream & |
os |
|
) |
| |
◆ ~base_url_transfer()
virtual base_url_transfer::~base_url_transfer |
( |
| ) |
|
|
virtualdefault |
◆ ascii()
virtual void base_url_transfer::ascii |
( |
| ) |
|
|
inlinevirtual |
◆ binary()
virtual void base_url_transfer::binary |
( |
| ) |
|
|
inlinevirtual |
◆ cookie_jar()
virtual void base_url_transfer::cookie_jar |
( |
const std::string & |
| ) |
|
|
inlinevirtual |
◆ cwd()
virtual void base_url_transfer::cwd |
( |
const std::string & |
| ) |
|
|
inlinevirtual |
◆ del()
virtual void base_url_transfer::del |
( |
const std::string & |
| ) |
|
|
inlinevirtual |
◆ dir()
virtual void base_url_transfer::dir |
( |
| ) |
|
|
inlinevirtual |
◆ form_data_post()
virtual void base_url_transfer::form_data_post |
( |
const Array< std::string > & |
| ) |
|
|
inlinevirtual |
◆ get()
virtual void base_url_transfer::get |
( |
const std::string & |
, |
|
|
std::ostream & |
|
|
) |
| |
|
inlinevirtual |
◆ get_fileinfo()
virtual void base_url_transfer::get_fileinfo |
( |
const std::string & |
, |
|
|
double & |
, |
|
|
OCTAVE_TIME_T & |
, |
|
|
bool & |
|
|
) |
| |
|
inlinevirtual |
◆ good()
bool base_url_transfer::good |
( |
| ) |
const |
|
inline |
◆ http_action()
virtual void base_url_transfer::http_action |
( |
const Array< std::string > & |
, |
|
|
const std::string & |
|
|
) |
| |
|
inlinevirtual |
◆ http_get()
virtual void base_url_transfer::http_get |
( |
const Array< std::string > & |
| ) |
|
|
inlinevirtual |
◆ http_post()
virtual void base_url_transfer::http_post |
( |
const Array< std::string > & |
| ) |
|
|
inlinevirtual |
◆ is_ascii()
bool base_url_transfer::is_ascii |
( |
| ) |
const |
|
inline |
◆ is_binary()
bool base_url_transfer::is_binary |
( |
| ) |
const |
|
inline |
◆ is_valid()
bool base_url_transfer::is_valid |
( |
| ) |
const |
|
inline |
◆ lasterror()
virtual std::string base_url_transfer::lasterror |
( |
| ) |
const |
|
inlinevirtual |
◆ list()
◆ mget_directory()
void base_url_transfer::mget_directory |
( |
const std::string & |
directory, |
|
|
const std::string & |
target |
|
) |
| |
Definition at line 74 of file url-transfer.cc.
References cwd(), dir_exists(), dir_sep_str(), unwind_action_safe::discard(), get(), get_fileinfo(), good(), list(), m_errmsg, m_ok, octave::sys::mkdir(), string_vector::numel(), ofstream(), and octave::sys::unlink().
◆ mkdir()
virtual void base_url_transfer::mkdir |
( |
const std::string & |
| ) |
|
|
inlinevirtual |
◆ mput_directory()
string_vector base_url_transfer::mput_directory |
( |
const std::string & |
base, |
|
|
const std::string & |
directory |
|
) |
| |
Definition at line 143 of file url-transfer.cc.
References string_vector::append(), cwd(), dir_exists(), dir_sep_str(), file_exists(), get_dirlist(), good(), ifstream(), m_errmsg, m_ok, mkdir(), string_vector::numel(), and put().
◆ perform()
virtual void base_url_transfer::perform |
( |
| ) |
|
|
inlinevirtual |
◆ put()
virtual void base_url_transfer::put |
( |
const std::string & |
, |
|
|
std::istream & |
|
|
) |
| |
|
inlinevirtual |
◆ pwd()
virtual std::string base_url_transfer::pwd |
( |
| ) |
|
|
inlinevirtual |
◆ rename()
virtual void base_url_transfer::rename |
( |
const std::string & |
, |
|
|
const std::string & |
|
|
) |
| |
|
inlinevirtual |
◆ rmdir()
virtual void base_url_transfer::rmdir |
( |
const std::string & |
| ) |
|
|
inlinevirtual |
◆ set_header_fields()
virtual void base_url_transfer::set_header_fields |
( |
const Array< std::string > & |
| ) |
|
|
inlinevirtual |
◆ set_istream()
virtual std::istream& base_url_transfer::set_istream |
( |
std::istream & |
| ) |
|
|
inlinevirtual |
◆ set_ostream()
virtual std::ostream& base_url_transfer::set_ostream |
( |
std::ostream & |
| ) |
|
|
inlinevirtual |
◆ set_weboptions()
virtual void base_url_transfer::set_weboptions |
( |
const struct weboptions & |
| ) |
|
|
inlinevirtual |
◆ url_transfer
◆ m_ascii_mode
bool base_url_transfer::m_ascii_mode |
|
protected |
◆ m_curr_istream
std::istream* base_url_transfer::m_curr_istream |
|
protected |
◆ m_curr_ostream
std::ostream* base_url_transfer::m_curr_ostream |
|
protected |
◆ m_errmsg
std::string base_url_transfer::m_errmsg |
|
protected |
◆ m_ftp
bool base_url_transfer::m_ftp |
|
protected |
◆ m_host_or_url
std::string base_url_transfer::m_host_or_url |
|
protected |
◆ m_ok
bool base_url_transfer::m_ok |
|
protected |
◆ m_valid
bool base_url_transfer::m_valid |
|
protected |
The documentation for this class was generated from the following files: