Cleaning of include dependencies

This commit is contained in:
Sébastien Rombauts 2013-04-07 18:16:31 +02:00
parent 833aeead7a
commit 1f55ddbbdb
7 changed files with 55 additions and 48 deletions

View File

@ -12,9 +12,11 @@
#include "Statement.h"
namespace SQLite
{
// Open the provided database UTF-8 filename with SQLITE_OPEN_xxx provided flags.
Database::Database(const char* apFilename, const int aFlags /*= SQLITE_OPEN_READONLY*/) : // throw(SQLite::Exception)
mpSQLite(NULL),
@ -80,4 +82,5 @@ void Database::check(const int aRet) const // throw(SQLite::Exception)
}
}
} // namespace SQLite

View File

@ -11,12 +11,14 @@
#pragma once
#include <sqlite3.h>
#include "Exception.h"
#include "Column.h"
namespace SQLite
{
/**
* @brief RAII management of a SQLite Database Connection.
*

View File

@ -33,6 +33,7 @@
namespace SQLite
{
/**
* @brief Encapsulation of the error message from SQLite3, based on std::runtime_error.
*/

View File

@ -17,9 +17,6 @@
#pragma once
// SQLiteC++.h requires sqlite3, and the corresponding library header
#include <sqlite3.h>
// Include useful headers of SQLiteC++
#include "Exception.h"
#include "Database.h"

View File

@ -11,11 +11,13 @@
#pragma once
#include <sqlite3.h>
#include "Exception.h"
#include <string>
namespace SQLite
{
// Forward declaration
class Database;
class Column;
@ -310,4 +312,5 @@ private:
bool mbDone; //!< true when the last executeStep() had no more row to fetch
};
} // namespace SQLite

View File

@ -12,9 +12,11 @@
#include "Database.h"
namespace SQLite
{
// Begins the SQLite transaction
Transaction::Transaction(Database& aDatabase) : // throw(SQLite::Exception)
mDatabase(aDatabase),

View File

@ -10,12 +10,11 @@
*/
#pragma once
#include <sqlite3.h>
#include "Exception.h"
namespace SQLite
{
// Forward declaration
class Database;