version.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2019 INRIA
3 //
4 
5 #include "eigenpy/config.hpp"
6 #include "eigenpy/version.hpp"
7 
8 #include <sstream>
9 
10 namespace eigenpy
11 {
12 
13  std::string printVersion(const std::string & delimiter)
14  {
15  std::ostringstream oss;
16  oss
17  << EIGENPY_MAJOR_VERSION << delimiter
18  << EIGENPY_MINOR_VERSION << delimiter
19  << EIGENPY_PATCH_VERSION;
20  return oss.str();
21  }
22 
23  bool checkVersionAtLeast(unsigned int major_version,
24  unsigned int minor_version,
25  unsigned int patch_version)
26  {
27  return EIGENPY_VERSION_AT_LEAST(major_version,minor_version,patch_version);
28  }
29 
30 }
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:23
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


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59