source: tspsg-svn/trunk/src/version.h @ 68

Last change on this file since 68 was 67, checked in by laleppa, 15 years ago
  • Finished documentation.
  • Sorted all functions in .cpp files according to order of their declaration in .h files.
  • Property svn:keywords set to Id URL
File size: 3.2 KB
RevLine 
[67]1/*!
2 * \file version.h
3 * \author Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
[42]4 *
[67]5 *  $Id: version.h 67 2009-10-24 13:37:48Z laleppa $
6 *  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/version.h $
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
[66]29 * \image html tspsg.png
[64]30 *  <b>TSPSG: TSP Solver and Generator</b>
[66]31 * \author Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
[64]32 *
[42]33 *  $Id: version.h 67 2009-10-24 13:37:48Z laleppa $
34 *  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/version.h $
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
[64]53//! TSPSG version ID
[63]54#define VERSIONID "$Id: version.h 67 2009-10-24 13:37:48Z laleppa $"
[64]55//! Major version of current TSPSG build
[42]56#define BUILD_VERSION_MAJOR 0
[64]57//! Minor version of current TSPSG build
[42]58#define BUILD_VERSION_MINOR 1
[64]59//! TSPSG release number
[45]60#define BUILD_RELEASE 2
[64]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:
[66]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
[64]72 */
[45]73#define BUILD_NUMBER 65535
[64]74
75/*!
76 * \def BUILD_STATUS
77 * \brief TSPSG build status
78 *
79 * Determined based on BUILD_NUMBER.
80 */
[45]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
[42]90
[66]91//! \internal \brief A helper for QUOTE(x).
92#define QUOTE_X(x) #x
[64]93//! Used for "conversion" of \a x to quoted string
[42]94#define QUOTE(x) QUOTE_X(x)
95
[64]96/*!
97 * \def BUILD_VERSION
[66]98 * \brief Full version of TSPSG in the form: \c major.\c minor.\c release[ \c status].
[64]99 */
[45]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
[42]105
106#endif // VERSION_H
Note: See TracBrowser for help on using the repository browser.