yat/utility/version.cc

Code
Comments
Other
Rev Date Author Line
1292 11 May 08 peter 1 // $Id$
1292 11 May 08 peter 2
1292 11 May 08 peter 3 /*
2119 12 Dec 09 peter 4   Copyright (C) 2008 Jari Häkkinen, Peter Johansson
2919 19 Dec 12 peter 5   Copyright (C) 2012 Peter Johansson
1292 11 May 08 peter 6
1469 02 Sep 08 peter 7   This file is part of the yat library, http://dev.thep.lu.se/yat
1292 11 May 08 peter 8
1292 11 May 08 peter 9   The yat library is free software; you can redistribute it and/or
1292 11 May 08 peter 10   modify it under the terms of the GNU General Public License as
1486 09 Sep 08 jari 11   published by the Free Software Foundation; either version 3 of the
1292 11 May 08 peter 12   License, or (at your option) any later version.
1292 11 May 08 peter 13
1292 11 May 08 peter 14   The yat library is distributed in the hope that it will be useful,
1292 11 May 08 peter 15   but WITHOUT ANY WARRANTY; without even the implied warranty of
1292 11 May 08 peter 16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1292 11 May 08 peter 17   General Public License for more details.
1292 11 May 08 peter 18
1292 11 May 08 peter 19   You should have received a copy of the GNU General Public License
1487 10 Sep 08 jari 20   along with yat. If not, see <http://www.gnu.org/licenses/>.
1292 11 May 08 peter 21 */
1292 11 May 08 peter 22
2881 18 Nov 12 peter 23 #include <config.h>
2881 18 Nov 12 peter 24
1292 11 May 08 peter 25 #include "version.h"
1292 11 May 08 peter 26
1292 11 May 08 peter 27 namespace theplu {
1292 11 May 08 peter 28 namespace yat {
1292 11 May 08 peter 29 namespace utility {
1292 11 May 08 peter 30
1292 11 May 08 peter 31   unsigned int major_version(void)
1292 11 May 08 peter 32   {
1292 11 May 08 peter 33     return YAT_MAJOR_VERSION;
1292 11 May 08 peter 34   }
1292 11 May 08 peter 35
1292 11 May 08 peter 36
1292 11 May 08 peter 37   unsigned int minor_version(void)
1292 11 May 08 peter 38   {
1292 11 May 08 peter 39     return YAT_MINOR_VERSION;
1292 11 May 08 peter 40   }
1292 11 May 08 peter 41
1292 11 May 08 peter 42
1292 11 May 08 peter 43   unsigned int patch_version(void)
1292 11 May 08 peter 44   {
1292 11 May 08 peter 45     return YAT_PATCH_VERSION;
1292 11 May 08 peter 46   }
1292 11 May 08 peter 47
1292 11 May 08 peter 48
1292 11 May 08 peter 49   std::string version(void)
1292 11 May 08 peter 50   {
1319 21 May 08 peter 51     return YAT_VERSION;
1292 11 May 08 peter 52   }
1292 11 May 08 peter 53
1292 11 May 08 peter 54
1292 11 May 08 peter 55 }}} // end of namespace utility, yat and thep