00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #include "TGo4Version.h" 00017 00018 #include "Riostream.h" 00019 00020 const Int_t TGo4Version::fgiGO4VERSION= __GO4BUILDVERSION__; 00021 00022 TGo4Version * TGo4Version::fxInstance= 0; 00023 00024 TGo4Version * TGo4Version::Instance() 00025 { 00026 if (fxInstance == 0) 00027 fxInstance = new TGo4Version(); 00028 return fxInstance; 00029 } 00030 00031 Int_t TGo4Version::GetBuildVersion() const 00032 { 00033 return fgiGO4VERSION; 00034 } 00035 00036 TGo4Version::TGo4Version() 00037 { 00038 } 00039 00040 TGo4Version::~TGo4Version() 00041 { 00042 } 00043 00044 Bool_t TGo4Version::CheckVersion(Int_t version) 00045 { 00046 // 00047 if(fgiGO4VERSION==version) return kTRUE; 00048 00049 cerr <<" !!!! VERSION MISMATCH: \n\tUser Analysis Build \tVersion "; 00050 cerr << fgiGO4VERSION << endl; 00051 cerr <<"\tdoes not match current \tVersion "; 00052 cerr << version <<" " << endl; 00053 return kFALSE; 00054 } 00055 00056 //----------------------------END OF GO4 SOURCE FILE ---------------------