27 #include "../common/StringUtils.h" 
   28 #include "../common/Translator.h" 
   44   throw Exception(
TR_GRIB(
"Not implemented yet!"));
 
   50   throw Exception(
TR_GRIB(
"Not implemented yet!"));
 
   71                                                  const std::vector<te::rst::BandProperty*> bands,
 
   72                                                  const std::map<std::string, std::string>& rinfo,
 
   73                                                  void* h, 
void (*deleter)(
void*))
 
   75   std::auto_ptr<Raster> raster(
new Raster);
 
   77   raster->create(g, bands, rinfo, h, deleter);
 
   79   return raster.release();
 
   91   capabilities[
"supported_formats"] = 
"grib";
 
A raster class for GRIB format. 
 
static RasterFactory * sm_factory
 
#define GRIB_DRIVER_IDENTIFIER
The MyDriver driver identifier string. 
 
This is the concrete factory for GRIB. 
 
te::rst::Raster * create(te::rst::Grid *g, const std::vector< te::rst::BandProperty * > bands, const std::map< std::string, std::string > &rinfo, void *h=0, void(*deleter)(void *)=0)
This method must be implemented by subclasses (raster drivers). 
 
A rectified grid is the spatial support for raster data. 
 
static void finalize()
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the ...
 
void getCreationalParameters(std::vector< std::pair< std::string, std::string > > ¶ms) const 
It returns the list of parameters accepted as raster info. 
 
te::rst::Raster * build()
Concrete factories (derived from this one) must implement this method in order to create objects...
 
An exception class for GRIB. 
 
A raster class for GRIB format. 
 
const std::string & getType() const 
Returns the type (name) of this factory. 
 
std::map< std::string, std::string > getCapabilities() const 
It return a map (string, string) containing all supported formats. 
 
An abstract class for raster data strucutures. 
 
#define TR_GRIB(message)
It marks a string in order to get translated. This is a special mark used in the DataAccess module of...
 
~RasterFactory()
Destructor. 
 
This is the abstract factory for Rasters. 
 
te::da::DataSourceCapabilities capabilities
 
static void initialize()
It initializes the factory: the singleton instance will be registered in the abstract factory DataSou...