#include <string>
#include <fstream>
#include <iomanip>
#include <iostream>
#include "dir-ops.h"
#include "file-ops.h"
#include "file-stat.h"
#include "oct-env.h"
#include "oct-handle.h"
#include "glob-match.h"
#include "url-transfer.h"
#include "defun.h"
#include "error.h"
#include "interpreter.h"
#include "oct-map.h"
#include "oct-refcount.h"
#include "ov-cell.h"
#include "ovl.h"
#include "pager.h"
#include "unwind-prot.h"
#include "url-handle-manager.h"
Go to the source code of this file.
Variables | |
nd group nd example The full path of the downloaded file is returned in | ar {f}. The variable ar{success} is 1 if the download was successful |
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the and FILE protocols Username and password may be specified in the for | example |
std::string | filename = args(1).xstring_value ("urlwrite: LOCALFILE must be a string") |
octave::sys::file_stat | fs (filename) |
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the | FTP |
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the | HTTP |
std::string | method |
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among | others |
Array< std::string > | param |
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl | supports |
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the and FILE protocols Username and password may be specified in the | URL |
std::string | url = args(0).xstring_value ("urlwrite: URL must be a string") |
|
static |
Definition at line 56 of file urlwrite.cc.
References file, and octave::sys::unlink().
Referenced by F__ftp_mget__().
OCTAVE_EXPORT octave_value_list F__ftp__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 279 of file urlwrite.cc.
References octave::url_handle_manager::make_url_handle(), octave_stdout, ovl(), print_usage(), string, and octave_handle::value().
OCTAVE_EXPORT octave_value_list F__ftp_ascii__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 428 of file urlwrite.cc.
References octave::url_transfer::ascii(), error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), and ovl().
OCTAVE_EXPORT octave_value_list F__ftp_binary__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 449 of file urlwrite.cc.
References octave::url_transfer::binary(), error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), and ovl().
OCTAVE_EXPORT octave_value_list F__ftp_close__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 470 of file urlwrite.cc.
References error(), octave::url_handle_manager::free(), h, octave::url_handle_manager::lookup(), and ovl().
OCTAVE_EXPORT octave_value_list F__ftp_cwd__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 327 of file urlwrite.cc.
References octave::url_transfer::cwd(), error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), ovl(), and string.
OCTAVE_EXPORT octave_value_list F__ftp_delete__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 510 of file urlwrite.cc.
References octave::url_transfer::del(), error(), file, octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), ovl(), and string.
OCTAVE_EXPORT octave_value_list F__ftp_dir__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 354 of file urlwrite.cc.
References octave_map::assign(), octave::url_transfer::dir(), error(), octave::url_transfer::get_fileinfo(), octave::url_handle_manager::get_object(), i, octave::url_transfer::is_valid(), octave::url_transfer::list(), nargout(), Array< T >::numel(), and retval.
OCTAVE_EXPORT octave_value_list F__ftp_mget__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 668 of file urlwrite.cc.
References octave::action_container::add_fcn(), delete_file(), octave::sys::file_ops::dir_sep_str(), octave::action_container::discard(), error(), file, frame, octave::url_transfer::get(), octave::url_transfer::get_fileinfo(), octave::url_handle_manager::get_object(), octave::url_transfer::good(), i, octave::url_transfer::is_valid(), octave::url_transfer::lasterror(), octave::url_transfer::list(), octave::url_transfer::mget_directory(), Array< T >::numel(), ofile(), ovl(), pattern(), and string.
OCTAVE_EXPORT octave_value_list F__ftp_mkdir__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 556 of file urlwrite.cc.
References error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), octave::url_transfer::mkdir(), ovl(), and string.
OCTAVE_EXPORT octave_value_list F__ftp_mode__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 491 of file urlwrite.cc.
References error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_ascii(), octave::url_transfer::is_valid(), and ovl().
OCTAVE_EXPORT octave_value_list F__ftp_mput__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 603 of file urlwrite.cc.
References string_vector::append(), error(), octave::sys::base_file_stat::exists(), file, files, fs, octave::url_handle_manager::get_object(), octave::url_transfer::good(), i, octave::sys::base_file_stat::is_dir(), octave::url_transfer::is_valid(), octave::url_transfer::lasterror(), octave::url_transfer::mput_directory(), nargout(), ovl(), pattern(), octave::url_transfer::put(), string, and octave::sys::file_ops::tilde_expand().
OCTAVE_EXPORT octave_value_list F__ftp_pwd__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 308 of file urlwrite.cc.
References error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), ovl(), and octave::url_transfer::pwd().
OCTAVE_EXPORT octave_value_list F__ftp_rename__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 579 of file urlwrite.cc.
References error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), ovl(), octave::url_transfer::rename(), and string.
OCTAVE_EXPORT octave_value_list F__ftp_rmdir__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 533 of file urlwrite.cc.
References error(), octave::url_handle_manager::get_object(), octave::url_transfer::is_valid(), ovl(), octave::url_transfer::rmdir(), and string.
OCTAVE_EXPORT octave_value_list Furlwrite | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 110 of file urlwrite.cc.
if | ( | nargin | = = 4 | ) |
Definition at line 126 of file urlwrite.cc.
References error(), octave::stream_list::get_info(), method, nargout(), Array< T >::numel(), octave::stream_list::open_file_numbers(), ovl(), param, retval, streams, and tmp.
if | ( | ! ofile. | is_open() | ) |
Definition at line 147 of file urlwrite.cc.
std::ofstream ofile | ( | filename. | c_str(), |
std::ios::out|std::ios::binary | |||
) |
Referenced by F__ftp_mget__(), main(), and octave::base_url_transfer::mget_directory().
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case ar {f}. The variable ar{success} is 1 if the download was successful |
Definition at line 110 of file urlwrite.cc.
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the and FILE protocols Username and password may be specified in the for example |
Definition at line 110 of file urlwrite.cc.
std::string filename = args(1).xstring_value ("urlwrite: LOCALFILE must be a string") |
Definition at line 121 of file urlwrite.cc.
Referenced by cleanup_tmp_files(), F__octave_link_file_dialog__(), octave_link::file_dialog(), octave::FileDialog::FileDialog(), Gaudioread(), get_file_format(), octave::url_transfer::get_fileinfo(), octave::curl_transfer::get_fileinfo(), get_lines_and_columns(), octave::main_window::handle_create_filedialog(), octave::main_window::handle_edit_mfile_request(), initial_class_path(), kpse_absolute_p(), log_search(), looks_like_mat_ascii_file(), read_binary_data(), read_file(), octave::JVMArgs::read_java_opts(), read_mat5_binary_element(), read_mat5_binary_file_header(), read_mat_ascii_data(), read_mat_binary_data(), read_text_data(), octave::QUIWidgetCreator::signal_filedialog(), and tilde_expand_word().
Referenced by octave::load_path::add(), dir_p(), execute_pkg_add_or_del(), F__ftp_mput__(), octave::dynamic_library::dynlib_rep::fake_reload(), octave::load_path::find_all_first_of(), octave::load_path::find_dir(), octave::load_path::find_file(), find_file_to_load(), octave::load_path::find_first_of(), octave::load_path::find_matching_dirs(), find_private_file(), octave::genpath(), octave_user_code::get_file_info(), octave::load_path::dir_info::get_file_list(), octave::curl_transfer::get_fileinfo(), octave::load_path::dir_info::get_method_file_map(), have_gnuplot_binary(), octave::load_path::dir_info::initialize(), octave::sys::base_file_stat::is_newer(), octave::dynamic_library::dynlib_rep::is_out_of_date(), octave::base_url_transfer::mget_directory(), mk_stat_map(), mk_stat_result(), octave::base_url_transfer::mput_directory(), octave::sys::base_file_stat::operator=(), octave::sys::file_stat::operator=(), octave::sys::file_fstat::operator=(), octave::out_of_date_check(), read_classpath_txt(), read_mat5_binary_element(), READABLE(), octave::sys::recursive_rmdir(), axes::properties::set_defaults(), octave_fcn_handle::set_fcn(), octave::file_info::snarf_file(), symbol_exist(), octave::load_path::dir_info::update(), octave::file_editor_tab::update_lexer_settings(), octave::ft_text_renderer::visit(), and octave::xzip().
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the FTP |
Definition at line 110 of file urlwrite.cc.
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the HTTP |
Definition at line 110 of file urlwrite.cc.
std::string method |
Definition at line 123 of file urlwrite.cc.
Referenced by octave::action_container::add_method(), octave_link::do_post_event(), octave::symbol_table::find_function(), if(), and octave_link::post_event().
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among others |
Definition at line 110 of file urlwrite.cc.
Array<std::string> param |
Definition at line 124 of file urlwrite.cc.
Referenced by symbol_info_list::symbol_info::display_line(), octave::curl_transfer::form_query_string(), octave::url_transfer::http_action(), octave::curl_transfer::http_action(), octave::url_transfer::http_get(), octave::curl_transfer::http_get(), octave::url_transfer::http_post(), octave::curl_transfer::http_post(), if(), octave::textscan::parse_options(), symbol_info_list::parse_whos_line_format(), print_descriptor(), and octave::news_reader::process().
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl supports |
Definition at line 110 of file urlwrite.cc.
nd group nd example The full path of the downloaded file is returned in otherwise it is in which case then the error is signaled through Octave s error handling mechanism This function uses libcurl Curl among the and FILE protocols Username and password may be specified in the URL |
Definition at line 110 of file urlwrite.cc.
std::string url = args(0).xstring_value ("urlwrite: URL must be a string") |
Definition at line 118 of file urlwrite.cc.
Referenced by UrlFilter::HotSpot::actions(), UrlFilter::HotSpot::activate(), QWinTerminalImpl::dropEvent(), octave::file_editor::dropEvent(), TerminalView::dropEvent(), format_url(), octave::documentation_browser::handle_index_clicked(), octave::documentation_browser::loadResource(), octave::news_reader::process(), UrlFilter::HotSpot::tooltip(), and UrlFilter::HotSpot::urlType().