Warning, /jana2/src/libraries/JANA/JVersion.h.in is written in an unsupported language. File is not indexed.
0001
0002 // Copyright 2020, Jefferson Science Associates, LLC.
0003 // Subject to the terms in the LICENSE file found in the top-level directory.
0004
0005 #pragma once
0006 #include <cstdint>
0007 #include <ostream>
0008
0009 #define JANA2_HAVE_PODIO @JANA2_HAVE_PODIO@
0010 #define JANA2_HAVE_ROOT @JANA2_HAVE_ROOT@
0011 #define JANA2_HAVE_XERCES @JANA2_HAVE_XERCES@
0012
0013 #define JANA2_COMMIT_HASH "@JVERSION_COMMIT_HASH@"
0014 #define JANA2_COMMIT_DATE "@JVERSION_COMMIT_DATE@"
0015 #define JANA2_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
0016
0017
0018 struct JVersion {
0019
0020 static const uint64_t major = @jana2_VERSION_MAJOR@;
0021 static const uint64_t minor = @jana2_VERSION_MINOR@;
0022 static const uint64_t patch = @jana2_VERSION_PATCH@;
0023
0024 static const bool is_unknown = @JVERSION_UNKNOWN@;
0025 static const bool is_release = @JVERSION_RELEASE@;
0026 static const bool is_modified = @JVERSION_MODIFIED@;
0027
0028 static constexpr uint64_t GetMajorNumber() { return major; }
0029 static constexpr uint64_t GetMinorNumber() { return minor; }
0030 static constexpr uint64_t GetPatchNumber() { return patch; }
0031
0032 static std::string GetCommitHash() { return JANA2_COMMIT_HASH; }
0033 static std::string GetCommitDate() { return JANA2_COMMIT_DATE; }
0034 static std::string GetInstallDir() { return JANA2_INSTALL_PREFIX; }
0035
0036 static constexpr bool HasPodio() { return JANA2_HAVE_PODIO; }
0037 static constexpr bool HasROOT() { return JANA2_HAVE_ROOT; }
0038 static constexpr bool HasXerces() { return JANA2_HAVE_XERCES; }
0039
0040 static std::string GetVersion();
0041 static constexpr uint64_t GetVersionNumber();
0042
0043 static void PrintSplash(std::ostream& os);
0044 static void PrintVersionNumbers(std::ostream& os);
0045 static void PrintVersionDescription(std::ostream& os);
0046
0047 };
0048
0049
0050