This is the abstract factory for Rasters. More...
#include <RasterFactory.h>
  
 Public Types | |
| typedef FactoryDictionary< AbstractFactory< Raster, std::string, std::less< std::string > >, std::string, std::less< std::string > > | dictionary_type | 
| typedef AbstractFactory | factory_type | 
Public Member Functions | |
| std::map< std::string, std::string > | getCapabilities () const | 
| It returns a map<string, string> containing all supported formats.  More... | |
| void | getCreationalParameters (std::vector< std::pair< std::string, std::string > > ¶ms) const | 
| It returns the list of parameters accepted as raster info.  More... | |
| const std::string & | getKey () const | 
| It returns the factory key associated to the concreate factory.  More... | |
| const std::string & | getType () const | 
| Returns the type (name) of this factory.  More... | |
| ~RasterFactory () | |
| Destructor.  More... | |
Static Public Member Functions | |
| static const factory_type * | find (const std::string &factoryKey) | 
| static dictionary_type & | getDictionary () | 
| It returns a reference to the internal dictionary of concrete factories.  More... | |
| static Raster * | make () | 
| It creates and returns an empty raster with default raster driver.  More... | |
| static Raster * | make (const std::string &rType) | 
| It creates an empty raster with the proper driver.  More... | |
| static Raster * | make (Grid *g, const std::vector< BandProperty * > bands, const std::map< std::string, std::string > &rinfo, void *h=0, void(*deleter)(void *)=0) | 
| It creates a raster with the given parameters using the default raster driver.  More... | |
| static Raster * | make (const std::string &rType, Grid *g, const std::vector< BandProperty * > bands, const std::map< std::string, std::string > &rinfo, void *h=0, void(*deleter)(void *)=0) | 
| It creates a raster with the given parameters using a proper driver.  More... | |
| static Raster * | make (const std::map< std::string, std::string > &rinfo, void *h=0, void(*deleter)(void *)=0) | 
| It creates a raster with the given parameters using the default driver.  More... | |
| static Raster * | make (const std::string &rType, const std::map< std::string, std::string > &rinfo, void *h, void(*deleter)(void *)=0) | 
| It creates a raster with the given parameters using a proper driver.  More... | |
| static Raster * | open (const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess) | 
| It opens a raster with the given parameters and default raster driver.  More... | |
| static Raster * | open (const std::string &rType, const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess) | 
| It creates a raster with the given parameters.  More... | |
| static Raster * | open (const std::string &key, const std::string &value, te::common::AccessPolicy p=te::common::RAccess) | 
| It creates a raster with the given parameters and default raster driver.  More... | |
| static Raster * | open (const std::string &rType, const std::string &key, const std::string &value, te::common::AccessPolicy p=te::common::RAccess) | 
| It creates a raster with the given parameters.  More... | |
Protected Member Functions | |
| te::rst::Raster * | build () | 
| Concrete factories (derived from this one) must implement this method in order to create objects.  More... | |
| 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).  More... | |
| virtual Raster * | iOpen (const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess) | 
| This method may be re-implemented by subclasses in order to have a finner control for the raster object instantiation.  More... | |
| RasterFactory () | |
Protected Attributes | |
| std::string | m_factoryKey | 
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.  More... | |
Static Private Attributes | |
| static RasterFactory | sm_factory | 
This is the abstract factory for Rasters.
Definition at line 44 of file RasterFactory.h.
      
  | 
  inherited | 
Definition at line 73 of file AbstractFactory.h.
      
  | 
  inherited | 
Definition at line 77 of file AbstractFactory.h.
      
  | 
  virtual | 
Destructor.
Reimplemented from te::rst::RasterFactory.
      
  | 
  protected | 
      
  | 
  protectedvirtual | 
Concrete factories (derived from this one) must implement this method in order to create objects.
Implements te::common::AbstractFactory< Raster, std::string >.
      
  | 
  protectedvirtual | 
