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