GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 "singleton-cleanup.h"
#include "url-transfer.h"
#include "defun.h"
#include "error.h"
#include "ovl.h"
#include "ov-cell.h"
#include "pager.h"
#include "oct-map.h"
#include "oct-refcount.h"
#include "unwind-prot.h"
Go to the source code of this file.
Classes | |
class | ch_manager |
Typedefs | |
typedef octave_handle | curl_handle |
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") |
typedef octave_handle curl_handle |
Definition at line 61 of file urlwrite.cc.
|
static |
Definition at line 56 of file urlwrite.cc.
References octave::sys::unlink().
Referenced by F__ftp_mget__().
OCTAVE_EXPORT octave_value_list F__ftp__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 498 of file urlwrite.cc.
References ch_manager::make_curl_handle(), octave_stdout, ovl(), print_usage(), string, and octave_handle::value().
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_ascii__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 639 of file urlwrite.cc.
References octave::url_transfer::ascii(), error(), ch_manager::get_object(), octave::url_transfer::is_valid(), and ovl().
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_binary__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 658 of file urlwrite.cc.
References octave::url_transfer::binary(), error(), ch_manager::get_object(), octave::url_transfer::is_valid(), and ovl().
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_close__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 677 of file urlwrite.cc.
References error(), ch_manager::free(), h, ch_manager::lookup(), octave_handle::ok(), and ovl().
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_cwd__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 542 of file urlwrite.cc.
References octave::url_transfer::cwd(), error(), ch_manager::get_object(), octave::url_transfer::is_valid(), ovl(), and string.
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_delete__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 713 of file urlwrite.cc.
References octave::url_transfer::del(), error(), file, ch_manager::get_object(), octave::url_transfer::is_valid(), ovl(), and string.
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_dir__ | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 567 of file urlwrite.cc.
References octave_map::assign(), octave::url_transfer::dir(), double, error(), octave::url_transfer::get_fileinfo(), ch_manager::get_object(), octave::url_transfer::is_valid(), octave::url_transfer::list(), nargout(), Array< T >::numel(), and retval.
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_mget__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 861 of file urlwrite.cc.
References action_container::add_fcn(), delete_file(), octave::sys::file_ops::dir_sep_str(), action_container::discard(), error(), file, frame, octave::url_transfer::get(), octave::url_transfer::get_fileinfo(), ch_manager::get_object(), octave::url_transfer::good(), octave::url_transfer::is_valid(), octave::url_transfer::lasterror(), octave::url_transfer::list(), glob_match::match(), octave::url_transfer::mget_directory(), Array< T >::numel(), ofile(), ovl(), pattern(), and string.
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_mkdir__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 755 of file urlwrite.cc.
References error(), ch_manager::get_object(), octave::url_transfer::is_valid(), octave::url_transfer::mkdir(), ovl(), and string.
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_mode__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 696 of file urlwrite.cc.
References error(), ch_manager::get_object(), octave::url_transfer::is_ascii(), octave::url_transfer::is_valid(), and ovl().
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_mput__ | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 798 of file urlwrite.cc.
References string_vector::append(), error(), octave::sys::base_file_stat::exists(), file, files, fs, ch_manager::get_object(), glob_match::glob(), octave::url_transfer::good(), octave::sys::base_file_stat::is_dir(), octave::url_transfer::is_valid(), octave::url_transfer::lasterror(), octave::url_transfer::mput_directory(), nargout(), Array< T >::numel(), ovl(), pattern(), octave::url_transfer::put(), string, and octave::sys::file_ops::tilde_expand().
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_pwd__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 525 of file urlwrite.cc.
References error(), ch_manager::get_object(), octave::url_transfer::is_valid(), ovl(), and octave::url_transfer::pwd().
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_rename__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 776 of file urlwrite.cc.
References error(), ch_manager::get_object(), octave::url_transfer::is_valid(), ovl(), octave::url_transfer::rename(), and string.
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list F__ftp_rmdir__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 734 of file urlwrite.cc.
References error(), ch_manager::get_object(), octave::url_transfer::is_valid(), ovl(), octave::url_transfer::rmdir(), and string.
Referenced by install_urlwrite_fcns().
OCTAVE_EXPORT octave_value_list Furlwrite | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 329 of file urlwrite.cc.
Referenced by install_urlwrite_fcns().
if | ( | nargin! | = 2 &&nargin!=4 | ) |
if | ( | nargin | = = 4 | ) |
Definition at line 345 of file urlwrite.cc.
References error(), and Array< T >::numel().
if | ( | !ofile. | is_open() | ) |
Definition at line 366 of file urlwrite.cc.
|
static |
Definition at line 222 of file urlwrite.cc.
Referenced by ch_manager::do_free(), and ch_manager::do_get_handle().
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 329 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 329 of file urlwrite.cc.
std::string filename = args(1).xstring_value ("urlwrite: LOCALFILE must be a string") |
Definition at line 340 of file urlwrite.cc.
Referenced by cleanup_tmp_files(), F__octave_link_file_dialog__(), Gaudioread(), octave::curl_transfer::get_fileinfo(), get_lines_and_columns(), figure::properties::get_property(), file_editor::handle_edit_mfile_request(), initial_class_path(), log_search(), and read_mat_ascii_data().
Referenced by dir_p(), load_path::do_add(), load_path::do_find_all_first_of(), load_path::do_find_dir(), load_path::do_find_file(), load_path::do_find_first_of(), load_path::do_find_matching_dirs(), execute_pkg_add_or_del(), F__ftp_mput__(), octave::dynamic_library::dynlib_rep::fake_reload(), Fdrawnow(), find_file_to_load(), find_private_file(), octave::base_parser::frob_function(), genpath(), load_path::dir_info::get_file_list(), octave::curl_transfer::get_fileinfo(), load_path::dir_info::get_method_file_map(), have_gnuplot_binary(), 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(), octave::base_url_transfer::mput_directory(), out_of_date_check(), read_classpath_txt(), read_mat5_binary_element(), READABLE(), octave::sys::recursive_rmdir(), octave_fcn_handle::set_fcn(), snarf_file(), symbol_exist(), load_path::dir_info::update(), file_editor_tab::update_lexer(), 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 329 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 329 of file urlwrite.cc.
std::string method |
Definition at line 342 of file urlwrite.cc.
Referenced by symbol_table::find_function().
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 329 of file urlwrite.cc.
Array<std::string> param |
Definition at line 343 of file urlwrite.cc.
Referenced by symbol_info_list::symbol_info::display_line(), octave::curl_transfer::form_query_string(), octave::textscan::parse_options(), symbol_info_list::parse_whos_line_format(), print_descriptor(), news_reader::process(), and tstgmn().
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 329 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 329 of file urlwrite.cc.
std::string url = args(0).xstring_value ("urlwrite: URL must be a string") |
Definition at line 337 of file urlwrite.cc.
Referenced by UrlFilter::HotSpot::activate(), QWinTerminalImpl::dropEvent(), file_editor::dropEvent(), TerminalView::dropEvent(), format_url(), news_reader::process(), UrlFilter::HotSpot::tooltip(), and UrlFilter::HotSpot::urlType().