artefaktur
software engineer &        architecture

 
 
 
 

class FTPFileSystem

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::net::ftp::FTPFileSystem Class Reference

#include <FTPFileSystem.h>

Inheritance diagram for acdk::net::ftp::FTPFileSystem:

acdk::lang::Object acdk::io::FileSystem acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Represends a File system mounted via class FTPClient.


Public Member Functions

 FTPFileSystem (IN(RString) url)
 FTPFileSystem (IN(acdk::net::RURL) url)
 ~FTPFileSystem ()
bool equals (IN(acdk::lang::Object) other)
 Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

bool equals (IN(RFTPFileSystem) other)
RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual bool ownsFile (IN(RString) fname)
virtual RString getRootName ()
 returns the root name of the this file system Examples: /home/roger/myfile.zip ftp://ftp.artefaktur.com

virtual RFileArray listFiles (IN(RString) directory, int listflags)
virtual RFile file (IN(RString) path)
 creates an instance of given file.

virtual RFileImpl getFileImpl (IN(RString) fqpath)
 returns a file implementation for this full qualified file implementation

RFTPClient getClient ()
void removeFromCache (IN(RFileInfo) fi)
acdk::io::RFileInfo _getFileInfo (IN(RString) file)

Protected Member Functions

acdk::io::RFileInfo _findFileInfoFromCache (IN(RString) file)
 get file info from cache or read it from ftp server


Private Member Functions

void _connect ()

Private Attributes

acdk::net::RURL _rootUrl
RFTPClient _client
acdk::io::RFileInfoArray _cache

Constructor & Destructor Documentation

acdk::net::ftp::FTPFileSystem::FTPFileSystem IN(RString url  ) 
 

acdk::net::ftp::FTPFileSystem::FTPFileSystem IN(acdk::net::RURL url  ) 
 

acdk::net::ftp::FTPFileSystem::~FTPFileSystem  ) 
 


Member Function Documentation

void acdk::net::ftp::FTPFileSystem::_connect  )  [private]
 

acdk::io::RFileInfo acdk::net::ftp::FTPFileSystem::_findFileInfoFromCache IN(RString file  )  [protected]
 

get file info from cache or read it from ftp server

acdk::io::RFileInfo acdk::net::ftp::FTPFileSystem::_getFileInfo IN(RString file  ) 
 

bool acdk::net::ftp::FTPFileSystem::equals IN(RFTPFileSystem other  )  [inline]
 

bool acdk::net::ftp::FTPFileSystem::equals IN(acdk::lang::Object other  )  [inline, virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::lang::Object.

virtual RFile acdk::net::ftp::FTPFileSystem::file IN(RString path  )  [virtual]
 

creates an instance of given file.

Parameters:
path is without the FS name
Returns:
returns a new File.

Implements acdk::io::FileSystem.

RFTPClient acdk::net::ftp::FTPFileSystem::getClient  ) 
 

virtual RFileImpl acdk::net::ftp::FTPFileSystem::getFileImpl IN(RString fqpath  )  [virtual]
 

returns a file implementation for this full qualified file implementation

Implements acdk::io::FileSystem.

virtual RString acdk::net::ftp::FTPFileSystem::getRootName  )  [virtual]
 

returns the root name of the this file system Examples: /home/roger/myfile.zip ftp://ftp.artefaktur.com

Implements acdk::io::FileSystem.

virtual RFileArray acdk::net::ftp::FTPFileSystem::listFiles IN(RString directory,
int  listflags
[virtual]
 

Parameters:
directory the absolute name with out the FSname
listflags a combination of ListFlags
Returns:
list of files

Implements acdk::io::FileSystem.

virtual bool acdk::net::ftp::FTPFileSystem::ownsFile IN(RString fname  )  [virtual]
 

Returns:
true, if given (absolut) file name is part of this file system. Example: /dir/subdir/file.dat -> owns StandardFileSystem /dir/file.zip@/subdir/file.data -> owns ZipFileSystem(/dir/file.zip)

Implements acdk::io::FileSystem.

void acdk::net::ftp::FTPFileSystem::removeFromCache IN(RFileInfo fi  ) 
 

RString acdk::net::ftp::FTPFileSystem::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.


Member Data Documentation

acdk::io::RFileInfoArray acdk::net::ftp::FTPFileSystem::_cache [private]
 

RFTPClient acdk::net::ftp::FTPFileSystem::_client [private]
 

acdk::net::RURL acdk::net::ftp::FTPFileSystem::_rootUrl [private]
 

 
Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer