28#ifndef _ArchiveManager_H__
29#define _ArchiveManager_H__
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Abstract factory class, archive codec plugins can register concrete subclasses of this.
This class manages the available ArchiveFactory plugins.
void unload(const String &filename)
Unloads an archive by name.
virtual ~ArchiveManager()
Default destructor.
map< String, ArchiveFactory * >::type ArchiveFactoryMap
static ArchiveManager * getSingletonPtr(void)
Override standard Singleton retrieval.
ArchiveManager()
Default constructor - should never get called by a client app.
static ArchiveManager & getSingleton(void)
Override standard Singleton retrieval.
MapIterator< ArchiveMap > ArchiveMapIterator
map< String, Archive * >::type ArchiveMap
Currently loaded archives.
void addArchiveFactory(ArchiveFactory *factory)
Adds a new ArchiveFactory to the list of available factories.
ArchiveMapIterator getArchiveIterator(void)
Get an iterator over the Archives in this Manager.
ArchiveFactoryMap mArchFactories
Factories available to create archives, indexed by archive type (String identifier e....
Archive * load(const String &filename, const String &archiveType, bool readOnly)
Opens an archive for file reading.
void unload(Archive *arch)
Unloads an archive.
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
Template class for creating single-instance global classes.