Cafu Engine
cf::FileSys::FileSystemZipArchiveAST Class Reference

This class implements file systems that are ZIP archives, employing the ZipArchive library by Artpol Software. More...

#include "FileSys_ZipArchive_AS.hpp"

Inheritance diagram for cf::FileSys::FileSystemZipArchiveAST:

Public Member Functions

 FileSystemZipArchiveAST (const std::string &ArchiveName_, const std::string &MountPoint_, const std::string &Password_="")
 Constructor. More...
 
 ~FileSystemZipArchiveAST ()
 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 ZipArchive library by Artpol Software.

The ZipArchive library supports AES encryption in accordance with the WinZip format, but it cannot be redistributed with the Cafu source code due to its licensing conditions. Note however that employing AES encryption for Cafu asset files is not useful anyway, as any determined hacker could reverse-engineer the Cafu executable or access e.g. the texture images by a modified graphics driver anyway. Therefore, we now use the other implementation FileSystemZipArchiveGST by Gilles Vollant now, which is under the liberal zlib license with which redistribution is no problem.

Constructor & Destructor Documentation

FileSystemZipArchiveAST::FileSystemZipArchiveAST ( const std::string &  ArchiveName_,
const std::string &  MountPoint_,
const std::string &  Password_ = "" 
)

Constructor.

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

Destructor. Destroys the file system.

Member Function Documentation

InFileI * FileSystemZipArchiveAST::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: