GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Public Member Functions | |
curl_transfer (void) | |
curl_transfer (const std::string &host, const std::string &user_arg, const std::string &passwd, std::ostream &os) | |
curl_transfer (const std::string &url_str, std::ostream &os) | |
~curl_transfer (void) | |
void | ascii (void) |
void | binary (void) |
void | cwd (const std::string &path) |
void | del (const std::string &file) |
void | dir (void) |
void | get (const std::string &file, std::ostream &os) |
void | get_fileinfo (const std::string &filename, double &filesize, time_t &filetime, bool &fileisdir) |
bool | good (void) const |
void | http_action (const Array< std::string > ¶m, const std::string &action) |
void | http_get (const Array< std::string > ¶m) |
void | http_post (const Array< std::string > ¶m) |
bool | is_ascii (void) const |
bool | is_binary (void) const |
bool | is_valid (void) const |
std::string | lasterror (void) const |
string_vector | list (void) |
void | mget_directory (const std::string &directory, const std::string &target) |
void | mkdir (const std::string &path) |
string_vector | mput_directory (const std::string &base, const std::string &directory) |
void | perform (void) |
void | put (const std::string &file, std::istream &is) |
std::string | pwd (void) |
void | rename (const std::string &oldname, const std::string &newname) |
void | rmdir (const std::string &path) |
std::istream & | set_istream (std::istream &is) |
std::ostream & | set_ostream (std::ostream &os) |
Protected Attributes | |
bool | ascii_mode |
octave_refcount< size_t > | count |
std::istream * | curr_istream |
std::ostream * | curr_ostream |
std::string | errmsg |
bool | ftp |
std::string | host_or_url |
bool | ok |
bool | valid |
Private Member Functions | |
curl_transfer (const curl_transfer &) | |
std::string | form_query_string (const Array< std::string > ¶m) |
void | ftp_file_or_dir_action (const std::string &file_or_dir, const std::string &action) |
void | init (const std::string &user, const std::string &passwd, std::istream &is, std::ostream &os) |
curl_transfer & | operator= (const curl_transfer &) |
Private Attributes | |
CURL * | curl |
CURLcode | errnum |
std::string | url |
std::string | userpwd |
Definition at line 274 of file url-transfer.cc.
|
inline |
Definition at line 278 of file url-transfer.cc.
References curl, base_url_transfer::errmsg, and base_url_transfer::valid.
|
inline |
Definition at line 288 of file url-transfer.cc.
References curl, base_url_transfer::errmsg, init(), perform(), SETOPT, url, and base_url_transfer::valid.
|
inline |
Definition at line 310 of file url-transfer.cc.
References curl, base_url_transfer::errmsg, init(), SETOPT, and base_url_transfer::valid.
|
inline |
Definition at line 333 of file url-transfer.cc.
References curl.
|
private |
Reimplemented from base_url_transfer.
Definition at line 375 of file url-transfer.cc.
References base_url_transfer::ascii_mode, and SETOPT.
Reimplemented from base_url_transfer.
Definition at line 381 of file url-transfer.cc.
References base_url_transfer::ascii_mode, and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 387 of file url-transfer.cc.
References ftp_file_or_dir_action().
Referenced by get_fileinfo().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 392 of file url-transfer.cc.
References ftp_file_or_dir_action().
Referenced by ddajac(), dmatd(), ignpoi(), sstode(), and stode().
Reimplemented from base_url_transfer.
Definition at line 463 of file url-transfer.cc.
References base_url_transfer::good(), base_url_transfer::host_or_url, perform(), SETOPT, and url.
|
inlineprivate |
Definition at line 715 of file url-transfer.cc.
References curl, and Array< T >::numel().
Referenced by http_get(), and http_post().
|
inlineprivate |
Definition at line 744 of file url-transfer.cc.
References action_container::add_fcn(), base_url_transfer::good(), perform(), and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 446 of file url-transfer.cc.
References base_url_transfer::good(), base_url_transfer::host_or_url, perform(), set_ostream(), SETOPT, and url.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 526 of file url-transfer.cc.
References curl, cwd(), base_url_transfer::good(), base_url_transfer::host_or_url, perform(), pwd(), SETOPT, throw_away(), url, and write_data().
Definition at line 74 of file url-transfer.h.
Referenced by dir(), ftp_file_or_dir_action(), get(), get_fileinfo(), url_transfer::good(), list(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), put(), pwd(), and rename().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 632 of file url-transfer.cc.
References base_url_transfer::errmsg, http_get(), http_post(), and base_url_transfer::ok.
Reimplemented from base_url_transfer.
Definition at line 607 of file url-transfer.cc.
References form_query_string(), base_url_transfer::host_or_url, perform(), SETOPT, and url.
Referenced by http_action().
Reimplemented from base_url_transfer.
Definition at line 621 of file url-transfer.cc.
References form_query_string(), base_url_transfer::host_or_url, perform(), and SETOPT.
Referenced by http_action().
|
inlineprivate |
Definition at line 675 of file url-transfer.cc.
References read_data(), SETOPT, userpwd, and write_data().
Referenced by curl_transfer().
Definition at line 94 of file url-transfer.h.
Referenced by url_transfer::is_ascii().
Definition at line 96 of file url-transfer.h.
Referenced by url_transfer::is_binary().
Definition at line 72 of file url-transfer.h.
Referenced by url_transfer::is_valid().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 354 of file url-transfer.cc.
References errnum.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 478 of file url-transfer.cc.
References base_url_transfer::curr_ostream, base_url_transfer::good(), base_url_transfer::host_or_url, perform(), string_vector::resize(), SETOPTR, and url.
|
inherited |
Definition at line 55 of file url-transfer.cc.
References action_container::add_fcn(), base_url_transfer::binary(), base_url_transfer::cwd(), base_url_transfer::delete_file(), file_ops::dir_sep_str(), action_container::discard(), base_url_transfer::errmsg, base_url_transfer::get_fileinfo(), base_url_transfer::good(), base_file_stat::is_dir(), Array< T >::length(), base_url_transfer::list(), octave_mkdir(), base_url_transfer::ok, and base_url_transfer::reset_path().
Referenced by url_transfer::mget_directory().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 402 of file url-transfer.cc.
References ftp_file_or_dir_action().
|
inherited |
Definition at line 128 of file url-transfer.cc.
References action_container::add_fcn(), string_vector::append(), base_url_transfer::binary(), base_url_transfer::cwd(), file_ops::dir_sep_str(), base_url_transfer::errmsg, base_file_stat::exists(), base_url_transfer::good(), base_file_stat::is_dir(), Array< T >::length(), base_url_transfer::mkdir(), base_url_transfer::ok, base_url_transfer::put(), dir_entry::read(), and base_url_transfer::reset_path().
Referenced by url_transfer::mput_directory().
|
private |
Reimplemented from base_url_transfer.
Definition at line 339 of file url-transfer.cc.
References BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, curl, END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, base_url_transfer::errmsg, errnum, and base_url_transfer::ok.
Referenced by curl_transfer(), dir(), ftp_file_or_dir_action(), get(), get_fileinfo(), http_get(), http_post(), list(), put(), pwd(), and rename().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 427 of file url-transfer.cc.
References base_url_transfer::good(), base_url_transfer::host_or_url, perform(), set_istream(), SETOPT, and url.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 573 of file url-transfer.cc.
References action_container::add_fcn(), base_url_transfer::good(), perform(), SETOPTR, and write_data().
Referenced by get_fileinfo().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 407 of file url-transfer.cc.
References action_container::add_fcn(), base_url_transfer::good(), perform(), and SETOPT.
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 397 of file url-transfer.cc.
References ftp_file_or_dir_action().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 367 of file url-transfer.cc.
References base_url_transfer::curr_istream, and SETOPTR.
Referenced by put().
|
inlinevirtual |
Reimplemented from base_url_transfer.
Definition at line 359 of file url-transfer.cc.
References base_url_transfer::curr_ostream, and SETOPTR.
Referenced by get().
|
protectedinherited |
Definition at line 148 of file url-transfer.h.
|
protectedinherited |
Definition at line 142 of file url-transfer.h.
Referenced by url_transfer::operator=(), url_transfer::url_transfer(), and url_transfer::~url_transfer().
|
private |
Definition at line 648 of file url-transfer.cc.
Referenced by curl_transfer(), form_query_string(), get_fileinfo(), perform(), and ~curl_transfer().
|
protectedinherited |
Definition at line 151 of file url-transfer.h.
Referenced by set_istream().
|
protectedinherited |
Definition at line 152 of file url-transfer.h.
Referenced by list(), and set_ostream().
|
protectedinherited |
Definition at line 150 of file url-transfer.h.
Referenced by curl_transfer(), http_action(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), and perform().
|
private |
Definition at line 651 of file url-transfer.cc.
Referenced by lasterror(), and perform().
|
protectedinherited |
Definition at line 147 of file url-transfer.h.
|
protectedinherited |
Definition at line 145 of file url-transfer.h.
Referenced by dir(), get(), get_fileinfo(), http_get(), http_post(), list(), and put().
|
protectedinherited |
Definition at line 149 of file url-transfer.h.
Referenced by http_action(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), and perform().
|
private |
Definition at line 666 of file url-transfer.cc.
Referenced by curl_transfer(), dir(), get(), get_fileinfo(), http_get(), list(), and put().
|
private |
Definition at line 667 of file url-transfer.cc.
Referenced by init().
|
protectedinherited |
Definition at line 146 of file url-transfer.h.
Referenced by curl_transfer().