• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  [auto_generated]
3  boost/numeric/odeint/version.hpp
4 
5  [begin_description]
6  Defines the current version of odeint.
7  [end_description]
8 
9  Copyright 2011-2012 Karsten Ahnert
10  Copyright 2011-2012 Mario Mulansky
11 
12  Distributed under the Boost Software License, Version 1.0.
13  (See accompanying file LICENSE_1_0.txt or
14  copy at http://www.boost.org/LICENSE_1_0.txt)
15  */
16 
17 #ifndef BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED
18 #define BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED
19 
20 #include <string>
21 #include <sstream>
22 
23 
24 #define ODEINT_MAJOR_VERSION 2
25 #define ODEINT_MINOR_VERSION 2
26 #define ODEINT_PATCH_LEVEL 0
27 #define ODEINT_VERSION ( ODEINT_MAJOR_VERSION * 100000 + ODEINT_MINOR_VERSION * 100 + ODEINT_PATCH_LEVEL )
28 
29 
30 namespace boost {
31 namespace numeric {
32 namespace odeint {
33 
34 namespace version {
35 
36 const int major = ODEINT_MAJOR_VERSION ;
37 const int minor = ODEINT_MINOR_VERSION ;
38 const int patch_level = ODEINT_PATCH_LEVEL ;
39 
40 }
41 
get_version_string(void)42 inline std::string get_version_string( void )
43 {
44     std::ostringstream str;
45     str << "v" << version::major << "." << version::minor;
46     if( version::patch_level != 0 ) str << "_" << version::patch_level;
47     return str.str();
48 }
49 
50 
51 }
52 }
53 }
54 
55 #endif // BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED
56