source: trunk/yat/utility/version.h.in @ 1383

Last change on this file since 1383 was 1383, checked in by Peter, 13 years ago

following guidelines that file should start with PP guards and also corrected a typo

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1#ifndef _theplu_yat_utility_version_
2#define _theplu_yat_utility_version_
3
4// @configure_input@
5
6// $Id: version.h.in 1383 2008-07-17 17:53:11Z peter $
7
8/*
9  Copyright (C) 2008 Peter Johansson
10
11  This file is part of the yat library, http://trac.thep.lu.se/yat
12
13  The yat library is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License as
15  published by the Free Software Foundation; either version 2 of the
16  License, or (at your option) any later version.
17
18  The yat library is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  General Public License for more details.
22
23  You should have received a copy of the GNU General Public License
24  along with this program; if not, write to the Free Software
25  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26  02111-1307, USA.
27*/
28
29///
30/// \file utility/version.h
31///
32
33/*
34  Compile-time version constants
35
36  \see http://apr.apache.org/versioning.html
37*/
38
39/**
40   MAJOR version
41
42   No compatibility is guarenteed between MAJOR versions.
43
44   \since New in yat 0.5
45 */
46#define YAT_MAJOR_VERSION @YAT_MAJOR_VERSION@
47
48/**
49   MINOR version
50
51   Minor API changes that do not cause binary compatibility problems.
52   Reset to 0 when upgrading YAT_MAJOR_VERSION
53
54   \since New in yat 0.5
55 */
56#define YAT_MINOR_VERSION @YAT_MINOR_VERSION@
57
58/**
59   PATCH version
60
61   The Patch level never includes API changes, simply bug fixes.
62   Reset to 0 when upgrading YAT_MINOR_VERSION
63
64   \since New in yat 0.5
65 */
66#define YAT_PATCH_VERSION @YAT_PATCH_VERSION@
67
68/**
69   VERSION
70
71   The version of yat in string format
72
73   \since New in yat 0.5
74 */
75#define YAT_VERSION "@VERSION@"
76
77/**
78   DEV_BUILD
79
80   Is set to false in releases
81
82   \since New in yat 0.5
83 */
84#define YAT_DEV_BUILD @YAT_DEV_BUILD@
85
86#include <string>
87
88namespace theplu {
89namespace yat {
90namespace utility {
91
92  /**
93     \return major version number of compiled yat library
94
95   \since New in yat 0.5
96   */
97  unsigned int major_version(void);
98
99  /**
100     \return minor version number of compiled yat library
101
102     \since New in yat 0.5
103   */
104  unsigned int minor_version(void);
105
106  /**
107     \return patch version number of compiled yat library
108
109     \since New in yat 0.5
110   */
111  unsigned int patch_version(void);
112
113  /**
114     \return version number of compiled yat library
115
116     \since New in yat 0.5
117   */
118  std::string version(void);
119
120}}} // of namespace utility, yat, and theplu
121
122#endif
Note: See TracBrowser for help on using the repository browser.