Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Analysis/TGo4Version.cxx

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE 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 <iostream.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 ---------------------

Generated on Tue Nov 8 10:55:49 2005 for Go4-v2.10-5 by doxygen1.2.15