00001 //# version.h: Get casacore version 00002 //# Copyright (C) 2008 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id$ 00027 00028 #ifndef CASA_VERSION_H 00029 #define CASA_VERSION_H 00030 00031 #include <string> 00032 #include <casacore/casa/aips.h> 00033 00034 #define CASACORE_MAJOR_VERSION 2 00035 #define CASACORE_MINOR_VERSION 1 00036 #define CASACORE_PATCH_VERSION 0 00037 00038 #define STRING(x) STR_HELPER(x) 00039 #define STR_HELPER(x) #x 00040 #define CASACORE_VERSION STRING(CASACORE_MAJOR_VERSION.CASACORE_MINOR_VERSION.CASACORE_PATCH_VERSION) 00041 00042 namespace casacore { //# NAMESPACE CASACORE - BEGIN 00043 00044 // Get the casacore version. 00045 const std::string getVersion(); 00046 00047 // Get the version of casacore on CASA's vendor branch 00048 // Note: CASA's private version of casacore has a lifecycle 00049 // which is not necessarily identical to versions of casacore 00050 // elsewhere. This function returns the version of casacore 00051 // on CASA's vendor branch. 00052 const std::string getVersionCASA(); 00053 00054 } //# NAMESPACE CASACORE - END 00055 00056 #endif