A library for working with phylogenetic and population genetic data.
v0.32.0
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-2024 Lucas Czech
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 <lczech@carnegiescience.edu>
23  Department of Plant Biology, Carnegie Institution For Science
24  260 Panama Street, Stanford, CA 94305, USA
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.32.0"; // #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 "Matter"; // #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-2024 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-2024 Lucas Czech\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 <lczech@carnegiescience.edu>\n\
135  Department of Plant Biology, Carnegie Institution For Science\n\
136  260 Panama Street, Stanford, CA 94305, USA\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
genesis::genesis_url
std::string genesis_url()
Return the URL of the genesis home page.
Definition: version.hpp:83
genesis::genesis_version_name
std::string genesis_version_name()
Return the current genenis version name.
Definition: version.hpp:74
genesis::ee
std::string ee(int r)
Definition: version.hpp:139
genesis
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Definition: placement/formats/edge_color.cpp:42
genesis::genesis_license
std::string genesis_license()
Return the genesis license boilerplate information.
Definition: version.hpp:114
genesis::genesis_header
std::string genesis_header()
Return the header for genesis.
Definition: version.hpp:94
genesis::genesis_version
std::string genesis_version()
Return the current genesis version.
Definition: version.hpp:63