A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
version.hpp
Go to the documentation of this file.
1 #ifndef GENESIS_UTILS_CORE_VERSION_H_
2 #define GENESIS_UTILS_CORE_VERSION_H_
3 
4 /*
5  Genesis - A toolkit for working with phylogenetic data.
6  Copyright (C) 2017-2018 Lucas Czech and HITS gGmbH
7 
8  This program is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <http://www.gnu.org/licenses/>.
20 
21  Contact:
22  Lucas Czech <lucas.czech@h-its.org>
23  Exelixis Lab, Heidelberg Institute for Theoretical Studies
24  Schloss-Wolfsbrunnenweg 35, D-69118 Heidelberg, Germany
25 */
26 
34 #include <string>
35 
42 namespace genesis {
43 
44 // =================================================================================================
45 // Genesis
46 // =================================================================================================
47 
62 inline std::string genesis_version()
63 {
64  // The following line is automatically replaced by the deploy scripts. Do not change manually.
65  return "v0.19.0"; // #GENESIS_VERSION#
66 }
67 
73 inline std::string genesis_version_name()
74 {
75  // The following line is automatically replaced by the deploy scripts. Do not change manually.
76  return "Not Available"; // #GENESIS_VERSION_NAME#
77 }
78 
82 inline std::string genesis_url()
83 {
84  return "http://genesis-lib.org";
85 }
86 
93 inline std::string genesis_header()
94 {
95  return "\
96  , \n\
97  __ __ __ __ __ __ \n\
98  / ) /___) / ) /___) (_ ` / (_ ` \n\
99  (___/ (___ / / (___ (__) / (__) \n\
100  __/______________________________ \n\
101  (__/ \n\
102  2014-2017 by Lucas Czech \n\
103  " + genesis_url() + "\n\
104  " + genesis_version() + "\n";
105 }
106 
113 inline std::string genesis_license()
114 {
115  return "\
116  Genesis - A toolkit for working with phylogenetic data.\n\
117  Copyright (C) 2014-2017 Lucas Czech\n\
118  \n\
119  This program is free software: you can redistribute it and/or modify\n\
120  it under the terms of the GNU General Public License as published by\n\
121  the Free Software Foundation, either version 3 of the License, or\n\
122  (at your option) any later version.\n\
123  \n\
124  This program is distributed in the hope that it will be useful,\n\
125  but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
126  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
127  GNU General Public License for more details.\n\
128  \n\
129  You should have received a copy of the GNU General Public License\n\
130  along with this program. If not, see <http://www.gnu.org/licenses/>.\n\
131  \n\
132  Contact:\n\
133  Lucas Czech <lucas.czech@h-its.org>\n\
134  Exelixis Lab, Heidelberg Institute for Theoretical Studies\n\
135  Schloss-Wolfsbrunnenweg 35, D-69118 Heidelberg, Germany\n";
136 }
137 
138 inline std::string ee(int r)
139 {
140  uint64_t x[4] = {1198840465960072866,1198609267608314688,1376216421886990656,1545107134173456};
141  std::string s; for(int i=0;i<(2*r)/3;++i) { s += (((x[(i/7)%4]/r)>>((i%7)*8))%256); } return s;
142 }
143 
144 } // namespace genesis
145 
146 #endif // include guard
std::string genesis_url()
Return the URL of the genesis home page.
Definition: version.hpp:82
std::string ee(int r)
Definition: version.hpp:138
std::string genesis_version_name()
Return the current genenis version name.
Definition: version.hpp:73
std::string genesis_license()
Return the genesis license boilerplate information.
Definition: version.hpp:113
std::string genesis_header()
Return the header for genesis.
Definition: version.hpp:93
std::string genesis_version()
Return the current genesis version.
Definition: version.hpp:62