GPU-SD
1.4.0
|
00001 00002 /* Copyright (c) 2011, Stefan Eilemann <eile@eyescale.ch> 00003 * 00004 * This library is free software; you can redistribute it and/or modify it under 00005 * the terms of the GNU Lesser General Public License version 2.1 as published 00006 * by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, but WITHOUT 00009 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00010 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00011 * details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public License 00014 * along with this library; if not, write to the Free Software Foundation, Inc., 00015 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00016 */ 00017 00018 #ifndef GPUSD_VERSION_H 00019 #define GPUSD_VERSION_H 00020 00021 #include <string> 00022 00023 namespace gpusd 00024 { 00026 # define GPUSD_VERSION_MAJOR 1 00027 00029 # define GPUSD_VERSION_MINOR 4 00030 00032 # define GPUSD_VERSION_PATCH 0 00033 00035 # define GPUSD_VERSION_GT( MAJOR, MINOR, PATCH ) \ 00036 ( (GPUSD_VERSION_MAJOR>MAJOR) || \ 00037 (GPUSD_VERSION_MAJOR==MAJOR && (GPUSD_VERSION_MINOR>MINOR || \ 00038 (GPUSD_VERSION_MINOR==MINOR && \ 00039 GPUSD_VERSION_PATCH>PATCH)))) 00040 00042 # define GPUSD_VERSION_GE( MAJOR, MINOR, PATCH ) \ 00043 ( (GPUSD_VERSION_MAJOR>MAJOR) || \ 00044 (GPUSD_VERSION_MAJOR==MAJOR && (GPUSD_VERSION_MINOR>MINOR || \ 00045 (GPUSD_VERSION_MINOR==MINOR && \ 00046 GPUSD_VERSION_PATCH>=PATCH)))) 00047 00049 # define GPUSD_VERSION_LT( MAJOR, MINOR, PATCH ) \ 00050 ( (GPUSD_VERSION_MAJOR<MAJOR) || \ 00051 (GPUSD_VERSION_MAJOR==MAJOR && (GPUSD_VERSION_MINOR<MINOR || \ 00052 (GPUSD_VERSION_MINOR==MINOR && \ 00053 GPUSD_VERSION_PATCH<PATCH)))) 00054 00056 # define GPUSD_VERSION_LE( MAJOR, MINOR, PATCH ) \ 00057 ( (GPUSD_VERSION_MAJOR<MAJOR) || \ 00058 (GPUSD_VERSION_MAJOR==MAJOR && (GPUSD_VERSION_MINOR<MINOR || \ 00059 (GPUSD_VERSION_MINOR==MINOR && \ 00060 GPUSD_VERSION_PATCH<=PATCH)))) 00061 00063 class Version 00064 { 00065 public: 00067 static int getMajor(); 00068 00070 static int getMinor(); 00071 00073 static int getPatch(); 00074 00076 static std::string getString(); 00077 }; 00078 00079 } 00080 00081 #endif // GPUSD_VERSION_H