GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4Version.cxx
Go to the documentation of this file.
1 // $Id: TGo4Version.cxx 2769 2020-04-16 14:54:23Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TGo4Version.h"
15 
16 #include <iostream>
17 
19 
21 
23 {
24  if (fxInstance == 0)
25  fxInstance = new TGo4Version();
26  return fxInstance;
27 }
28 
30 {
31  return fgiGO4VERSION;
32 }
33 
35 {
36 }
37 
39 {
40 }
41 
43 {
44 //
45  if(fgiGO4VERSION==version) return kTRUE;
46 
47  std::cerr <<" !!!! VERSION MISMATCH: \n\tUser Analysis Build \tVersion " << fgiGO4VERSION << std::endl;
48  std::cerr <<"\tdoes not match current \tVersion " << version << std:: endl;
49  return kFALSE;
50 }
static Int_t GetBuildVersion()
Definition: TGo4Version.cxx:29
static TGo4Version * fxInstance
Definition: TGo4Version.h:50
static Bool_t CheckVersion(Int_t version)
Definition: TGo4Version.cxx:42
virtual ~TGo4Version()
Definition: TGo4Version.cxx:38
function GO4 version
Definition: go4.js:17
static const Int_t fgiGO4VERSION
Definition: TGo4Version.h:48
#define __GO4BUILDVERSION__
Definition: TGo4Version.h:24
static TGo4Version * Instance()
Definition: TGo4Version.cxx:22