version.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2019-2023 INRIA
3 //
4 
5 #include "eigenpy/version.hpp"
6 #include "eigenpy/config.hpp"
7 
8 #include <sstream>
9 #include <Eigen/Core>
10 
11 namespace eigenpy {
12 
13 std::string printVersion(const std::string& delimiter) {
14  std::ostringstream oss;
15  oss << EIGENPY_MAJOR_VERSION << delimiter << EIGENPY_MINOR_VERSION
16  << delimiter << EIGENPY_PATCH_VERSION;
17  return oss.str();
18 }
19 
20 std::string printEigenVersion(const std::string& delimiter) {
21  std::ostringstream oss;
22  oss << EIGEN_MAJOR_VERSION << delimiter << EIGEN_MINOR_VERSION << delimiter
23  << EIGEN_MINOR_VERSION;
24  return oss.str();
25 }
26 
27 bool checkVersionAtLeast(unsigned int major_version, unsigned int minor_version,
28  unsigned int patch_version) {
29  return EIGENPY_VERSION_AT_LEAST(major_version, minor_version, patch_version);
30 }
31 
32 } // namespace eigenpy
bool EIGENPY_DLLAPI checkVersionAtLeast(unsigned int major_version, unsigned int minor_version, unsigned int patch_version)
Checks if the current version of EigenPy is at least the version provided by the input arguments...
Definition: version.cpp:27
std::string EIGENPY_DLLAPI printVersion(const std::string &delimiter=".")
Returns the current version of EigenPy as a string using the following standard: EIGENPY_MINOR_VERSIO...
Definition: version.cpp:13
std::string EIGENPY_DLLAPI printEigenVersion(const std::string &delimiter=".")
Returns the current version of Eigen3 as a string using the following standard: EIGEN_MINOR_VERSION.EIGEN_MINOR_VERSION.EIGEN_PATCH_VERSION.
Definition: version.cpp:20


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:26