GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
url_transfer Class Reference

#include "url-transfer.h"

Public Member Functions

 url_transfer ()
 
 url_transfer (const std::string &host, const std::string &user, const std::string &passwd, std::ostream &os)
 
 url_transfer (const std::string &url, std::ostream &os)
 
 url_transfer (const url_transfer &)=default
 
 ~url_transfer ()=default
 
void ascii ()
 
void binary ()
 
void cookie_jar (const std::string &filename)
 
void cwd (const std::string &path)
 
void del (const std::string &file)
 
void dir ()
 
void form_data_post (const Array< std::string > &param)
 
void get (const std::string &file, std::ostream &os)
 
void get_fileinfo (const std::string &filename, double &filesize, OCTAVE_TIME_T &filetime, bool &fileisdir)
 
bool good () const
 
void http_action (const Array< std::string > &param, const std::string &action)
 
void http_get (const Array< std::string > &param)
 
void http_post (const Array< std::string > &param)
 
bool is_ascii () const
 
bool is_binary () const
 
bool is_valid () const
 
std::string lasterror () const
 
string_vector list ()
 
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)
 
url_transferoperator= (const url_transfer &)=default
 
void put (const std::string &file, std::istream &is)
 
std::string pwd ()
 
void rename (const std::string &oldname, const std::string &newname)
 
void rmdir (const std::string &path)
 
void set_header_fields (const Array< std::string > &param)
 
std::istream & set_istream (std::istream &is)
 
std::ostream & set_ostream (std::ostream &os)
 
void set_weboptions (const struct weboptions &param)
 

Detailed Description

Definition at line 163 of file url-transfer.h.

Constructor & Destructor Documentation

◆ url_transfer() [1/4]

url_transfer::url_transfer ( )

Definition at line 920 of file url-transfer.cc.

◆ url_transfer() [2/4]

url_transfer::url_transfer ( const std::string &  host,
const std::string &  user,
const std::string &  passwd,
std::ostream &  os 
)

Definition at line 923 of file url-transfer.cc.

◆ url_transfer() [3/4]

url_transfer::url_transfer ( const std::string &  url,
std::ostream &  os 
)

Definition at line 928 of file url-transfer.cc.

◆ url_transfer() [4/4]

url_transfer::url_transfer ( const url_transfer )
default

◆ ~url_transfer()

url_transfer::~url_transfer ( )
default

Member Function Documentation

◆ ascii()

void url_transfer::ascii ( )
inline

Definition at line 198 of file url-transfer.h.

Referenced by octave::F__ftp_ascii__().

◆ binary()

void url_transfer::binary ( )
inline

Definition at line 200 of file url-transfer.h.

Referenced by octave::F__ftp_binary__().

◆ cookie_jar()

void url_transfer::cookie_jar ( const std::string &  filename)
inline

Definition at line 269 of file url-transfer.h.

◆ cwd()

void url_transfer::cwd ( const std::string &  path)
inline

Definition at line 206 of file url-transfer.h.

Referenced by octave::F__ftp_cwd__().

◆ del()

void url_transfer::del ( const std::string &  file)
inline

Definition at line 208 of file url-transfer.h.

Referenced by octave::F__ftp_delete__().

◆ dir()

void url_transfer::dir ( )
inline

Definition at line 241 of file url-transfer.h.

Referenced by octave::F__ftp_dir__().

◆ form_data_post()

void url_transfer::form_data_post ( const Array< std::string > &  param)
inline

Definition at line 279 of file url-transfer.h.

◆ get()

void url_transfer::get ( const std::string &  file,
std::ostream &  os 
)
inline

Definition at line 224 of file url-transfer.h.

Referenced by octave::F__ftp_mget__().

◆ get_fileinfo()

void url_transfer::get_fileinfo ( const std::string &  filename,
double &  filesize,
OCTAVE_TIME_T &  filetime,
bool &  fileisdir 
)
inline

Definition at line 245 of file url-transfer.h.

Referenced by octave::F__ftp_dir__(), and octave::F__ftp_mget__().

◆ good()

bool url_transfer::good ( ) const
inline

◆ http_action()

void url_transfer::http_action ( const Array< std::string > &  param,
const std::string &  action 
)
inline

◆ http_get()

void url_transfer::http_get ( const Array< std::string > &  param)
inline

Definition at line 253 of file url-transfer.h.

◆ http_post()

void url_transfer::http_post ( const Array< std::string > &  param)
inline

Definition at line 258 of file url-transfer.h.

◆ is_ascii()

bool url_transfer::is_ascii ( ) const
inline

Definition at line 202 of file url-transfer.h.

Referenced by octave::F__ftp_mode__().

◆ is_binary()

bool url_transfer::is_binary ( ) const
inline

Definition at line 204 of file url-transfer.h.

◆ is_valid()

◆ lasterror()

std::string url_transfer::lasterror ( ) const
inline

◆ list()

string_vector url_transfer::list ( )
inline

Definition at line 243 of file url-transfer.h.

Referenced by octave::F__ftp_dir__(), and octave::F__ftp_mget__().

◆ mget_directory()

void url_transfer::mget_directory ( const std::string &  directory,
const std::string &  target 
)
inline

Definition at line 229 of file url-transfer.h.

Referenced by octave::F__ftp_mget__().

◆ mkdir()

void url_transfer::mkdir ( const std::string &  path)
inline

Definition at line 212 of file url-transfer.h.

Referenced by octave::F__ftp_mkdir__().

◆ mput_directory()

string_vector url_transfer::mput_directory ( const std::string &  base,
const std::string &  directory 
)
inline

Definition at line 235 of file url-transfer.h.

Referenced by octave::F__ftp_mput__().

◆ operator=()

url_transfer& url_transfer::operator= ( const url_transfer )
default

◆ put()

void url_transfer::put ( const std::string &  file,
std::istream &  is 
)
inline

Definition at line 219 of file url-transfer.h.

Referenced by octave::F__ftp_mput__().

◆ pwd()

std::string url_transfer::pwd ( )
inline

Definition at line 251 of file url-transfer.h.

Referenced by octave::F__ftp_pwd__().

◆ rename()

void url_transfer::rename ( const std::string &  oldname,
const std::string &  newname 
)
inline

Definition at line 214 of file url-transfer.h.

Referenced by octave::F__ftp_rename__().

◆ rmdir()

void url_transfer::rmdir ( const std::string &  path)
inline

Definition at line 210 of file url-transfer.h.

Referenced by octave::F__ftp_rmdir__().

◆ set_header_fields()

void url_transfer::set_header_fields ( const Array< std::string > &  param)
inline

Definition at line 274 of file url-transfer.h.

◆ set_istream()

std::istream& url_transfer::set_istream ( std::istream &  is)
inline

Definition at line 193 of file url-transfer.h.

◆ set_ostream()

std::ostream& url_transfer::set_ostream ( std::ostream &  os)
inline

Definition at line 188 of file url-transfer.h.

◆ set_weboptions()

void url_transfer::set_weboptions ( const struct weboptions param)
inline

Definition at line 284 of file url-transfer.h.

Referenced by octave::F__restful_service__().


The documentation for this class was generated from the following files: