Elements  6.2
A C++ base framework for the Euclid Software.
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 
40 namespace Elements {
41 
65 
82 ELEMENTS_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 
Export.h
defines the macros to be used for explicit export of the symbols
Elements::getVersionFromSvnKeywords
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
std::string
STL class.
CALC_PROJECT_VERSION
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
ELEMENTS_API
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition: Export.h:74
std::uint_least64_t
Elements::getVersionString
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
Elements
Definition: callBackExample.h:35