The Nebula Device 3: IO::ArchiveFileSystem Class Reference

The Nebula Device 3

IO::ArchiveFileSystem Class Reference

#include <archivefilesystem.h>

Inheritance diagram for IO::ArchiveFileSystem:

IO::ZipFileSystem

Detailed Description

Top-level platform wrapper class of archive file systems.

(C) 2009 Radon Labs GmbH

Public Member Functions

 ArchiveFileSystem ()
 constructor
virtual ~ArchiveFileSystem ()
 destructor
void Setup ()
 setup the archive file system
void Discard ()
 discard the archive file system
Ptr< ArchiveFindArchiveWithFile (const URI &fileUri) const
 find first archive which contains the file path
Ptr< ArchiveFindArchiveWithDir (const URI &dirUri) const
 find first archive which contains the directory path

Member Function Documentation

void IO::ZipFileSystem::Setup (  )  [inherited]

setup the archive file system

Setup the ZipFileSystem. Registers the ZipFileStream class.

Ptr< Archive > IO::ZipFileSystem::FindArchiveWithFile ( const URI uri  )  const [inherited]

find first archive which contains the file path

This method takes a normal file URI and checks if the local path of the URI is contained as file entry in any mounted zip archive. If yes ptr to the zip archive is returned, otherwise a 0 pointer. NOTE: if the same path resides in several zip archives, it is currently not defined which one will be returned (the current implementation returns the first zip archive in alphabetical order which contains the file).

Ptr< Archive > IO::ZipFileSystem::FindArchiveWithDir ( const URI uri  )  const [inherited]

find first archive which contains the directory path

Same as FindArchiveWithFile(), but checks for a directory entry in a zip file.