| 1 | #ifndef VERSION_H |
| 2 | #define VERSION_H |
| 3 | |
| 4 | namespace torali |
| 5 | { |
| 6 | |
| 7 | |
| 8 | std::string dellyVersionNumber = "1.7.2"; |
| 9 | |
| 10 | inline |
| 11 | void printTitle(std::string const& title) |
| 12 | { |
| 13 | std::cerr << "**********************************************************************" << std::endl; |
| 14 | std::cerr << "Program: Delly" << std::endl; |
| 15 | std::cerr << "This is free software, and you are welcome to redistribute it under" << std::endl; |
| 16 | std::cerr << "certain conditions (BSD License); for license details use '-l'." << std::endl; |
| 17 | std::cerr << "This program comes with ABSOLUTELY NO WARRANTY; for details use '-w'." << std::endl; |
| 18 | std::cerr << std::endl; |
| 19 | std::cerr << title << " (Version: " << dellyVersionNumber << ")" << std::endl; |
| 20 | std::cerr << "Contact: Tobias Rausch ([email protected])" << std::endl; |
| 21 | std::cerr << "**********************************************************************" << std::endl; |
| 22 | std::cerr << std::endl; |
| 23 | } |
| 24 | |
| 25 | inline |
| 26 | void displayWarranty() |
| 27 | { |
| 28 | std::cerr << "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, "; |
| 29 | std::cerr << "THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR "; |
| 30 | std::cerr << "CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, "; |
| 31 | std::cerr << "PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, "; |
| 32 | std::cerr << "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF "; |
| 33 | std::cerr << "ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." << std::endl; |
| 34 | std::cerr << std::endl; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | inline void |
| 39 | bsd() { |
| 40 | std::cerr << "Copyright (c) 2023 European Molecular Biology Laboratory (EMBL)." << std::endl; |
| 41 | std::cerr << "All rights reserved." << std::endl; |
| 42 | std::cerr << std::endl; |
| 43 | std::cerr << "Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:" << std::endl; |
| 44 | std::cerr << " 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer." << std::endl; |
| 45 | std::cerr << " 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution." << std::endl; |
| 46 | std::cerr << " 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission." << std::endl; |
| 47 | std::cerr << std::endl; |
| 48 | std::cerr << "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, "; |
| 49 | std::cerr << "THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR "; |
| 50 | std::cerr << "CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, "; |
| 51 | std::cerr << "PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, "; |
| 52 | std::cerr << "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF "; |
| 53 | std::cerr << "ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." << std::endl; |
| 54 | std::cerr << std::endl; |
| 55 | } |
| 56 | |
| 57 | |
| 58 | } |
| 59 | |
| 60 | #endif |