Diana Software
QDianaVersion.cc
Go to the documentation of this file.
1 #include "QDianaVersion.hh"
2 #include "DianaVersion.hh"
3 #include "TString.h"
4 #include "TPRegexp.h"
5 
7 
8 //_____________________________________________________________________________
10 
11 //_____________________________________________________________________________
13 
14 //_____________________________________________________________________________
16  static TString cleanVersion="";
17  if(cleanVersion == "") {
18  TString fullVersion = DIANA_VERSIONTAG;
19  TPRegexp E("v?\\d+\\.\\d+(\\.\\d+)?");
20  cleanVersion = fullVersion(E);
21  // If no match, fall back to the 'dirty' version
22  if(cleanVersion == "") cleanVersion = DIANA_VERSIONTAG;
23  }
24  return cleanVersion.Data();
25 }
26 
27 
28 //_____________________________________________________________________________
30 
31 //_____________________________________________________________________________
33 
34 //_____________________________________________________________________________
35 const char *QSWInfo::GetGSLVersion() { return DIANA_VERSION_GSL; }
36 
37 //_____________________________________________________________________________
38 const char *QSWInfo::GetQtVersion() { return DIANA_VERSION_QT; }
39 
40 //_____________________________________________________________________________
42 
43 //_____________________________________________________________________________
45 
#define DIANA_VERSIONTAG
Definition: DianaVersion.hh:2
#define DIANA_VERSION_QT
Definition: DianaVersion.hh:6
#define DIANA_VERSION_GSL
Definition: DianaVersion.hh:5
#define DIANA_VERSION_FFTW
Definition: DianaVersion.hh:8
#define DIANA_VERSION_ROOT
Definition: DianaVersion.hh:3
#define DIANA_VERSION_PSQL
Definition: DianaVersion.hh:4
#define DIANA_SWREVISION
Definition: DianaVersion.hh:1
#define DIANA_VERSION_BOOST
Definition: DianaVersion.hh:7
#define Q_END_NAMESPACE
Definition: QDiana.hh:22
#define Q_BEGIN_NAMESPACE
Definition: QDiana.hh:20
const char * GetFFTWVersion()
Return the FFTW version.
const char * GetDianaCleanVersionTag()
Return the DIANA version tag cleaned.
const char * GetBoostVersion()
Return the Boost version.
const char * GetDianaVersionTag()
Return the DIANA version tag.
const char * GetQtVersion()
Return the Qt version.
const char * GetGSLVersion()
Return the GSL version.
const char * GetROOTVersion()
Return the ROOT version.
const char * GetDianaSWRevision()
Return the DIANA SW version string.
Definition: QDianaVersion.cc:9
const char * GetPSQLVersion()
Return the PSQL version.