2005/5/9

     
 

class TarFileSystem

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

acdk::vfile::tar::TarFileSystem Class Reference

#include <TarFileSystem.h>

Inheritance diagram for acdk::vfile::tar::TarFileSystem:

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

Public Member Functions

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

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

acdk::io::RFileImpl getFileImpl (IN(RString) fqpath)
 returns a file implementation for this full qualified file implementation

int fileCount ()

Static Public Member Functions

void loadFileSystem ()
 this is needed to be sure, that this .dll/.so will be loaded into memory


Protected Member Functions

RTarFileHeader _find (IN(RString) path)
 path is part of file in tar

void _openTarFile ()
void _readEntries ()
void _addDerived ()
void _addDirLfh (IN(RString) dirname)

Private Attributes

RString _fileName
TarFileHeaderArray _fileHeaders

Friends

class TarFileImpl

Constructor & Destructor Documentation

acdk::vfile::tar::TarFileSystem::TarFileSystem IN(RString zipfile  ) 
 


Member Function Documentation

void acdk::vfile::tar::TarFileSystem::_addDerived  )  [protected]
 

void acdk::vfile::tar::TarFileSystem::_addDirLfh IN(RString dirname  )  [protected]
 

RTarFileHeader acdk::vfile::tar::TarFileSystem::_find IN(RString path  )  [protected]
 

path is part of file in tar

void acdk::vfile::tar::TarFileSystem::_openTarFile  )  [protected]
 

void acdk::vfile::tar::TarFileSystem::_readEntries  )  [protected]
 

acdk::io::RFile acdk::vfile::tar::TarFileSystem::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.

int acdk::vfile::tar::TarFileSystem::fileCount  )  [inline]
 

acdk::io::RFileImpl acdk::vfile::tar::TarFileSystem::getFileImpl IN(RString fqpath  )  [virtual]
 

returns a file implementation for this full qualified file implementation

Implements acdk::io::FileSystem.

RString acdk::vfile::tar::TarFileSystem::getRootName  )  [virtual]
 

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

Implements acdk::io::FileSystem.

acdk::io::RFileArray acdk::vfile::tar::TarFileSystem::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.

void acdk::vfile::tar::TarFileSystem::loadFileSystem  )  [static]
 

this is needed to be sure, that this .dll/.so will be loaded into memory

bool acdk::vfile::tar::TarFileSystem::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.


Friends And Related Function Documentation

friend class TarFileImpl [friend]
 


Member Data Documentation

TarFileHeaderArray acdk::vfile::tar::TarFileSystem::_fileHeaders [private]
 

RString acdk::vfile::tar::TarFileSystem::_fileName [private]