Abstract factory class, archive codec plugins can register concrete subclasses of this.
More...
#include <OgreArchiveFactory.h>
Abstract factory class, archive codec plugins can register concrete subclasses of this.
- So archive plugins create a subclass of Archive AND a subclass of ArchiveFactory which creates instances of the Archive subclass. See the 'Zip' and 'FileSystem' plugins for examples. Each Archive and ArchiveFactory subclass pair deal with a single archive type (identified by a string).
◆ ~ArchiveFactory()
virtual Ogre::ArchiveFactory::~ArchiveFactory |
( |
| ) |
|
|
inlinevirtual |
◆ createInstance() [1/2]
virtual Archive* Ogre::ArchiveFactory::createInstance |
( |
const String & |
name, |
|
|
bool |
readOnly |
|
) |
| |
|
pure virtual |
◆ createInstance() [2/2]
virtual Archive* Ogre::ArchiveFactory::createInstance |
( |
const String & |
name | ) |
|
|
inlinevirtual |
Creates a new object.
- Parameters
-
name | Name of the object to create |
- Returns
- An object created by the factory. The type of the object depends on the factory.
Implements Ogre::FactoryObj< Archive >.
◆ getType()
◆ destroyInstance()
The documentation for this class was generated from the following file: