Elements 6.1.2
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
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 <cstdint>
30#include <string> // for string
31
32#include "ElementsKernel/Export.h" // ELEMENTS_API
33
36 const std::uint_least64_t pat) {
37 return (((maj) << 32) + ((min) << 16) + (pat));
38}
39
40namespace Elements {
41
65
82ELEMENTS_API std::string getVersionString(const unsigned short major, const unsigned short minor,
83 const unsigned short patch = 0);
84
85} // namespace Elements
86
87#endif // ELEMENTSKERNEL_ELEMENTSKERNEL_VERSION_H_
88
defines the macros to be used for explicit export of the symbols
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:67
#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:34
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)
Mangle major, minor and patch version number into a single integer.
Definition: Version.h:35