From 44495a6a04824706d57f3782fa3b491b7b0c1f00 Mon Sep 17 00:00:00 2001 From: Anurag Ghosh Date: Mon, 16 Mar 2015 20:32:06 +0530 Subject: [PATCH] Boost License Added. --- LICENSE_1_0.txt | 23 +++++++++++++++++++++++ detail/document_exception.hpp | 5 +++++ detail/document_file_format.hpp | 5 +++++ detail/oo_functions.cpp | 5 +++++ detail/oo_functions.hpp | 5 +++++ document.cpp | 5 +++++ document.hpp | 5 +++++ test.cpp | 12 ++++++++++++ 8 files changed, 65 insertions(+) create mode 100644 LICENSE_1_0.txt diff --git a/LICENSE_1_0.txt b/LICENSE_1_0.txt new file mode 100644 index 0000000..36b7cd9 --- /dev/null +++ b/LICENSE_1_0.txt @@ -0,0 +1,23 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +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, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/detail/document_exception.hpp b/detail/document_exception.hpp index 762c7bf..2816ee6 100644 --- a/detail/document_exception.hpp +++ b/detail/document_exception.hpp @@ -1,6 +1,11 @@ #ifndef _DOCUMENT_EXCEPTION_HPP #define _DOCUMENT_EXCEPTION_HPP +// Copyright Anurag Ghosh 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file ../LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + namespace boost { class document_exception : public std::logic_error { diff --git a/detail/document_file_format.hpp b/detail/document_file_format.hpp index b9a6e4f..741c863 100644 --- a/detail/document_file_format.hpp +++ b/detail/document_file_format.hpp @@ -1,6 +1,11 @@ #ifndef _DOCUMENT_FILE_FORMAT_HPP #define _DOCUMENT_FILE_FORMAT_HPP +// Copyright Anurag Ghosh 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file ../LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + namespace boost { struct document_file_format { diff --git a/detail/oo_functions.cpp b/detail/oo_functions.cpp index 24258d5..eae7ab9 100644 --- a/detail/oo_functions.cpp +++ b/detail/oo_functions.cpp @@ -1,6 +1,11 @@ #ifndef _OO_FUNCTIONS_CPP #define _OO_FUNCTIONS_CPP +// Copyright Anurag Ghosh 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file ../LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + #ifdef _WIN32 #define OFFAPI "C:\\Program Files\\OpenOffice.org 3\\basis\\program\\offapi.rdb" #elif _WIN64 diff --git a/detail/oo_functions.hpp b/detail/oo_functions.hpp index 2bd819d..e397de7 100644 --- a/detail/oo_functions.hpp +++ b/detail/oo_functions.hpp @@ -1,6 +1,11 @@ #ifndef _OO_FUNCTIONS_HPP #define _OO_FUNCTIONS_HPP +// Copyright Anurag Ghosh 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file ../LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + #include #include #include diff --git a/document.cpp b/document.cpp index 17aedf7..7a72595 100644 --- a/document.cpp +++ b/document.cpp @@ -1,6 +1,11 @@ #ifndef _DOCUMENT_CPP #define _DOCUMENT_CPP +// Copyright Anurag Ghosh 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + #include "document.hpp" #include "detail/oo_functions.hpp" diff --git a/document.hpp b/document.hpp index 9a1a162..5049790 100644 --- a/document.hpp +++ b/document.hpp @@ -1,6 +1,11 @@ #ifndef _DOCUMENT_HPP #define _DOCUMENT_HPP +// Copyright Anurag Ghosh 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + #include #include "detail/document_exception.hpp" #include "detail/document_file_format.hpp" diff --git a/test.cpp b/test.cpp index fb187bf..f6956f1 100644 --- a/test.cpp +++ b/test.cpp @@ -1,3 +1,11 @@ +#ifndef _TEST_CPP +#define _TEST_CPP + +// Copyright Anurag Ghosh 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + #include #include "document.hpp" @@ -104,6 +112,7 @@ int main(int argc, char **argv) { // Sanity Checks negative_try_opening_null(); + negative_try_exporting_null(); negative_try_closing_null(); negative_closing_unopened_document(b); negative_absurd_path_opening(); @@ -111,9 +120,12 @@ int main(int argc, char **argv) { // Permissions related checks negative_opening_file_without_permission(d); negative_exporting_file_without_permission(d); + negative_closing_file_without_permission(d); // Positive Checks. working_on_multiple_documents(b,c); return 0; } + +#endif \ No newline at end of file