PandaRoot
PndVersionInfo.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
23 #pragma once
24 
25 #include <Rtypes.h>
26 #include <string>
27 
29  public:
32  void Print();
33 
34  std::string GetRev() { return fGitRev; }
35  std::string GetTag() { return fGitTag; }
36  std::string GetBranch() { return fGitBranch; }
37 
38  protected:
39  std::string fGitRev; // commit hash, ends with "+" if there are local changes
40  std::string fGitTag; // commit Tag
41  std::string fGitBranch; // current branch
42 
43  // ClassDef(PndVersionInfo, 1)
44 };
std::string GetBranch()
std::string fGitRev
std::string GetTag()
Handles Git and Version information.
std::string fGitBranch
std::string fGitTag
std::string GetRev()