FACT++  1.0
void FACT::PrintVersion ( const char *  name)

Print version information about FACT++

From help2man:

The first line of the –version information is assumed to be in one of the following formats:

//!  - <version>
//!  - <program> <version>
//!  - {GNU,Free} <program> <version>
//!  - <program> ({GNU,Free} <package>) <version>
//!  - <program> - {GNU,Free} <package> <version>
//! 
 and separated from any copyright/author details by a blank line.

Handle multi-line bug reporting sections of the form:
//!  - Report <program> bugs to <addr>
//!  - GNU <package> home page: <url>
//!  - ...
//! 
@param name
    name of the program (usually argv[0]). A possible leading "lt-"
    is removed.

Definition at line 46 of file FACT.cc.

References PACKAGE_BUGREPORT, PACKAGE_STRING, and PACKAGE_URL.

Referenced by main().

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

+ Here is the caller graph for this function: