// ************************************************************************** /** @namespace FACT @brief Namespace to help with some general things in the program initialization */ // ************************************************************************** #include "FACT.h" #include #include // -------------------------------------------------------------------------- // //! Print version information about FACT++ //! //! From help2man: //! //! The first line of the --version information is assumed to be in one //! of the following formats: //! //! \verbatim //! - //! - //! - {GNU,Free} //! - ({GNU,Free} ) //! - - {GNU,Free} //! \endverbatim //! //! and separated from any copyright/author details by a blank line. //! //! Handle multi-line bug reporting sections of the form: //! //! \verbatim //! - Report bugs to //! - GNU home page: //! - ... //! \endverbatim //! //! @param name //! name of the program (usually argv[0]). A possible leading "lt-" //! is removed. //! void FACT::PrintVersion(const char *name) { const std::string n = boost::filesystem::path(name).filename(); std::cout << n << " - "PACKAGE_STRING"\n" "\n" "Written by Thomas Bretz et al.\n" "\n" "Report bugs to <"PACKAGE_BUGREPORT">\n" "Home page: "PACKAGE_URL"\n" "\n" "Copyright (C) 2011 by the FACT Collaboration.\n" "This is free software; see the source for copying conditions.\n" << std::endl; }