00001 #ifndef PSFA_DB_READ_DRIVER_MYSQL_HPP 00002 #define PSFA_DB_READ_DRIVER_MYSQL_HPP 00003 // Copyright (C) 2004 Bernhard Assmann <bernie@tuxomania.net> 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 // 00019 00020 #include "psfa/DbReadDriver.hpp" 00021 #include "psfa/DbDriverMySqlHelper.hpp" 00022 00023 namespace psfa 00024 { 00032 class DbReadDriverMySql : public DbReadDriver 00033 { 00034 public: 00035 DbReadDriverMySql(); 00036 00037 virtual ~DbReadDriverMySql(); 00038 00039 virtual void 00040 getPools( sVec& result ); 00041 00042 virtual void 00043 getSearchTags( std::string poolName, sVec& result ); 00044 00045 virtual void 00046 getKontextTags( std::string poolName, sVec& result ); 00047 00048 virtual void 00049 getUnits( std::string poolName, sVec& result ); 00050 00051 virtual void 00052 getFiles( std::string poolName, sVec& result ); 00053 00054 virtual void 00055 getUniqueContent( std::string poolName, sVec& result ); 00056 00057 virtual int 00058 getEntries( std::string poolName, 00059 SearchData& search, 00060 std::vector< IndexData_SP >& result ); 00061 private: 00062 DbDriverMySqlHelper myHelper_; 00063 }; 00064 00065 } 00066 #endif 00067 00068