SpikeStream Library  0.2
DatabaseDao.h
Go to the documentation of this file.
00001 #ifndef DATABASEDAO_H
00002 #define DATABASEDAO_H
00003 
00004 //SpikeStream includes
00005 #include "AbstractDao.h"
00006 using namespace spikestream;
00007 
00008 //Qt includes
00009 #include <QList>
00010 #include <QString>
00011 
00012 namespace spikestream{
00013 
00015         class DatabaseDao : public AbstractDao {
00016                 public:
00017                         DatabaseDao(const DBInfo& dbInfo);
00018                         DatabaseDao();
00019                         virtual ~DatabaseDao();
00020                         void connectToDatabase(const DBInfo& dbInfo);
00021                         using AbstractDao::connectToDatabase;
00022                         void executeSQLFile(const QString& fileName);
00023                         void executeSQLFile(const QString& dbName, const QString& fileName);
00024                         QList<QString> getDatabaseNames();
00025 
00026 
00027                 private:
00028                         //==========================  VARIABLES  ==========================
00029 
00030                         //===========================  METHODS  ===========================
00031                         void loadFileIntoString(QFile& file, QString& fileString);
00032 
00033         };
00034 
00035 }
00036 
00037 #endif//DATABASEDAO_H
00038 
00039 
 All Classes Files Functions Variables Typedefs Defines