version.hpp 1.13 KB
Newer Older
1
//
2
// Copyright (c) 2019-2020 INRIA
3
4
5
6
7
//

#ifndef __eigenpy_version_hpp__
#define __eigenpy_version_hpp__

8
#include "eigenpy/config.hpp"
9
10
11
12
13
14
15
16
17
18
19

#include <string>

namespace eigenpy
{
  
  ///
  /// \brief Returns the current version of EigenPy as a string using
  ///        the following standard:
  ///        EIGENPY_MINOR_VERSION.EIGENPY_MINOR_VERSION.EIGENPY_PATCH_VERSION
  ///
20
  std::string EIGENPY_DLLEXPORT printVersion(const std::string & delimiter = ".");
21
22
23
24
25
26
27
28
29
30
31
32
  
  ///
  /// \brief Checks if the current version of EigenPy is at least the version provided
  ///        by the input arguments.
  ///
  /// \param[in] major_version Major version to check.
  /// \param[in] minor_version Minor version to check.
  /// \param[in] patch_version Patch version to check.
  ///
  /// \returns true if the current version of EigenPy is greater than the version provided
  ///        by the input arguments.
  ///
33
  bool EIGENPY_DLLEXPORT checkVersionAtLeast(unsigned int major_version,
Justin Carpentier's avatar
Justin Carpentier committed
34
35
                                             unsigned int minor_version,
                                             unsigned int patch_version);
36
37
38
}

#endif // __eigenpy_version_hpp__