00001 
00002 
00003 
00004 
00005 
00006 
00007 #ifndef SQLTABLEINFO_H
00008 #define SQLTABLEINFO_H
00009 
00010 #include <string>
00011 
00012 #include "DataTypes.h"
00013 #include "TableInfo.h"
00014 
00016 namespace SqlParser
00017 {
00018   const std::string TAGHEAD = "--/";
00019 
00021   void extractTable(const std::string& filename, const std::string& tablename,
00022                     TableInfo& att);
00023 
00028   void string2words(const std::string& str, StringMap& words);
00029 
00031   bool isAttrEntry(const std::string& word);
00032 
00035   bool isCreateTable(const std::string& w1,
00036                      const std::string& w2,
00037                      const std::string& w3,
00038                      const std::string& tablename);
00039 
00041   bool isEndOfTable(const std::string& word);
00042 
00044   bool isTag(const std::string& word);
00045 };
00046 
00047 #endif
00048