PandaRoot
PndVersionInfo Class Reference

Handles Git and Version information. More...

#include <PndVersionInfo.h>

Public Member Functions

 PndVersionInfo ()
 
 ~PndVersionInfo ()
 
void Print ()
 
std::string GetRev ()
 
std::string GetTag ()
 
std::string GetBranch ()
 

Protected Attributes

std::string fGitRev
 
std::string fGitTag
 
std::string fGitBranch
 

Detailed Description

Handles Git and Version information.

Fetches git information from cmake-generated <build>/PandaVersion.h

Author
Ralf Kliemt r.kli.nosp@m.emt@.nosp@m.gsi.d.nosp@m.e

Definition at line 16 of file PndVersionInfo.h.

Constructor & Destructor Documentation

◆ PndVersionInfo()

PndVersionInfo::PndVersionInfo ( )

◆ ~PndVersionInfo()

PndVersionInfo::~PndVersionInfo ( )
inline

Definition at line 19 of file PndVersionInfo.h.

References Print().

19 {}

Member Function Documentation

◆ GetBranch()

std::string PndVersionInfo::GetBranch ( )
inline

Definition at line 24 of file PndVersionInfo.h.

References fGitBranch.

24 { return fGitBranch; }
std::string fGitBranch

◆ GetRev()

std::string PndVersionInfo::GetRev ( )
inline

Definition at line 22 of file PndVersionInfo.h.

References fGitRev.

22 { return fGitRev; }
std::string fGitRev

◆ GetTag()

std::string PndVersionInfo::GetTag ( )
inline

Definition at line 23 of file PndVersionInfo.h.

References fGitTag.

23 { return fGitTag; }
std::string fGitTag

◆ Print()

void PndVersionInfo::Print ( )

Referenced by ~PndVersionInfo().

Member Data Documentation

◆ fGitBranch

std::string PndVersionInfo::fGitBranch
protected

Definition at line 29 of file PndVersionInfo.h.

Referenced by GetBranch().

◆ fGitRev

std::string PndVersionInfo::fGitRev
protected

Definition at line 27 of file PndVersionInfo.h.

Referenced by GetRev().

◆ fGitTag

std::string PndVersionInfo::fGitTag
protected

Definition at line 28 of file PndVersionInfo.h.

Referenced by GetTag().


The documentation for this class was generated from the following file: