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

#include "url-transfer.h"

Inherited by octave::curl_transfer.

Public Member Functions

 base_url_transfer ()
 
 base_url_transfer (const std::string &host, const std::string &, const std::string &, std::ostream &os)
 
 base_url_transfer (const std::string &url, std::ostream &os)
 
virtual ~base_url_transfer ()=default
 
virtual void ascii ()
 
virtual void binary ()
 
virtual void cookie_jar (const std::string &)
 
virtual void cwd (const std::string &)
 
virtual void del (const std::string &)
 
virtual void dir ()
 
virtual void form_data_post (const Array< std::string > &)
 
virtual void get (const std::string &, std::ostream &)
 
virtual void get_fileinfo (const std::string &, double &, OCTAVE_TIME_T &, bool &)
 
bool good () const
 
virtual void http_action (const Array< std::string > &, const std::string &)
 
virtual void http_get (const Array< std::string > &)
 
virtual void http_post (const Array< std::string > &)
 
bool is_ascii () const
 
bool is_binary () const
 
bool is_valid () const
 
virtual std::string lasterror () const
 
virtual string_vector list ()
 
void mget_directory (const std::string &directory, const std::string &target)
 
virtual void mkdir (const std::string &)
 
string_vector mput_directory (const std::string &base, const std::string &directory)
 
virtual void perform ()
 
virtual void put (const std::string &, std::istream &)
 
virtual std::string pwd ()
 
virtual void rename (const std::string &, const std::string &)
 
virtual void rmdir (const std::string &)
 
virtual void set_header_fields (const Array< std::string > &)
 
virtual std::istream & set_istream (std::istream &)
 
virtual std::ostream & set_ostream (std::ostream &)
 
virtual void set_weboptions (const struct weboptions &)
 

Protected Attributes

bool m_ascii_mode
 
std::istream * m_curr_istream
 
std::ostream * m_curr_ostream
 
std::string m_errmsg
 
bool m_ftp
 
std::string m_host_or_url
 
bool m_ok
 
bool m_valid
 

Friends

class url_transfer
 

Detailed Description

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

Constructor & Destructor Documentation

◆ base_url_transfer() [1/3]

base_url_transfer::base_url_transfer ( )

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

◆ base_url_transfer() [2/3]

base_url_transfer::base_url_transfer ( const std::string &  host,
const std::string &  ,
const std::string &  ,
std::ostream &  os 
)

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

◆ base_url_transfer() [3/3]

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

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

◆ ~base_url_transfer()

virtual base_url_transfer::~base_url_transfer ( )
virtualdefault

Member Function Documentation

◆ ascii()

virtual void base_url_transfer::ascii ( )
inlinevirtual

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

◆ binary()

virtual void base_url_transfer::binary ( )
inlinevirtual

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

◆ cookie_jar()

virtual void base_url_transfer::cookie_jar ( const std::string &  )
inlinevirtual

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

◆ cwd()

virtual void base_url_transfer::cwd ( const std::string &  )
inlinevirtual

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

Referenced by mget_directory(), and mput_directory().

◆ del()

virtual void base_url_transfer::del ( const std::string &  )
inlinevirtual

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

◆ dir()

virtual void base_url_transfer::dir ( )
inlinevirtual

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

◆ form_data_post()

virtual void base_url_transfer::form_data_post ( const Array< std::string > &  )
inlinevirtual

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

◆ get()

virtual void base_url_transfer::get ( const std::string &  ,
std::ostream &   
)
inlinevirtual

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

Referenced by mget_directory().

◆ get_fileinfo()

virtual void base_url_transfer::get_fileinfo ( const std::string &  ,
double &  ,
OCTAVE_TIME_T &  ,
bool &   
)
inlinevirtual

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

Referenced by mget_directory().

◆ good()

bool base_url_transfer::good ( ) const
inline

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

Referenced by mget_directory(), and mput_directory().

◆ http_action()

virtual void base_url_transfer::http_action ( const Array< std::string > &  ,
const std::string &   
)
inlinevirtual

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

◆ http_get()

virtual void base_url_transfer::http_get ( const Array< std::string > &  )
inlinevirtual

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

◆ http_post()

virtual void base_url_transfer::http_post ( const Array< std::string > &  )
inlinevirtual

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

◆ is_ascii()

bool base_url_transfer::is_ascii ( ) const
inline

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

◆ is_binary()

bool base_url_transfer::is_binary ( ) const
inline

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

◆ is_valid()

bool base_url_transfer::is_valid ( ) const
inline

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

◆ lasterror()

virtual std::string base_url_transfer::lasterror ( ) const
inlinevirtual

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

◆ list()

virtual string_vector base_url_transfer::list ( )
inlinevirtual

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

Referenced by mget_directory().

◆ mget_directory()

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

◆ mkdir()

virtual void base_url_transfer::mkdir ( const std::string &  )
inlinevirtual

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

Referenced by mput_directory().

◆ mput_directory()

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

◆ perform()

virtual void base_url_transfer::perform ( )
inlinevirtual

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

◆ put()

virtual void base_url_transfer::put ( const std::string &  ,
std::istream &   
)
inlinevirtual

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

Referenced by mput_directory().

◆ pwd()

virtual std::string base_url_transfer::pwd ( )
inlinevirtual

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

◆ rename()

virtual void base_url_transfer::rename ( const std::string &  ,
const std::string &   
)
inlinevirtual

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

◆ rmdir()

virtual void base_url_transfer::rmdir ( const std::string &  )
inlinevirtual

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

◆ set_header_fields()

virtual void base_url_transfer::set_header_fields ( const Array< std::string > &  )
inlinevirtual

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

◆ set_istream()

virtual std::istream& base_url_transfer::set_istream ( std::istream &  )
inlinevirtual

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

◆ set_ostream()

virtual std::ostream& base_url_transfer::set_ostream ( std::ostream &  )
inlinevirtual

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

◆ set_weboptions()

virtual void base_url_transfer::set_weboptions ( const struct weboptions )
inlinevirtual

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

Friends And Related Function Documentation

◆ url_transfer

friend class url_transfer
friend

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

Member Data Documentation

◆ m_ascii_mode

bool base_url_transfer::m_ascii_mode
protected

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

◆ m_curr_istream

std::istream* base_url_transfer::m_curr_istream
protected

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

◆ m_curr_ostream

std::ostream* base_url_transfer::m_curr_ostream
protected

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

◆ m_errmsg

std::string base_url_transfer::m_errmsg
protected

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

Referenced by mget_directory(), and mput_directory().

◆ m_ftp

bool base_url_transfer::m_ftp
protected

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

◆ m_host_or_url

std::string base_url_transfer::m_host_or_url
protected

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

◆ m_ok

bool base_url_transfer::m_ok
protected

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

Referenced by mget_directory(), and mput_directory().

◆ m_valid

bool base_url_transfer::m_valid
protected

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


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