Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-19 09:09:52

0001 #ifndef ATOOLS_Org_Git_Info_H
0002 #define ATOOLS_Org_Git_Info_H
0003 
0004 #include <string>
0005 #include <map>
0006 
0007 namespace ATOOLS {
0008 
0009   class Git_Info {
0010   private:
0011 
0012     std::string m_name, m_branch, m_revision, m_checksum;
0013 
0014     static std::map<const std::string,const Git_Info*> *s_objects;
0015 
0016     static bool s_check;
0017 
0018   public:
0019 
0020     Git_Info(const std::string &name,
0021          const std::string &branch,
0022          const std::string &revision,
0023          const std::string &checksum);
0024     ~Git_Info();
0025 
0026     inline const std::string &Name() const     { return m_name;     }
0027     inline const std::string &Branch() const   { return m_branch;   }
0028     inline const std::string &Revision() const { return m_revision; }
0029     inline const std::string &Checksum() const { return m_checksum; }
0030 
0031     inline static const std::map<const std::string,const Git_Info*> *
0032     Infos() { return s_objects; }
0033 
0034     inline static void SetCheck(const bool &check) { s_check=check; }
0035 
0036   };// end of class Git_Info
0037 
0038 }// end of namespace ATOOLS
0039 
0040 #endif