Cafu Engine
cf::FileSys::FileSystemZipArchiveGVT Class Reference

This class implements file systems that are ZIP archives, employing the unzip library by Gilles Vollant. More...

#include "FileSys_ZipArchive_GV.hpp"

Inheritance diagram for cf::FileSys::FileSystemZipArchiveGVT:

Public Member Functions

 FileSystemZipArchiveGVT (const std::string &ArchiveName, const std::string &MountPoint, const std::string &Password="")
 Constructor. More...
 
 ~FileSystemZipArchiveGVT ()
 Destructor. Destroys the file system. More...
 
InFileIOpenRead (const std::string &FileName)
 Opens the file with the given name for reading. More...
 
- Public Member Functions inherited from cf::FileSys::FileSystemT
virtual ~FileSystemT ()
 The virtual destructor, so that derived classes can safely be deleted via a FileSystemT (base class) pointer. More...
 

Detailed Description

This class implements file systems that are ZIP archives, employing the unzip library by Gilles Vollant.

The unzip library is part of the minizip contribution to the zlib, and comes under the same liberal zlib license.

Constructor & Destructor Documentation

FileSystemZipArchiveGVT::FileSystemZipArchiveGVT ( const std::string &  ArchiveName,
const std::string &  MountPoint,
const std::string &  Password = "" 
)

Constructor.

Exceptions
FileSystemExceptionTwhen there is a problem with initializing this file system.
FileSystemZipArchiveGVT::~FileSystemZipArchiveGVT ( )

Destructor. Destroys the file system.

Member Function Documentation

InFileI * FileSystemZipArchiveGVT::OpenRead ( const std::string &  FileName)
virtual

Opens the file with the given name for reading.

Parameters
FileNameThe name of the file to be opened within this file system.
Returns
The pointer to the file or NULL if the file could not be opened.

Implements cf::FileSys::FileSystemT.


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