Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/JANA/JVersion.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 1
0010 #define JANA2_HAVE_ROOT 1
0011 #define JANA2_HAVE_XERCES 0
0012 
0013 #define JANA2_COMMIT_HASH ""
0014 #define JANA2_COMMIT_DATE ""
0015 #define JANA2_INSTALL_PREFIX "/opt/software/linux-debian12-x86_64_v2/gcc-12.2.0/jana2-2.3.2-jkr7rjb2l6mwdnwgdr5ru2bi2kiwt224"
0016 
0017 
0018 struct JVersion {
0019 
0020     static const uint64_t major = 2;
0021     static const uint64_t minor = 3;
0022     static const uint64_t patch = 2;
0023 
0024     static const bool is_unknown = 1;
0025     static const bool is_release = 1;
0026     static const bool is_modified = 0;
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