version.hpp 1.2 KB

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