00001 // $Id: TGo4Version.h 1256 2014-10-15 08:16:07Z adamczew $ 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 #ifndef TGO4VERSION_H 00015 #define TGO4VERSION_H 00016 00017 #include "Rtypes.h" 00018 00019 // This central definition will set the current Go4 Build Version 00020 // will be used by TGo4Analysis (dynamic) and TGo4Version (static) singletons 00021 // to check the user analysis against framework version on runtime 00022 // 10205 means Version 1.02.05 or release number 1.2-5, 00023 00024 #define __GO4BUILDVERSION__ 40700 00025 #define __GO4RELEASE__ "v4.7.0" 00026 00027 class TGo4Version { 00028 protected: 00029 TGo4Version(); 00030 00031 public: 00032 00033 virtual ~TGo4Version(); 00034 00035 static TGo4Version * Instance(); 00036 00039 static Bool_t CheckVersion(Int_t version); 00040 00042 static Int_t GetBuildVersion(); 00043 00044 private: 00048 static const Int_t fgiGO4VERSION; 00049 00050 static TGo4Version * fxInstance; 00051 00052 }; 00053 00054 #endif //TGO4VERSION_H