OGRE-Next
3.0.0
Object-Oriented Graphics Rendering Engine
|
Abstract factory class, archive codec plugins can register concrete subclasses of this. More...
#include <OgreArchiveFactory.h>
Public Member Functions | |
~ArchiveFactory () override | |
virtual void | convertPath (String &inOutPath) const |
Some implementations (i.e. More... | |
Archive * | createInstance (const String &name) override |
Creates a new object. More... | |
virtual Archive * | createInstance (const String &name, bool readOnly)=0 |
Creates a new object. More... | |
Public Member Functions inherited from Ogre::FactoryObj< Archive > | |
virtual | ~FactoryObj () |
virtual void | destroyInstance (Archive *ptr)=0 |
Destroys an object which was created by this factory. More... | |
virtual const String & | getType () const=0 |
Returns the factory type. More... | |
Abstract factory class, archive codec plugins can register concrete subclasses of this.
|
inlineoverride |
|
inlinevirtual |
Some implementations (i.e.
APKFileSystemArchive) usually modify the filename. For example in APKFileSystemArchive, "/path/to/localfile.mesh" gets internally stored as "path/to/localfile.mesh" (no leading slash), but across the platform the leading slash is required. The ArchiveManager needs to be aware of this.
inOutPath | Given the input path, converts it to the final path. |
Reimplemented in Ogre::APKZipArchiveFactory, and Ogre::APKFileSystemArchiveFactory.
Creates a new object.
name | Name of the object to create |
Implements Ogre::FactoryObj< Archive >.
References createInstance().
Referenced by createInstance().
|
pure virtual |
Creates a new object.
name | Name of the object to create |
Implemented in Ogre::EmbeddedZipArchiveFactory, Ogre::ZipArchiveFactory, Ogre::FileSystemArchiveFactory, Ogre::APKZipArchiveFactory, and Ogre::APKFileSystemArchiveFactory.