GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
url_transfer Class Reference

#include "url-transfer.h"

Collaboration diagram for url_transfer:
Collaboration graph
[legend]

Public Member Functions

 url_transfer (void)
 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 &h)
 ~url_transfer (void)
void ascii (void)
void binary (void)
void cwd (const std::string &path)
void del (const std::string &file)
void dir (void)
void get (const std::string &file, std::ostream &os)
void get_fileinfo (const std::string &filename, double &filesize, 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 &h)
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)
std::istream & set_istream (std::istream &is)
std::ostream & set_ostream (std::ostream &os)

Private Attributes

base_url_transferrep

Detailed Description

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

Constructor & Destructor Documentation

url_transfer::url_transfer ( void  )

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

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

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

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

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

url_transfer::url_transfer ( const url_transfer h)
inline

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

References base_url_transfer::count, and rep.

url_transfer::~url_transfer ( void  )
inline

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

References base_url_transfer::count, and rep.

Member Function Documentation

void url_transfer::ascii ( void  )
inline

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

References base_url_transfer::ascii(), and rep.

Referenced by F__ftp_ascii__().

void url_transfer::binary ( void  )
inline

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

References base_url_transfer::binary(), and rep.

Referenced by F__ftp_binary__().

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

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

References base_url_transfer::cwd(), and rep.

Referenced by F__ftp_cwd__().

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

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

References base_url_transfer::del(), and rep.

Referenced by F__ftp_delete__().

void url_transfer::dir ( void  )
inline

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

References base_url_transfer::dir(), and rep.

Referenced by F__ftp_dir__().

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

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

References base_url_transfer::get(), and rep.

Referenced by F__ftp_mget__().

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

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

References base_url_transfer::get_fileinfo(), and rep.

Referenced by F__ftp_dir__(), and F__ftp_mget__().

bool url_transfer::good ( void  ) const
inline

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

References base_url_transfer::good(), and rep.

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

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

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

References base_url_transfer::http_action(), and rep.

Referenced by Furlread(), and Furlwrite().

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

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

References base_url_transfer::http_get(), and rep.

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

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

References base_url_transfer::http_post(), and rep.

bool url_transfer::is_ascii ( void  ) const
inline

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

References base_url_transfer::is_ascii(), and rep.

Referenced by F__ftp_mode__().

bool url_transfer::is_binary ( void  ) const
inline

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

References base_url_transfer::is_binary(), and rep.

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

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

References base_url_transfer::lasterror(), and rep.

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

string_vector url_transfer::list ( void  )
inline

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

References base_url_transfer::list(), and rep.

Referenced by F__ftp_dir__(), and F__ftp_mget__().

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

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

References base_url_transfer::mget_directory(), and rep.

Referenced by F__ftp_mget__().

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

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

References base_url_transfer::mkdir(), and rep.

Referenced by F__ftp_mkdir__().

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

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

References base_url_transfer::mput_directory(), and rep.

Referenced by F__ftp_mput__().

url_transfer& url_transfer::operator= ( const url_transfer h)
inline

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

References base_url_transfer::count, and rep.

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

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

References base_url_transfer::put(), and rep.

Referenced by F__ftp_mput__().

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

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

References base_url_transfer::pwd(), and rep.

Referenced by F__ftp_pwd__().

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

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

References base_url_transfer::rename(), and rep.

Referenced by F__ftp_rename__().

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

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

References rep, and base_url_transfer::rmdir().

Referenced by F__ftp_rmdir__().

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

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

References rep, and base_url_transfer::set_istream().

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

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

References rep, and base_url_transfer::set_ostream().

Member Data Documentation

base_url_transfer* url_transfer::rep
private

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