source: tspsg/src/version.h @ e0fcac5f2c

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since e0fcac5f2c was e0fcac5f2c, checked in by Oleksii Serdiuk, 15 years ago
  • Finished documentation.
  • Sorted all functions in .cpp files according to order of their declaration in .h files.
  • Property mode set to 100644
File size: 3.2 KB
Line 
1/*!
2 * \file version.h
3 * \author Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
4 *
5 *  $Id$
6 *  $URL$
7 *
8 * \brief Contains TSPSG version information defines.
9 *
10 *  <b>TSPSG: TSP Solver and Generator</b>
11 *
12 *  This file is part of TSPSG.
13 *
14 *  TSPSG is free software: you can redistribute it and/or modify
15 *  it under the terms of the GNU General Public License as published by
16 *  the Free Software Foundation, either version 3 of the License, or
17 *  (at your option) any later version.
18 *
19 *  TSPSG is distributed in the hope that it will be useful,
20 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 *  GNU General Public License for more details.
23 *
24 *  You should have received a copy of the GNU General Public License
25 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
26 */
27/*!
28 * \mainpage
29 * \image html tspsg.png
30 *  <b>TSPSG: TSP Solver and Generator</b>
31 * \author Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
32 *
33 *  $Id$
34 *  $URL$
35 *
36 *  TSPSG is free software: you can redistribute it and/or modify
37 *  it under the terms of the GNU General Public License as published by
38 *  the Free Software Foundation, either version 3 of the License, or
39 *  (at your option) any later version.
40 *
41 *  TSPSG is distributed in the hope that it will be useful,
42 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
43 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44 *  GNU General Public License for more details.
45 *
46 *  You should have received a copy of the GNU General Public License
47 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
48 */
49
50#ifndef VERSION_H
51#define VERSION_H
52
53//! TSPSG version ID
54#define VERSIONID "$Id$"
55//! Major version of current TSPSG build
56#define BUILD_VERSION_MAJOR 0
57//! Minor version of current TSPSG build
58#define BUILD_VERSION_MINOR 1
59//! TSPSG release number
60#define BUILD_RELEASE 2
61
62/*!
63 * \brief Current TSPSG build number
64 *
65 * This will only change on releases and will be the same as revision number.
66 *
67 * Build number meanings:
68 *   - 1  --  3: <b>alpha</b> 1 to 3
69 *   - 4  --  7: <b>beta</b> 1 to 4
70 *   - 8  -- 10: <b>rc</b> 1 to 3
71 *   - 11 --  x: <b>release</b> 1 to x-10
72 */
73#define BUILD_NUMBER 65535
74
75/*!
76 * \def BUILD_STATUS
77 * \brief TSPSG build status
78 *
79 * Determined based on BUILD_NUMBER.
80 */
81#if BUILD_NUMBER == 65535
82        #define BUILD_STATUS (dev build)
83#elif BUILD_RELEASE < 4
84        #define BUILD_STATUS (alpha)
85#elif BUILD_RELEASE < 8
86        #define BUILD_STATUS (beta)
87#elif BUILD_RELEASE < 11
88        #define BUILD_STATUS (rc)
89#endif // BUILD_NUMBER == 65535
90
91//! \internal \brief A helper for QUOTE(x).
92#define QUOTE_X(x) #x
93//! Used for "conversion" of \a x to quoted string
94#define QUOTE(x) QUOTE_X(x)
95
96/*!
97 * \def BUILD_VERSION
98 * \brief Full version of TSPSG in the form: \c major.\c minor.\c release[ \c status].
99 */
100#ifndef BUILD_STATUS
101        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE)
102#else
103        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS)
104#endif
105
106#endif // VERSION_H
Note: See TracBrowser for help on using the repository browser.