Fire Core  8.0.0.alpha
GIS framework per tutti gli usi
 Tutto Classi Namespace Funzioni Variabili Ridefinizioni di tipo (typedef) Tipi enumerati (enum) Valori del tipo enumerato Friend
DriverManager.hpp
1 // Copyright 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef DRIVERMANAGER_HPP_INCLUDED
5 #define DRIVERMANAGER_HPP_INCLUDED
6 
7 #include <gdal_priv.h>
8 
9 #include <string>
10 
11 #include "fire/plugin-impl/connection/rasterImpl/Driver.hpp"
12 #include "fire/source/raster/DriverType.hpp"
13 
14 #include "fire/plugin-impl/export.hpp"
15 
16 namespace fire {
17 namespace connection {
18 namespace rasterImpl {
19 
23 class FIRE_PLUGIN_DLL DriverManager {
24  public:
29  static DriverManager* getInstance();
34  size_t getDriverCount();
39  std::string getSupportedDrivers();
45  Driver* getDriver(unsigned int index);
51  Driver* getDriver(source::raster::DriverType::DriverType type);
55  ~DriverManager();
56 
57  protected:
61  DriverManager();
62 
63  private:
67  static DriverManager* _instance;
71  std::auto_ptr< GDALDriverManager > _gdaldrivermanager;
72 };
73 
74 
75 } // namespace rasterImpl
76 } // namespace connection
77 } // namespace fire
78 
79 #endif
Definition: Driver.hpp:19
Classe singleton per la gestione dei Driver del plugin.
Definition: DriverManager.hpp:23