Elements  5.8
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Version.h
Go to the documentation of this file.
1 
26 #ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_VERSION_H_
27 #define ELEMENTSKERNEL_ELEMENTSKERNEL_VERSION_H_
28 
29 #include <string> // for string
30 #include <cstdint>
31 
32 #include "ElementsKernel/Export.h" // ELEMENTS_API
33 
36  const std::uint_least64_t min,
37  const std::uint_least64_t pat) {
38  return (((maj) << 32) + ((min) << 16) + (pat));
39 }
40 
41 namespace Elements {
42 
66 
83 ELEMENTS_API std::string getVersionString(const unsigned short major,
84  const unsigned short minor,
85  const unsigned short patch = 0);
86 
87 } // namespace Elements
88 
89 #endif // ELEMENTSKERNEL_ELEMENTSKERNEL_VERSION_H_
90 
ELEMENTS_API std::string getVersionString(const unsigned short major, const unsigned short minor, const unsigned short patch=0)
Function converting the version numbers into a string.
Definition: Version.cpp:68
STL class.
defines the macros to be used for explicit export of the symbols
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition: Export.h:74
ELEMENTS_API std::string getVersionFromSvnKeywords(const std::string &svnUrl, const std::string &svnId)
Function returning a version string extracted from SVN keywords.
Definition: Version.cpp:35
constexpr std::uint_least64_t CALC_PROJECT_VERSION(const std::uint_least64_t maj, const std::uint_least64_t min, const std::uint_least64_t pat)
Mange major, minor and patch version number into a single integer.
Definition: Version.h:35