Generic hardware access library
|
00001 // $Id: version.h,v 1.4 2009/05/04 09:54:13 cschwick Exp $ 00002 #ifndef _hal_generic_version_h_ 00003 #define _hal_generic_version_h_ 00004 00005 #include "config/PackageInfo.h" 00006 // !!! Edit this line to reflect the latest package version !!! 00007 00008 #define GENERICHAL_VERSION_MAJOR 4 00009 #define GENERICHAL_VERSION_MINOR 1 00010 #define GENERICHAL_VERSION_PATCH 0 00011 // If any previous versions available E.g. #define GENERICHAL_PREVIOUS_VERSIONS "3.8.0,3.8.1" 00012 #undef GENERICHAL_PREVIOUS_VERSIONS 00013 00014 00015 // 00016 // Template macros 00017 // 00018 #define GENERICHAL_VERSION_CODE PACKAGE_VERSION_CODE(GENERICHAL_VERSION_MAJOR,GENERICHAL_VERSION_MINOR,GENERICHAL_VERSION_PATCH) 00019 #ifndef GENERICHAL_PREVIOUS_VERSIONS 00020 #define GENERICHAL_FULL_VERSION_LIST PACKAGE_VERSION_STRING(GENERICHAL_VERSION_MAJOR,GENERICHAL_VERSION_MINOR,GENERICHAL_VERSION_PATCH) 00021 #else 00022 #define GENERICHAL_FULL_VERSION_LIST GENERICHAL_PREVIOUS_VERSIONS "," PACKAGE_VERSION_STRING(GENERICHAL_VERSION_MAJOR,GENERICHAL_VERSION_MINOR,GENERICHAL_VERSION_PATCH) 00023 #endif 00024 namespace generichal 00025 { 00026 const std::string package = "generichal"; 00027 const std::string versions = GENERICHAL_FULL_VERSION_LIST; 00028 const std::string description = "Hardware Access Library"; 00029 const std::string authors = "Christoph Schwick"; 00030 const std::string summary = "Main library for the HAL"; 00031 const std::string link = "http://cmsdoc.cern.ch/~cschwick/hal"; 00032 config::PackageInfo getPackageInfo(); 00033 void checkPackageDependencies() throw (config::PackageInfo::VersionException); 00034 std::set<std::string, std::less<std::string> > getPackageDependencies(); 00035 } 00036 00037 #endif