#include <OgreArchiveEx.h>
Inheritance diagram for Ogre::ArchiveEx:
Public Methods | |
ArchiveEx () | |
Default constructor. More... | |
ArchiveEx (const String &name) | |
Usual constructor - used by ArchiveManager. More... | |
virtual | ~ArchiveEx () |
Default destructor. More... | |
virtual void | load ()=0 |
Loads the archive. More... | |
virtual void | unload ()=0 |
Unloads the archive. More... | |
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. More... | |
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. More... | |
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. More... | |
virtual bool | fileDele (const String &strFile)=0 |
Deletes a file from the archive. More... | |
virtual bool | fileMove (const String &strSrc, const String &strDest, bool bOverwrite)=0 |
Moves a file within the archive. More... | |
virtual bool | fileInfo (const String &strFile, FileInfo **ppInfo) const=0 |
Retrieves information about a file within the archive. More... | |
virtual bool | fileCopy (const String &strSrc, const String &strDest, bool bOverwrite)=0 |
Copies a file within the archive. More... | |
virtual bool | fileTest (const String &strFile) const=0 |
Tests wheter a file within the archive can be succesfully read. More... | |
virtual std::vector< String > | dirGetFiles (const String &strDir) const=0 |
Finds the names of all the files within a directory inside the archive. More... | |
virtual std::vector< String > | dirGetSubs (const String &strDir) const=0 |
Finds the names of all the subdirectories within a directory inside the archive. More... | |
virtual bool | dirDele (const String &strDir, bool bRecursive)=0 |
Deletes a directory from the archive. More... | |
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. 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 |
|
Default constructor.
|
|
Usual constructor - used by ArchiveManager.
|
|
Default destructor.
|
|
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.
|
|
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. |
|
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. |
|
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::Resource. Implemented in Ogre::Zip. |
|
'Touches' the resource to indicate it has been used.
|
|
Unloads the archive.
Reimplemented from Ogre::Resource. Implemented in Ogre::Zip. |
|
|
|
|
|
|
|
|
Copyright © 2002 by The OGRE Team