xorp

build_info.hh

00001 // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
00002 
00003 // Copyright (c) 2001-2012 XORP, Inc and Others
00004 //
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License, Version 2, June
00007 // 1991 as published by the Free Software Foundation. Redistribution
00008 // and/or modification of this program under the terms of any other
00009 // version of the GNU General Public License is not permitted.
00010 // 
00011 // This program is distributed in the hope that it will be useful, but
00012 // WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00014 // see the GNU General Public License, Version 2, a copy of which can be
00015 // found in the XORP LICENSE.gpl file.
00016 //
00017 
00018 
00019 #ifndef __XORP_BUILD_INFO_INC__
00020 #define __XORP_BUILD_INFO_INC__
00021 
00022 class BuildInfo {
00023 public:
00025 #define DEFSTR1(a) #a
00026 #define DEFSTR(a) DEFSTR1(a)
00027     static const char* getXorpVersion() {
00028     return DEFSTR(XORP_VERSION);
00029     }
00030 
00031 #ifdef XORP_BUILDINFO
00032 
00033     static const char* getGitVersion();
00035     static const char* getGitLog();
00036 
00037     static const char* getShortBuildDate();
00038     static const char* getBuildDate();
00039     static const char* getBuilder();
00040     static const char* getBuildMachine();
00041 #endif
00042 };
00043 
00044 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations