#include "url-transfer.h"
Public Member Functions | |
base_url_transfer (const base_url_transfer &)=delete | |
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) | |
base_url_transfer (void) | |
virtual | ~base_url_transfer (void)=default |
virtual void | ascii (void) |
virtual void | binary (void) |
virtual void | cookie_jar (const std::string &) |
virtual void | cwd (const std::string &) |
virtual void | del (const std::string &) |
virtual void | dir (void) |
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 (void) 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 (void) const |
bool | is_binary (void) const |
bool | is_valid (void) const |
virtual std::string | lasterror (void) const |
virtual string_vector | list (void) |
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) |
base_url_transfer & | operator= (const base_url_transfer &)=delete |
virtual void | perform (void) |
virtual void | put (const std::string &, std::istream &) |
virtual std::string | pwd (void) |
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 &) |
Protected Attributes | |
bool | m_ascii_mode |
std::istream * | m_curr_istream |
std::ostream * | m_curr_ostream |
std::string | m_errmsg |
bool | m_ftp |
std::string | m_host_or_url |
bool | m_ok |
bool | m_valid |
Friends | |
class | url_transfer |
Definition at line 54 of file url-transfer.h.
base_url_transfer::base_url_transfer | ( | void | ) |
Definition at line 51 of file url-transfer.cc.
base_url_transfer::base_url_transfer | ( | const std::string & | host, |
const std::string & | , | ||
const std::string & | , | ||
std::ostream & | os | ||
) |
Definition at line 57 of file url-transfer.cc.
base_url_transfer::base_url_transfer | ( | const std::string & | url, |
std::ostream & | os | ||
) |
Definition at line 66 of file url-transfer.cc.
|
delete |
|
virtualdefault |
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 97 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 99 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 146 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 105 of file url-transfer.h.
Referenced by mget_directory(), and mput_directory().
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 107 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 128 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 150 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 119 of file url-transfer.h.
Referenced by mget_directory().
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 132 of file url-transfer.h.
Referenced by mget_directory().
|
inline |
Definition at line 81 of file url-transfer.h.
Referenced by curl_transfer::dir(), curl_transfer::ftp_file_or_dir_action(), curl_transfer::get(), curl_transfer::get_fileinfo(), curl_transfer::list(), mget_directory(), mput_directory(), curl_transfer::put(), curl_transfer::pwd(), and curl_transfer::rename().
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 143 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 139 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 141 of file url-transfer.h.
|
inline |
Definition at line 101 of file url-transfer.h.
|
inline |
Definition at line 103 of file url-transfer.h.
|
inline |
Definition at line 79 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 85 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 130 of file url-transfer.h.
Referenced by 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_sep_str(), unwind_action_safe::discard(), get(), get_fileinfo(), good(), list(), m_errmsg, m_ok, mkdir(), string_vector::numel(), ofstream(), and unlink().
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 111 of file url-transfer.h.
Referenced by mput_directory().
string_vector base_url_transfer::mput_directory | ( | const std::string & | base, |
const std::string & | directory | ||
) |
Definition at line 144 of file url-transfer.cc.
References string_vector::append(), cwd(), dir_sep_str(), get_dirlist(), good(), ifstream(), m_errmsg, m_ok, mkdir(), string_vector::numel(), and put().
|
delete |
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 83 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 116 of file url-transfer.h.
Referenced by mput_directory().
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 137 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 113 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 109 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 148 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 92 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 87 of file url-transfer.h.
|
inlinevirtual |
Reimplemented in curl_transfer.
Definition at line 152 of file url-transfer.h.
|
friend |
Definition at line 60 of file url-transfer.h.
|
protected |
Definition at line 160 of file url-transfer.h.
Referenced by curl_transfer::ascii(), and curl_transfer::binary().
|
protected |
Definition at line 163 of file url-transfer.h.
Referenced by curl_transfer::set_istream().
|
protected |
Definition at line 164 of file url-transfer.h.
Referenced by curl_transfer::list(), and curl_transfer::set_ostream().
|
protected |
Definition at line 162 of file url-transfer.h.
Referenced by curl_transfer::curl_transfer(), curl_transfer::http_action(), mget_directory(), mput_directory(), and curl_transfer::perform().
|
protected |
Definition at line 159 of file url-transfer.h.
|
protected |
Definition at line 157 of file url-transfer.h.
Referenced by curl_transfer::dir(), curl_transfer::form_data_post(), curl_transfer::get(), curl_transfer::get_fileinfo(), curl_transfer::http_action(), curl_transfer::list(), and curl_transfer::put().
|
protected |
Definition at line 161 of file url-transfer.h.
Referenced by curl_transfer::http_action(), mget_directory(), mput_directory(), and curl_transfer::perform().
|
protected |
Definition at line 158 of file url-transfer.h.
Referenced by curl_transfer::curl_transfer().