OpenMining  0.01
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Database.h
Go to the documentation of this file.
1 /*
2  Copyright 2014 Daniel McInnes
3 
4  This file is part of OpenMining.
5 
6  OpenMining is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OpenMining is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OpenMining. If not, see <http://www.gnu.org/licenses/>.
18 
19 */
20 
21 #ifndef DATABASE_H
22 #define DATABASE_H
23 
24 // standard library #includes
25 #include <iostream>
26 
27 // Qt #includes
28 #include <QtSql/qsqldatabase.h>
29 #include <QStringList>
30 
31 // my includes
32 
33 
34 class Database
35 {
36 public:
37  Database(const QStringList& args);
39  QSqlDatabase m_db;
40 
41 private:
42 /*
43 configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
44 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
45 their locations. Source code for these libraries can be found at
46 their respective hosting sites as well as at
47 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
48 http://gcc.gnu.org/install/prerequisites.html for additional info. If
49 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
50 make sure that you have installed both the libraries and the header
51 files. They may be located in separate packages.
52 
53 apt-get install lib32gmp-dev libmpfr-dev libmpc-dev gcc-multilib
54 */
56  std::vector<std::string> m_requiredArgs = { "-host", "-database", "-username", "-password" };
57 };
58 
59 #endif
std::vector< std::string > m_requiredArgs
Definition: Database.h:56
Definition: Database.h:34
bool m_initialised
Definition: Database.h:38
QSqlDatabase m_db
Definition: Database.h:39
Database(const QStringList &args)
Definition: Database.cpp:41