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

#include "url-transfer.h"

Collaboration diagram for url_transfer:

Public Member Functions

 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 (void)
 
 ~url_transfer (void)=default
 
void ascii (void)
 
void binary (void)
 
void cookie_jar (const std::string &filename)
 
void cwd (const std::string &path)
 
void del (const std::string &file)
 
void dir (void)
 
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 (void) 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 (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)
 
url_transferoperator= (const url_transfer &)=default
 
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)
 
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)
 

Private Attributes

std::shared_ptr< base_url_transferm_rep
 

Detailed Description

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

Constructor & Destructor Documentation

◆ url_transfer() [1/4]

url_transfer::url_transfer ( void  )

Definition at line 921 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 924 of file url-transfer.cc.

◆ url_transfer() [3/4]

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

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

◆ url_transfer() [4/4]

url_transfer::url_transfer ( const url_transfer )
default

◆ ~url_transfer()

url_transfer::~url_transfer ( void  )
default

Member Function Documentation

◆ ascii()

void url_transfer::ascii ( void  )
inline

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

References m_rep.

Referenced by F__ftp_ascii__().

◆ binary()

void url_transfer::binary ( void  )
inline

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

References m_rep.

Referenced by F__ftp_binary__().

◆ cookie_jar()

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

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

References m_rep.

◆ cwd()

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

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

References m_rep.

Referenced by F__ftp_cwd__().

◆ del()

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

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

References m_rep.

Referenced by F__ftp_delete__().

◆ dir()

void url_transfer::dir ( void  )
inline

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

References m_rep.

Referenced by F__ftp_dir__().

◆ form_data_post()

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

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

References m_rep.

◆ get()

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

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

References m_rep.

Referenced by 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 249 of file url-transfer.h.

References m_rep.

Referenced by F__ftp_dir__(), and F__ftp_mget__().

◆ good()

bool url_transfer::good ( void  ) const
inline

◆ http_action()

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

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

References m_rep.

Referenced by F__restful_service__(), Furlread(), and Furlwrite().

◆ http_get()

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

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

References m_rep.

Referenced by news_reader::process().

◆ http_post()

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

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

References m_rep.

◆ is_ascii()

bool url_transfer::is_ascii ( void  ) const
inline

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

References m_rep.

Referenced by F__ftp_mode__().

◆ is_binary()

bool url_transfer::is_binary ( void  ) const
inline

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

References m_rep.

◆ is_valid()

◆ lasterror()

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

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

References m_rep.

Referenced by F__ftp_mget__(), F__ftp_mput__(), F__restful_service__(), Furlread(), and Furlwrite().

◆ list()

string_vector url_transfer::list ( void  )
inline

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

References m_rep.

Referenced by F__ftp_dir__(), and F__ftp_mget__().

◆ mget_directory()

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

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

References m_rep.

Referenced by F__ftp_mget__().

◆ mkdir()

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

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

References m_rep.

Referenced by F__ftp_mkdir__().

◆ mput_directory()

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

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

References m_rep.

Referenced by 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 223 of file url-transfer.h.

References m_rep.

Referenced by F__ftp_mput__().

◆ pwd()

std::string url_transfer::pwd ( void  )
inline

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

References m_rep.

Referenced by F__ftp_pwd__().

◆ rename()

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

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

References m_rep.

Referenced by F__ftp_rename__().

◆ rmdir()

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

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

References m_rep.

Referenced by F__ftp_rmdir__().

◆ set_header_fields()

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

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

References m_rep.

◆ set_istream()

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

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

References m_rep.

◆ set_ostream()

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

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

References m_rep.

◆ set_weboptions()

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

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

References m_rep.

Referenced by F__restful_service__().

Member Data Documentation

◆ m_rep


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