openModeller  Version 1.5.0
TeStringParser.hh
Go to the documentation of this file.
1 
30 #ifndef __TE_STRING_PASRSER_H
31 #define __TE_STRING_PASRSER_H
32 
33 #include <TeDatabaseFactoryParams.h>
34 
35 #include <string>
36 using std::string;
37 
44 class TeStringParser : public TeDatabaseFactoryParams
45 {
46 public:
48 
49  TeStringParser( const string& str ) : str_(str)
50  {
51  isValid_ = parse();
52  }
53 
55  bool parse();
56 
58  bool isValid() { return isValid_; }
59 
61  string str_;
63  string layerName_;
65  string tableName_;
67  string columnName_;
68 
69 private:
70  bool isValid_;
71 };
72 
73 #endif
bool isValid()
If true if the string is valid, false otherwise.
TeStringParser(const string &str)
string columnName_
Column Name (Species)
bool parse()
Parser the url.
string str_
Terralib string.
string tableName_
Table Name (Species)
string layerName_
Layer in Database.