This method must be implemented by subclasses (raster drivers).
| g | The raster grid. May be a NULL parameter. Implementations must take its ownership. | 
| bands | A vector of band properties, one for each band. Implementations must take ownership of the pointers in this vector. | 
| rinfo | The necessary information to create the raster. | 
| h | It may be any specific value for a given driver. May be a NULL parameter. | 
| deleter | A pointer to a deleter function used to free the memory pointed by h. May be a NULL parameter. Implementations must use this method when it doesn't use 'h' anymore. | 
Implements te::rst::RasterFactory.
      
  | 
  staticinherited | 
      
  | 
  virtual | 
It returns a map<string, string> containing all supported formats.
Implements te::rst::RasterFactory.
      
  | 
  virtual | 
It returns the list of parameters accepted as raster info.
Implements te::rst::RasterFactory.
      
  | 
  staticinherited | 
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
      
  | 
  inherited | 
It returns the factory key associated to the concreate factory.
      
  | 
  virtual | 
Returns the type (name) of this factory.
Implements te::rst::RasterFactory.
      
  | 
  protectedvirtualinherited | 
This method may be re-implemented by subclasses in order to have a finner control for the raster object instantiation.
| rinfo | The necessary information to open the raster. | 
| p | The access policy. | 
      
  | 
  staticinherited | 
It creates and returns an empty raster with default raster driver.
Referenced by te::rp::CreateRasterFileFromMatrix().
      
  | 
  staticinherited | 
It creates an empty raster with the proper driver.
| rType | The name of the specific driver to be used to create the raster. | 
      
  | 
  staticinherited | 
It creates a raster with the given parameters using the default raster driver.
| g | The raster grid. The factory will take its ownership. | 
| bands | A vector of band properties with one property for each band. The factory will take the ownership of all properties. | 
| rinfo | The necessary information to create the raster. | 
| h | It may be any specific value for a given driver. | 
| deleter | A pointer to a deleter function used to free the memory pointed by h. | 
      
  | 
  staticinherited | 
It creates a raster with the given parameters using a proper driver.
| rType | The name of the specific driver to create the raster. | 
| g | The raster grid. The factory will take its ownership. | 
| bands | A vector of band properties, one property for each band. The factory will take the ownership of all properties. | 
| rinfo | The necessary information to create the raster. | 
| h | It may be any specific value for a given driver. | 
| deleter | A pointer to a deleter function used to free the memory pointed by h. | 
      
  | 
  staticinherited | 
It creates a raster with the given parameters using the default driver.
| rinfo | The necessary information to create the raster. | 
| h | It may be any specific value for a given driver. | 
| deleter | A pointer to a deleter function used to free the memory pointed by h. | 
      
  | 
  staticinherited | 
It creates a raster with the given parameters using a proper driver.
| rType | The name of the specific driver to create the raster. | 
| rinfo | The necessary information to create the raster. | 
| h | It may be any specific value for a given driver. | 
| deleter | A pointer to a deleter function used to free the memory pointed by h. | 
      
  | 
  staticinherited | 
It opens a raster with the given parameters and default raster driver.
| rinfo | The necessary information to open the raster. | 
| p | The access policy. | 
      
  | 
  staticinherited | 
It creates a raster with the given parameters.
| rType | The name of the specific driver to create the raster. | 
| rinfo | The necessary information to open the raster. | 
| p | The access policy. | 
      
  | 
  staticinherited | 
It creates a raster with the given parameters and default raster driver.
| key | The name of the key used to define raster location, ex.: "URI". | 
| value | The value of the key to define raster location, ex.: "/path/to/raster.tif". | 
| p | The access policy. | 
      
  | 
  staticinherited | 
It creates a raster with the given parameters.
| rType | The name of the specific driver to create the raster. | 
| key | The name of the key used to define raster location, ex.: "URI". | 
| value | The value of the key to define raster location, ex.: "/path/to/raster.tif". | 
| p | The access policy. | 
      
  | 
  protectedinherited | 
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
Definition at line 136 of file AbstractFactory.h.
      
  | 
  staticprivate | 
Definition at line 66 of file RasterFactory.h.