| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeGDriverFactory.h
Go to the documentation of this file.

    00001 #ifndef _TEGDRIVERFACTORY_H
    00002 #define _TEGDRIVERFACTORY_H
    00003
    00004 // TerraLib
    00005 #include "TeAbstractFactory.h"
    00006 #include "TeGeoDataDriver.h"
    00007 #include "TeGeoFileInfo.h"
    00008
    00009 // STL
    00010 #include <string>
    00011 #include <vector>
    00012
    00013 using namespace std;
    00014
    00015 struct TL_DLL TeGDriverParams
    00016 {
    00017     TeGDriverParams(const string & fileType, const string & fileName);
    00018
    00019     string getProductId() const;
    00020     string fileType_;
    00021     string fileName_;
    00022     bool writing_;
    00023
    00024   private:
    00025
    00026     //No copy allowed.
    00027     TeGDriverParams(const TeGDriverParams & source);
    00028
    00029     //No copy allowed.
    00030     TeGDriverParams & operator=(const TeGDriverParams & source);
    00031 };
    00032
    00033 class TL_DLL TeGDriverFactory : public TeAbstractFactory<TeGeoDataDriver, TeGDriverParams, string>
    00034 {
    00035 public:
    00036
    00037            TeGDriverFactory(const string& facName);
    00038            virtual ~TeGDriverFactory();
    00039
    00040            static const std::vector<TeGeoFileInfo>& GetGeoFilesInfo();
    00041
    00042            static std::string FindFactory(const std::string& fileName);
    00043
    00044 protected:
    00045
    00046            virtual void loadGeoFilesInfo() = 0;
    00047
    00048            virtual bool acceptFile(const std::string& fileName);
    00049
    00050 protected:
    00051
    00052            static std::vector<TeGeoFileInfo> _geoFilesInfo;
    00053 };
    00054
    00055 #endif // _TEGDRIVERFACTORY_H

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines