#include <OgreZip.h>
Inheritance diagram for Ogre::Zip:


Public Methods | |
| Zip () | |
| Zip (const String &name) | |
| ~Zip () | |
| void | load () |
| Loads the archive. | |
| void | unload () |
| Unloads the archive. | |
| 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. | |
| 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. | |
| 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. | |
| bool | fileDele (const String &strFile) |
| Deletes a file from the archive. | |
| bool | fileMove (const String &strSrc, const String &strDest, bool bOverwrite) |
| Moves a file within the archive. | |
| bool | fileInfo (const String &strFile, FileInfo **ppInfo) const |
| Retrieves information about a file within the archive. | |
| bool | fileCopy (const String &strSrc, const String &strDest, bool bOverwrite) |
| Copies a file within the archive. | |
| bool | fileTest (const String &strFile) const |
| Tests wheter a file within the archive can be succesfully read. | |
| std::vector< String > | dirGetFiles (const String &strDir) const |
| Finds the names of all the files within a directory inside the archive. | |
| std::vector< String > | dirGetSubs (const String &strDir) const |
| Finds the names of all the subdirectories within a directory inside the archive. | |
| bool | dirDele (const String &strDir, bool bRecursive) |
| Deletes a directory from the archive. | |
| 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. | |
| virtual size_t | getSize (void) const |
| Retrieves info about the size of the resource. | |
| virtual void | touch (void) |
| 'Touches' the resource to indicate it has been used. | |
| time_t | getLastAccess (void) const |
| Gets the last time the resource was 'touched'. | |
| const String & | getName (void) const |
| Gets resource name. | |
| ResourceHandle | getHandle (void) const |
| bool | isLoaded (void) const |
| Returns true if the Resource has been loaded, false otherwise. | |
| virtual void | destroy () |
| A method to make the resource delete itself. | |
Protected Attributes | |
| String | mName |
| ResourceHandle | mHandle |
| bool | mIsLoaded |
| time_t | mLastAccess |
| size_t | mSize |
Private Attributes | |
| unzFile | mArchive |
|
|
Definition at line 241 of file OgreZip.cpp. |
|
|
Definition at line 244 of file OgreZip.cpp. References Ogre::Resource::mName. |
|
|
Definition at line 250 of file OgreZip.cpp. |
|
|
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.
Definition at line 137 of file OgreResource.h. |
|
||||||||||||||||
|
Implements Ogre::ArchiveEx. Definition at line 156 of file OgreZip.cpp. |
|
||||||||||||
|
Deletes a directory from the archive.
Implements Ogre::ArchiveEx. Definition at line 138 of file OgreZip.cpp. |
|
|
Finds the names of all the files within a directory inside the archive.
Implements Ogre::ArchiveEx. Definition at line 126 of file OgreZip.cpp. |
|
|
Finds the names of all the subdirectories within a directory inside the archive.
Implements Ogre::ArchiveEx. Definition at line 132 of file OgreZip.cpp. |
|
||||||||||||
|
Implements Ogre::ArchiveEx. Definition at line 150 of file OgreZip.cpp. |
|
||||||||||||||||
|
Implements Ogre::ArchiveEx. Definition at line 144 of file OgreZip.cpp. |
|
|
Implements Ogre::ArchiveEx. Definition at line 162 of file OgreZip.cpp. |
|
||||||||||||||||
|
Copies a file within the archive.
Implements Ogre::ArchiveEx. Definition at line 102 of file OgreZip.cpp. |
|
|
Deletes a file from the archive.
Implements Ogre::ArchiveEx. Definition at line 114 of file OgreZip.cpp. |
|
||||||||||||
|
Retrieves information about a file within the archive.
Implements Ogre::ArchiveEx. Definition at line 120 of file OgreZip.cpp. |
|
||||||||||||||||
|
Moves a file within the archive.
Implements Ogre::ArchiveEx. Definition at line 108 of file OgreZip.cpp. |
|
||||||||||||
|
Implements Ogre::ArchiveEx. Definition at line 38 of file OgreZip.cpp. References mArchive. |
|
||||||||||||
|
Reads the contents of a file within the archive and copies it in the passed DataChunk.
Implements Ogre::ArchiveEx. Definition at line 63 of file OgreZip.cpp. References Ogre::DataChunk::allocate(), Ogre::DataChunk::getPtr(), and mArchive. |
|
||||||||||||||||
|
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. Definition at line 82 of file OgreZip.cpp. |
|
|
Tests wheter a file within the archive can be succesfully read.
Implements Ogre::ArchiveEx. Definition at line 94 of file OgreZip.cpp. References mArchive. |
|
||||||||||||||||
|
Creates a new file in the archive and copies in it the contents of the passed DataChunk.
Implements Ogre::ArchiveEx. Definition at line 88 of file OgreZip.cpp. |
|
||||||||||||||||
|
Implements Ogre::ArchiveEx. Definition at line 168 of file OgreZip.cpp. References mArchive, Ogre::StringVector, and Ogre::String::toLowerCase(). |
|
|
Definition at line 120 of file OgreResource.h. References Ogre::ResourceHandle. Referenced by Ogre::Material::clone(), Ogre::BspLevel::loadQuake3Level(), and Ogre::ResourceManager::unload(). |
|
|
Gets the last time the resource was 'touched'.
Definition at line 108 of file OgreResource.h. |
|
|
|
Retrieves info about the size of the resource.
Definition at line 93 of file OgreResource.h. Referenced by Ogre::ResourceManager::unload(). |
|
|
Returns true if the Resource has been loaded, false otherwise.
Definition at line 127 of file OgreResource.h. Referenced by Ogre::GpuProgramUsage::_load(), Ogre::Technique::isLoaded(), Ogre::D3D9Texture::load(), Ogre::D3D9Texture::unload(), and Ogre::D3D9Texture::~D3D9Texture(). |
|
|
Loads the archive.
Implements Ogre::ArchiveEx. Definition at line 216 of file OgreZip.cpp. References Except, mArchive, Ogre::Resource::mIsLoaded, and Ogre::Resource::mName. |
|
|
'Touches' the resource to indicate it has been used.
Reimplemented in Ogre::Material. Definition at line 100 of file OgreResource.h. Referenced by Ogre::ResourceManager::load(). |
|
|
Unloads the archive.
Implements Ogre::ArchiveEx. Definition at line 231 of file OgreZip.cpp. References mArchive, and Ogre::Resource::mName. |
|
|
Definition at line 74 of file OgreZip.h. Referenced by fileOpen(), fileRead(), fileTest(), getAllNamesLike(), load(), and unload(). |
|
|
Definition at line 57 of file OgreResource.h. Referenced by Ogre::ResourceManager::add(), Ogre::Material::clone(), Ogre::Material::copyDetailsTo(), and Ogre::Material::operator=(). |
|
|
|
Definition at line 59 of file OgreResource.h. Referenced by Ogre::Material::operator=(). |
|
|
|
Definition at line 60 of file OgreResource.h. Referenced by Ogre::D3D9Texture::_setFinalAttributes(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::Material::operator=(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:21:30 2004