A toolkit for working with phylogenetic data.
v0.22.1
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) 2014-2019 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 <cstdint>
35 #include <string>
36 
43 namespace genesis {
44 
45 // =================================================================================================
46 // Genesis
47 // =================================================================================================
48 
63 inline std::string genesis_version()
64 {
65  // The following line is automatically replaced by the deploy scripts. Do not change manually.
66  return "v0.22.1"; // #GENESIS_VERSION#
67 }
68 
74 inline std::string genesis_version_name()
75 {
76  // The following line is automatically replaced by the deploy scripts. Do not change manually.
77  return "Alternate Histories"; // #GENESIS_VERSION_NAME#
78 }
79 
83 inline std::string genesis_url()
84 {
85  return "http://genesis-lib.org";
86 }
87 
94 inline std::string genesis_header()
95 {
96  return "\
97  , \n\
98  __ __ __ __ __ __ \n\
99  / ) /___) / ) /___) (_ ` / (_ ` \n\
100  (___/ (___ / / (___ (__) / (__) \n\
101  __/______________________________ \n\
102  (__/ \n\
103  2014-2019 by Lucas Czech \n\
104  " + genesis_url() + "\n\
105  " + genesis_version() + "\n";
106 }
107 
114 inline std::string genesis_license()
115 {
116  return "\
117  Genesis - A toolkit for working with phylogenetic data.\n\
118  Copyright (C) 2014-2019 Lucas Czech and HITS gGmbH\n\
119  \n\
120  This program is free software: you can redistribute it and/or modify\n\
121  it under the terms of the GNU General Public License as published by\n\
122  the Free Software Foundation, either version 3 of the License, or\n\
123  (at your option) any later version.\n\
124  \n\
125  This program is distributed in the hope that it will be useful,\n\
126  but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
127  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
128  GNU General Public License for more details.\n\
129  \n\
130  You should have received a copy of the GNU General Public License\n\
131  along with this program. If not, see <http://www.gnu.org/licenses/>.\n\
132  \n\
133  Contact:\n\
134  Lucas Czech <lucas.czech@h-its.org>\n\
135  Exelixis Lab, Heidelberg Institute for Theoretical Studies\n\
136  Schloss-Wolfsbrunnenweg 35, D-69118 Heidelberg, Germany\n";
137 }
138 
139 inline std::string ee(int r)
140 {
141  uint64_t x[4] = {1198840465960072866,1198609267608314688,1376216421886990656,1545107134173456};
142  std::string s; for(int i=0;i<(2*r)/3;++i) { s += (((x[(i/7)%4]/r)>>((i%7)*8))%256); } return s;
143 }
144 
145 } // namespace genesis
146 
147 #endif // include guard
std::string genesis_url()
Return the URL of the genesis home page.
Definition: version.hpp:83
std::string ee(int r)
Definition: version.hpp:139
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
std::string genesis_version_name()
Return the current genenis version name.
Definition: version.hpp:74
std::string genesis_license()
Return the genesis license boilerplate information.
Definition: version.hpp:114
std::string genesis_header()
Return the header for genesis.
Definition: version.hpp:94
std::string genesis_version()
Return the current genesis version.
Definition: version.hpp:63