Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:12

0001 #ifndef FWCore_Utilities_ReleaseVersion_h
0002 #define FWCore_Utilities_ReleaseVersion_h
0003 
0004 #include <string>
0005 
0006 namespace edm {
0007   namespace releaseversion {
0008 
0009     class DecomposedReleaseVersion {
0010     public:
0011       explicit DecomposedReleaseVersion(std::string releaseVersion);
0012       bool operator<(DecomposedReleaseVersion const& other) const;
0013 
0014     private:
0015       bool irregular_;
0016       unsigned int major_;
0017       unsigned int minor_;
0018       //      unsigned int point_;
0019       //      unsigned int patch_;
0020       //      unsigned int pre_;
0021     };
0022 
0023     bool isEarlierRelease(std::string const& a, std::string const& b);
0024     bool isEarlierRelease(DecomposedReleaseVersion const& a, std::string const& b);
0025     bool isEarlierRelease(std::string const& a, DecomposedReleaseVersion const& b);
0026     bool isEarlierRelease(DecomposedReleaseVersion const& a, DecomposedReleaseVersion const& b);
0027   }  // namespace releaseversion
0028 }  // namespace edm
0029 #endif