openModeller
Version 1.4.0
|
00001 00030 #ifndef _TE_OCCURRENCES_FILEHH_ 00031 #define _TE_OCCURRENCES_FILEHH_ 00032 00033 #include <openmodeller/om_defs.hh> 00034 00035 #include <openmodeller/occ_io/OccurrencesReader.hh> 00036 #include <openmodeller/Occurrences.hh> 00037 00038 class TeStringParser; 00039 class TeDatabase; 00040 00041 #include <vector> 00042 #include <string> 00043 using std::string; 00044 00046 00061 class dllexp TeOccurrences : public OccurrencesReader 00062 { 00063 public: 00064 00068 static OccurrencesReader* CreateOccurrencesReaderCallback( const char * source, const char * coordSystem ); 00069 00074 TeOccurrences( const char * source, const char * coordSystem ); 00075 00079 ~TeOccurrences(); 00080 00083 bool load(); 00084 00085 private: 00086 00087 // Indicates if occurrences were already loaded. 00088 bool _loaded; 00089 00090 // Pointer to database connection. 00091 TeDatabase * _db; 00092 00093 // TerraLib string parser. 00094 TeStringParser * _te_str_parser; 00095 }; 00096 00097 #endif