29 #ifndef _RASTER_FACTORYHH_
30 #define _RASTER_FACTORYHH_
62 typedef Raster* (*CreateRasterCallback)();
65 typedef std::map<string, CreateRasterCallback>
DriversMap;
78 bool registerDriver(
const string& driverId, CreateRasterCallback builder );
81 bool unregisterDriver(
const string& driverId );
86 Raster* create(
const string& source,
int categ = 0 );
92 Raster* create(
const string& output_file_source,
const string& source,
const MapFormat& format );
std::map< string, CreateRasterCallback > DriversMap
A common interface to rasters.
~RasterFactory()
No destructor allowed.
DriversMap _drivers
Map of Rasters and identifiers.