From 30562dcdab59a385e083409d685102333f10e9b7 Mon Sep 17 00:00:00 2001 From: Sebastien Rombauts Date: Sat, 31 Mar 2012 13:21:46 +0200 Subject: [PATCH] Cleanups tasks : - MIT License file and header - small README - Renaming to SQLiteC++ --- LICENSE.txt | 18 ++++++++++++++++++ README.txt | 17 +++++++++++++++++ example1.sln => SQLiteC++.sln | 0 example1.vcproj | 4 ++-- src/{sqlite.hpp => SQLiteC++/SQLiteC++.h} | 12 +++++++++++- src/example1/main.cpp | 3 +-- 6 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 LICENSE.txt create mode 100644 README.txt rename example1.sln => SQLiteC++.sln (100%) rename src/{sqlite.hpp => SQLiteC++/SQLiteC++.h} (94%) diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..dd11777 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,18 @@ +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..b758ab9 --- /dev/null +++ b/README.txt @@ -0,0 +1,17 @@ +SQLiteC++ is a smart and simple C++ SQLite3 wrapper, easy to use and efficient. + +It is designed with the Resource Acquisition Is Initialization (RAII) idom +(see http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization). +Thus Each SQLiteC++ object must be constructed with a valid SQLite database connexion. + +For other simple C++ SQLite wrappers look also at: +- sqdbcpp also using RAII (http://code.google.com/p/sqdbcpp/) +- CppSQLite (http://www.codeproject.com/Articles/6343/CppSQLite-C-Wrapper-for-SQLite + or fork at https://github.com/NeoSmart/CppSQLite) +- sqlite3pp (http://code.google.com/p/sqlite3pp/) +- SQLite++ (http://sqlitepp.berlios.de/) + +Copyright (c) 2012 Sebastien Rombauts (sebastien dot rombauts at gmail dot com) + +Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +or copy at http://opensource.org/licenses/MIT) diff --git a/example1.sln b/SQLiteC++.sln similarity index 100% rename from example1.sln rename to SQLiteC++.sln diff --git a/example1.vcproj b/example1.vcproj index 680facf..8e13611 100644 --- a/example1.vcproj +++ b/example1.vcproj @@ -181,12 +181,12 @@ diff --git a/src/sqlite.hpp b/src/SQLiteC++/SQLiteC++.h similarity index 94% rename from src/sqlite.hpp rename to src/SQLiteC++/SQLiteC++.h index 12c02a4..3fd6082 100644 --- a/src/sqlite.hpp +++ b/src/SQLiteC++/SQLiteC++.h @@ -1,7 +1,17 @@ +/** + * @brief SQLiteC++ is a smart and simple C++ SQLite3 wrapper. + * + * Copyright (c) 2012 Sebastien Rombauts (sebastien dot rombauts at gmail dot com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#pragma once + #include #include #include -#include +#include namespace SQLite { diff --git a/src/example1/main.cpp b/src/example1/main.cpp index 0bae5ce..c7b6bb7 100644 --- a/src/example1/main.cpp +++ b/src/example1/main.cpp @@ -1,6 +1,5 @@ #include -#include "../sqlite.hpp" - +#include "../SQLiteC++/SQLiteC++.h" int main (void) {