openModeller  Version 1.5.0
TeOccurrences.hh
Go to the documentation of this file.
1 
30 #ifndef _TE_OCCURRENCES_FILEHH_
31 #define _TE_OCCURRENCES_FILEHH_
32 
33 #include <openmodeller/om_defs.hh>
34 
37 
38 class TeStringParser;
39 class TeDatabase;
40 
41 #include <vector>
42 #include <string>
43 using std::string;
44 
46 
61 class dllexp TeOccurrences : public OccurrencesReader
62 {
63 public:
64 
68  static OccurrencesReader* CreateOccurrencesReaderCallback( const char * source, const char * coordSystem );
69 
74  TeOccurrences( const char * source, const char * coordSystem );
75 
79  ~TeOccurrences();
80 
83  bool load();
84 
85 private:
86 
87  // Indicates if occurrences were already loaded.
88  bool _loaded;
89 
90  // Pointer to database connection.
91  TeDatabase * _db;
92 
93  // TerraLib string parser.
95 };
96 
97 #endif
TeStringParser * _te_str_parser
TeDatabase * _db
virtual bool load()=0
Read occurrences data of one or more group from a TeTable in a TeDataBase.