FACT++  1.0
FACT.cc
Go to the documentation of this file.
1 // **************************************************************************
7 // **************************************************************************
8 #include "FACT.h"
9 
10 #include <iostream>
11 
12 #include <boost/version.hpp>
13 #include <boost/filesystem.hpp>
14 
15 // --------------------------------------------------------------------------
16 //
46 void FACT::PrintVersion(const char *name)
47 {
48 #if BOOST_VERSION < 104600
49  const std::string n = boost::filesystem::path(name).filename();
50 #else
51  const std::string n = boost::filesystem::path(name).filename().string();
52 #endif
53 
54  std::cout <<
55  n << " - " PACKAGE_STRING "\n"
56  "\n"
57  "Written by Thomas Bretz et al.\n"
58  "\n"
59  "Report bugs to <" PACKAGE_BUGREPORT ">\n"
60  "Home page: " PACKAGE_URL "\n"
61  "\n"
62  "Copyright (C) 2011 by the FACT Collaboration.\n"
63  "This is free software; see the source for copying conditions.\n"
64  << std::endl;
65 }
#define PACKAGE_BUGREPORT
#define PACKAGE_STRING
#define PACKAGE_URL
void PrintVersion(const char *name)
Definition: FACT.cc:46