Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
AurynVersion.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright 2014-2018 Friedemann Zenke
4 *
5 * This file is part of Auryn, a simulation package for plastic
6 * spiking neural networks.
7 *
8 * Auryn 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 * Auryn 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 Auryn. If not, see <http://www.gnu.org/licenses/>.
20 *
21 * If you are using Auryn or parts of it for your work please cite:
22 * Zenke, F. and Gerstner, W., 2014. Limits to high-speed simulations
23 * of spiking neural networks using general-purpose computers.
24 * Front Neuroinform 8, 76. doi: 10.3389/fninf.2014.00076
25 */
26 
27 #ifndef AURYNVERSION_H_
28 #define AURYNVERSION_H_
29 
30 #include <string>
31 #include <iostream>
32 #include "auryn_definitions.h"
33 
34 namespace auryn {
35 
37  class AurynVersion {
38  public:
39  static int version;
40  static int subversion;
41  static int revision_number;
46 
48  virtual ~AurynVersion() {};
49 
51  {
52  std::stringstream oss;
53  oss << version
54  << "."
55  << subversion;
56 
57  if ( revision_number ) {
58  oss << "."
59  << revision_number;
60  }
61 
62  oss << revision_suffix;
63 
64  return oss.str();
65  }
66  };
67 
68 }
69 
70 
71 #endif /*AURYNVERSION_H_*/
std::string get_version_string()
Definition: AurynVersion.h:50
static std::string revision_suffix
Definition: AurynVersion.h:44
Container class providing Auryn version number.
Definition: AurynVersion.h:37
virtual ~AurynVersion()
Definition: AurynVersion.h:48
static AurynState tag_binary_state_monitor
file signature for BinaryStateMonitor files
Definition: AurynVersion.h:43
AurynVersion()
Definition: AurynVersion.h:47
static int revision_number
Definition: AurynVersion.h:41
Definition: ABSConnection.h:38
AurynFloat AurynState
Type for Auryn state variables (default single precision since it needs to be compatible with auryn_v...
Definition: auryn_definitions.h:160
static int subversion
Definition: AurynVersion.h:40
static NeuronID tag_binary_spike_monitor
file signature for BinarySpikeMonitor files
Definition: AurynVersion.h:42
static int version
Definition: AurynVersion.h:39
std::string string
Standard library string type which is imported into Auryn namespace.
Definition: auryn_definitions.h:156
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
static std::string git_describe
Definition: AurynVersion.h:45