00001 // @(#)root/base:$Id: TVersionCheck.h 20877 2007-11-19 11:17:07Z rdm $ 00002 // Author: Fons Rademakers 9/5/2007 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TVersionCheck 00013 #define ROOT_TVersionCheck 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TVersionCheck // 00018 // // 00019 // Used to check if the shared library or plugin is compatible with // 00020 // the current version of ROOT. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef ROOT_RVersion 00025 #include "RVersion.h" 00026 #endif 00027 00028 class TVersionCheck { 00029 public: 00030 TVersionCheck(int versionCode); // implemented in TSystem.cxx 00031 }; 00032 00033 #ifndef __CINT__ 00034 static TVersionCheck gVersionCheck(ROOT_VERSION_CODE); 00035 #endif 00036 00037 #endif