openModeller  Version 1.4.0
TeStringParser.hh
Go to the documentation of this file.
00001 
00030 #ifndef  __TE_STRING_PASRSER_H
00031 #define  __TE_STRING_PASRSER_H
00032 
00033 #include <TeDatabaseFactoryParams.h>
00034 
00035 #include <string>
00036 using std::string;
00037 
00044 class TeStringParser : public TeDatabaseFactoryParams
00045 {
00046 public:
00047   TeStringParser() {}
00048 
00049   TeStringParser( const string& str ) : str_(str)
00050   {
00051     isValid_ = parse();
00052   }
00053 
00055   bool parse();
00056     
00058   bool isValid() { return isValid_; }
00059 
00061   string str_;
00063   string layerName_;
00065   string tableName_;
00067   string columnName_;
00068 
00069 private:
00070     bool isValid_;
00071 };
00072 
00073 #endif