#include <OgreArchiveEx.h>
Inheritance diagram for Ogre::ArchiveEx:
Public Methods | |
ArchiveEx () | |
Default constructor. | |
ArchiveEx (const String &name) | |
Usual constructor - used by ArchiveManager. | |
virtual | ~ArchiveEx () |
Default destructor. | |
virtual void | load ()=0 |
Loads the archive. | |
virtual void | unload ()=0 |
Unloads the archive. | |
virtual bool | fileOpen (const String &strFile, FILE **ppFile) const=0 |
virtual bool | fileRead (const String &strFile, DataChunk **ppChunk) const=0 |
Reads the contents of a file within the archive and copies it in the passed DataChunk. | |
virtual bool | fileSave (FILE *pFile, const String &strPath, bool bOverwrite=false)=0 |
Creates a new file in the archive and copies in it the contents of the file associated with the passed FILE stream. | |
virtual bool | fileWrite (const DataChunk &refChunk, const String &strPath, bool bOverwrite=false)=0 |
Creates a new file in the archive and copies in it the contents of the passed DataChunk. | |
virtual bool | fileDele (const String &strFile)=0 |
Deletes a file from the archive. | |
virtual bool | fileMove (const String &strSrc, const String &strDest, bool bOverwrite)=0 |
Moves a file within the archive. | |
virtual bool | fileInfo (const String &strFile, FileInfo **ppInfo) const=0 |
Retrieves information about a file within the archive. | |
virtual bool | fileCopy (const String &strSrc, const String &strDest, bool bOverwrite)=0 |
Copies a file within the archive. | |
virtual bool | fileTest (const String &strFile) const=0 |
Tests wheter a file within the archive can be succesfully read. | |
virtual std::vector< String > | dirGetFiles (const String &strDir) const=0 |
Finds the names of all the files within a directory inside the archive. | |
virtual std::vector< String > | dirGetSubs (const String &strDir) const=0 |
Finds the names of all the subdirectories within a directory inside the archive. | |
virtual bool | dirDele (const String &strDir, bool bRecursive)=0 |
Deletes a directory from the archive. | |
virtual bool | dirMove (const String &strSrc, const String &strDest, bool bOverwrite)=0 |
virtual bool | dirInfo (const String &strDir, FileInfo **ppInfo) const=0 |
virtual bool | dirCopy (const String &strSrc, const String &strDest, bool bOverwrite)=0 |
virtual bool | dirTest (const String &strDir) const=0 |
virtual std::vector< String > | getAllNamesLike (const String &strStartPath, const String &strPattern, bool bRecursive=true)=0 |
virtual bool | _allowFileCaching () const=0 |
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 |
Definition at line 47 of file OgreArchiveEx.h.
|
Default constructor.
Definition at line 72 of file OgreArchiveEx.h. |
|
Usual constructor - used by ArchiveManager.
Definition at line 78 of file OgreArchiveEx.h. |
|
Default destructor.
Definition at line 82 of file OgreArchiveEx.h. |
|
This function gets called by the resource manager to know if it is okay to cahche all the files in the achive.
Implemented in Ogre::Zip. |
|
A method to make the resource delete itself.
Definition at line 137 of file OgreResource.h. |
|
Implemented in Ogre::Zip. |
|
Deletes a directory from the archive.
Implemented in Ogre::Zip. |
|
Finds the names of all the files within a directory inside the archive.
Implemented in Ogre::Zip. |
|
Finds the names of all the subdirectories within a directory inside the archive.
Implemented in Ogre::Zip. |
|
Implemented in Ogre::Zip. |
|
Implemented in Ogre::Zip. |
|
Implemented in Ogre::Zip. |
|
Copies a file within the archive.
Implemented in Ogre::Zip. |
|
Deletes a file from the archive.
Implemented in Ogre::Zip. |
|
Retrieves information about a file within the archive.
Implemented in Ogre::Zip. |
|
Moves a file within the archive.
Implemented in Ogre::Zip. |
|
Implemented in Ogre::Zip. |
|
Reads the contents of a file within the archive and copies it in the passed DataChunk.
Implemented in Ogre::Zip. Referenced by Ogre::OverlayManager::parseOverlayFile(). |
|
Creates a new file in the archive and copies in it the contents of the file associated with the passed FILE stream.
Implemented in Ogre::Zip. |
|
Tests wheter a file within the archive can be succesfully read.
Implemented in Ogre::Zip. |
|
Creates a new file in the archive and copies in it the contents of the passed DataChunk.
Implemented in Ogre::Zip. |
|
Implemented in Ogre::Zip. Referenced by Ogre::ResourceManager::addArchiveEx(), and Ogre::ResourceManager::addCommonArchiveEx(). |
|
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::SceneManager::deriveShadowCasterPass(), Ogre::SceneManager::deriveShadowReceiverPass(), Ogre::Technique::isLoaded(), Ogre::D3D9Texture::load(), Ogre::D3D9Texture::unload(), and Ogre::D3D9Texture::~D3D9Texture(). |
|
Loads the archive.
Implements Ogre::Resource. Implemented in Ogre::Zip. |
|
'Touches' the resource to indicate it has been used.
Reimplemented in Ogre::Material. Definition at line 100 of file OgreResource.h. Referenced by Ogre::Mesh::clone(), Ogre::MeshManager::createCurvedIllusionPlane(), Ogre::MeshManager::createCurvedPlane(), Ogre::MeshManager::createPlane(), and Ogre::ResourceManager::load(). |
|
Unloads the archive.
Reimplemented from Ogre::Resource. Implemented in Ogre::Zip. Referenced by Ogre::ArchiveManager::~ArchiveManager(). |
|
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 Fri May 14 23:25:50 2004