GNU Octave  8.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"

Inheritance diagram for base_url_transfer:
Collaboration diagram for base_url_transfer:

Public Member Functions

 base_url_transfer (const base_url_transfer &)=delete
 
 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)
 
 base_url_transfer (void)
 
virtual ~base_url_transfer (void)=default
 
virtual void ascii (void)
 
virtual void binary (void)
 
virtual void cookie_jar (const std::string &)
 
virtual void cwd (const std::string &)
 
virtual void del (const std::string &)
 
virtual void dir (void)
 
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 (void) 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 (void) const
 
bool is_binary (void) const
 
bool is_valid (void) const
 
virtual std::string lasterror (void) const
 
virtual string_vector list (void)
 
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)
 
base_url_transferoperator= (const base_url_transfer &)=delete
 
virtual void perform (void)
 
virtual void put (const std::string &, std::istream &)
 
virtual std::string pwd (void)
 
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/4]

base_url_transfer::base_url_transfer ( void  )

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

◆ base_url_transfer() [2/4]

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/4]

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() [4/4]

base_url_transfer::base_url_transfer ( const base_url_transfer )
delete

◆ ~base_url_transfer()

virtual base_url_transfer::~base_url_transfer ( void  )
virtualdefault

Member Function Documentation

◆ ascii()

virtual void base_url_transfer::ascii ( void  )
inlinevirtual

Reimplemented in curl_transfer.

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

◆ binary()

virtual void base_url_transfer::binary ( void  )
inlinevirtual

Reimplemented in curl_transfer.

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

◆ cookie_jar()

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

Reimplemented in curl_transfer.

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

◆ cwd()

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

Reimplemented in curl_transfer.

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

Referenced by mget_directory(), and mput_directory().

◆ del()

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

Reimplemented in curl_transfer.

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

◆ dir()

virtual void base_url_transfer::dir ( void  )
inlinevirtual

Reimplemented in curl_transfer.

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

◆ form_data_post()

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

Reimplemented in curl_transfer.

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

◆ get()

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

Reimplemented in curl_transfer.

Definition at line 119 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

Reimplemented in curl_transfer.

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

Referenced by mget_directory().

◆ good()

◆ http_action()

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

Reimplemented in curl_transfer.

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

◆ http_get()

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

Reimplemented in curl_transfer.

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

◆ http_post()

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

Reimplemented in curl_transfer.

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

◆ is_ascii()

bool base_url_transfer::is_ascii ( void  ) const
inline

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

◆ is_binary()

bool base_url_transfer::is_binary ( void  ) const
inline

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

◆ is_valid()

bool base_url_transfer::is_valid ( void  ) const
inline

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

◆ lasterror()

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

Reimplemented in curl_transfer.

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

◆ list()

virtual string_vector base_url_transfer::list ( void  )
inlinevirtual

Reimplemented in curl_transfer.

Definition at line 130 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

Reimplemented in curl_transfer.

Definition at line 111 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 
)

◆ operator=()

base_url_transfer& base_url_transfer::operator= ( const base_url_transfer )
delete

◆ perform()

virtual void base_url_transfer::perform ( void  )
inlinevirtual

Reimplemented in curl_transfer.

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

◆ put()

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

Reimplemented in curl_transfer.

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

Referenced by mput_directory().

◆ pwd()

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

Reimplemented in curl_transfer.

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

◆ rename()

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

Reimplemented in curl_transfer.

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

◆ rmdir()

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

Reimplemented in curl_transfer.

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

◆ set_header_fields()

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

Reimplemented in curl_transfer.

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

◆ set_istream()

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

Reimplemented in curl_transfer.

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

◆ set_ostream()

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

Reimplemented in curl_transfer.

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

◆ set_weboptions()

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

Reimplemented in curl_transfer.

Definition at line 152 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 160 of file url-transfer.h.

Referenced by curl_transfer::ascii(), and curl_transfer::binary().

◆ m_curr_istream

std::istream* base_url_transfer::m_curr_istream
protected

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

Referenced by curl_transfer::set_istream().

◆ m_curr_ostream

std::ostream* base_url_transfer::m_curr_ostream
protected

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

Referenced by curl_transfer::list(), and curl_transfer::set_ostream().

◆ m_errmsg

std::string base_url_transfer::m_errmsg
protected

◆ m_ftp

bool base_url_transfer::m_ftp
protected

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

◆ m_host_or_url

◆ m_ok

bool base_url_transfer::m_ok
protected

◆ m_valid

bool base_url_transfer::m_valid
protected

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

Referenced by curl_transfer::curl_transfer().


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