#include <OgreZip.h>
Inheritance diagram for Ogre::Zip:
Public Methods | |
Zip () | |
Zip (const String &name) | |
~Zip () | |
void | load () |
Loads the archive. More... | |
void | unload () |
Unloads the archive. More... | |
bool | fileOpen (const String &strFile, FILE **ppFile) const |
bool | fileRead (const String &strFile, DataChunk **ppChunk) const |
Reads the contents of a file within the archive and copies it in the passed DataChunk. More... | |
bool | fileSave (FILE *pFile, const String &strPath, bool bOverwrite=false) |
Creates a new file in the archive and copies in it the contents of the file associated with the passed FILE stream. More... | |
bool | fileWrite (const DataChunk &refChunk, const String &strPath, bool bOverwrite=false) |
Creates a new file in the archive and copies in it the contents of the passed DataChunk. More... | |
bool | fileDele (const String &strFile) |
Deletes a file from the archive. More... | |
bool | fileMove (const String &strSrc, const String &strDest, bool bOverwrite) |
Moves a file within the archive. More... | |
bool | fileInfo (const String &strFile, FileInfo **ppInfo) const |
Retrieves information about a file within the archive. More... | |
bool | fileCopy (const String &strSrc, const String &strDest, bool bOverwrite) |
Copies a file within the archive. More... | |
bool | fileTest (const String &strFile) const |
Tests wheter a file within the archive can be succesfully read. More... | |
std::vector< String > | dirGetFiles (const String &strDir) const |
Finds the names of all the files within a directory inside the archive. More... | |
std::vector< String > | dirGetSubs (const String &strDir) const |
Finds the names of all the subdirectories within a directory inside the archive. More... | |
bool | dirDele (const String &strDir, bool bRecursive) |
Deletes a directory from the archive. More... | |
bool | dirMove (const String &strSrc, const String &strDest, bool bOverwrite) |
bool | dirInfo (const String &strDir, FileInfo **ppInfo) const |
bool | dirCopy (const String &strSrc, const String &strDest, bool bOverwrite) |
bool | dirTest (const String &strDir) const |
std::vector< String > | getAllNamesLike (const String &strStartPath, const String &strPattern, bool bRecursive=true) |
bool | _allowFileCaching () const |
This function gets called by the resource manager to know if it is okay to cahche all the files in the achive. More... | |
virtual size_t | getSize (void) |
Retrieves info about the size of the resource. More... | |
void | touch (void) |
'Touches' the resource to indicate it has been used. More... | |
time_t | getLastAccess (void) const |
Gets the last time the resource was 'touched'. More... | |
const String & | getName (void) const |
Gets resource name. More... | |
bool | isLoaded (void) const |
Returns true if the Resource has been loaded, false otherwise. More... | |
virtual void | destroy () |
A method to make the resource delete itself. More... | |
Protected Attributes | |
String | mName |
bool | mIsLoaded |
time_t | mLastAccess |
size_t | mSize |
Private Attributes | |
unzFile | mArchive |
|
|
|
|
|
|
|
This function gets called by the resource manager to know if it is okay to cahche all the files in the achive.
Implements Ogre::ArchiveEx. |
|
A method to make the resource delete itself.
|
|
Implements Ogre::ArchiveEx. |
|
Deletes a directory from the archive.
Implements Ogre::ArchiveEx. |
|
Finds the names of all the files within a directory inside the archive.
Implements Ogre::ArchiveEx. |
|
Finds the names of all the subdirectories within a directory inside the archive.
Implements Ogre::ArchiveEx. |
|
Implements Ogre::ArchiveEx. |
|
Implements Ogre::ArchiveEx. |
|
Implements Ogre::ArchiveEx. |
|
Copies a file within the archive.
Implements Ogre::ArchiveEx. |
|
Deletes a file from the archive.
Implements Ogre::ArchiveEx. |
|
Retrieves information about a file within the archive.
Implements Ogre::ArchiveEx. |
|
Moves a file within the archive.
Implements Ogre::ArchiveEx. |
|
Implements Ogre::ArchiveEx. |
|
Reads the contents of a file within the archive and copies it in the passed DataChunk.
Implements Ogre::ArchiveEx. |
|
Creates a new file in the archive and copies in it the contents of the file associated with the passed FILE stream.
Implements Ogre::ArchiveEx. |
|
Tests wheter a file within the archive can be succesfully read.
Implements Ogre::ArchiveEx. |
|
Creates a new file in the archive and copies in it the contents of the passed DataChunk.
Implements Ogre::ArchiveEx. |
|
Implements Ogre::ArchiveEx. |
|
Gets the last time the resource was 'touched'.
|
|
Gets resource name.
Reimplemented in Ogre::Material. |
|
Retrieves info about the size of the resource.
|
|
Returns true if the Resource has been loaded, false otherwise.
|
|
Loads the archive.
Implements Ogre::ArchiveEx. |
|
'Touches' the resource to indicate it has been used.
|
|
Unloads the archive.
Implements Ogre::ArchiveEx. |
|
|
|
|
|
|
|
|
|
|
Copyright © 2002 by The OGRE Team