source: trunk/yat/utility/version.h @ 1292

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

fixes #362 - functions returning rumtime version numbers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#ifndef _theplu_yat_utility_version_
2#define _theplu_yat_utility_version_
3
4// $Id: version.h 1292 2008-05-11 14:53:01Z peter $
5
6/*
7  Copyright (C) 2008 Peter Johansson
8
9  This file is part of the yat library, http://trac.thep.lu.se/yat
10
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 2 of the
14  License, or (at your option) any later version.
15
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  02111-1307, USA.
25*/
26
27///
28/// \file utility/version.h
29///
30
31#include <string>
32#include <stdexcept>
33#include <sstream>
34#include <utility>
35#include <vector>
36
37namespace theplu {
38namespace yat {
39namespace utility {
40
41  /**
42     \return major version number of compiled yat library
43   */
44  unsigned int major_version(void);
45
46  /**
47     \return minor version number of compiled yat library
48   */
49  unsigned int minor_version(void);
50
51  /**
52     \return patch version number of compiled yat library
53   */
54  unsigned int patch_version(void);
55
56  /**
57     \return version number of compiled yat library
58   */
59  std::string version(void);
60
61}}} // of namespace utility, yat, and theplu
62
63#endif
Note: See TracBrowser for help on using the repository browser.