$search
00001 // Copyright (C) 2009-2011 NICTA (www.nicta.com.au) 00002 // Copyright (C) 2009-2011 Conrad Sanderson 00003 // 00004 // This file is part of the Armadillo C++ library. 00005 // It is provided without any warranty of fitness 00006 // for any purpose. You can redistribute this file 00007 // and/or modify it under the terms of the GNU 00008 // Lesser General Public License (LGPL) as published 00009 // by the Free Software Foundation, either version 3 00010 // of the License or (at your option) any later version. 00011 // (see http://www.opensource.org/licenses for more info) 00012 00013 00016 00017 00018 00019 #define ARMA_VERSION_MAJOR 2 00020 #define ARMA_VERSION_MINOR 4 00021 #define ARMA_VERSION_PATCH 2 00022 #define ARMA_VERSION_NAME "Loco Lounge Lizard" 00023 00024 00025 00026 struct arma_version 00027 { 00028 static const unsigned int major = ARMA_VERSION_MAJOR; 00029 static const unsigned int minor = ARMA_VERSION_MINOR; 00030 static const unsigned int patch = ARMA_VERSION_PATCH; 00031 00032 static 00033 inline 00034 std::string 00035 as_string() 00036 { 00037 const char* nickname = ARMA_VERSION_NAME; 00038 00039 std::stringstream ss; 00040 ss << arma_version::major 00041 << '.' 00042 << arma_version::minor 00043 << '.' 00044 << arma_version::patch 00045 << " (" 00046 << nickname 00047 << ')'; 00048 00049 return ss.str(); 00050 } 00051 }; 00052 00053 00054