1 #ifndef __EA4_STORAGE_RAW_DATA_READER_REGISTRY_H
2 #define __EA4_STORAGE_RAW_DATA_READER_REGISTRY_H
4 #include "storage/RawDataReader.h"
6 namespace ea4 {
namespace storage {
44 std::map<std::string, RawDataReaderFactory*> factories;
RawDataReaderFactory * getFactory(const std::string &filename)
Returns a factory for the specified file.
Reads data from storage.
Definition: DataReader.h:23
void setFactory(const std::string &ext, RawDataReaderFactory *factory)
Registers a factory with the specified file extension.
static RawDataReaderRegistry * getInstance()
Returns singleteton.
Private Data of RawDataReader.
Definition: RawDataReader.h:63
Base interface for the archiver's indices.
Definition: Index.h:16
Registry the format-specific factories.
Definition: RawDataReaderRegistry.h:22
Basic class of the format-specific factories of RawDataReaders.
Definition: RawDataReaderRegistry.h:11
virtual DataReader * createReader(Index &index, RawDataReader::PrvData *prvData)=0
factory method