00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef __BANNER_H
00032 #define __BANNER_H
00033
00034 #include "OFELI_Config.h"
00035
00036 #include <string>
00037 using std::string;
00038
00039 #include <iostream>
00040 using std::cout;
00041 using std::endl;
00042
00047 namespace OFELI {
00048
00055 inline void banner(const string &prog=" ")
00056 {
00057 if (prog[0] != ' ') {
00058 cout << endl;
00059 cout << "====================================================================" << endl;
00060 cout << prog << ", Copyright (c) 1998 - 2008 by Rachid Touzani\n";
00061 cout << prog << " comes with ABSOLUTELY NO WARRANTY.\n";
00062 cout << "This is free software, and your are allowed to redistribute it\n";
00063 cout << "under certain conditions. Details are distributed with the software." << endl << endl;
00064 cout << "====================================================================" << endl;
00065 cout << prog << " uses the ofeli package" << endl;
00066 }
00067 else {
00068 cout << endl;
00069 cout << "====================================================================" << endl;
00070 cout << "Copyright (c) 1998 - 2008 by Rachid Touzani\n\n";
00071 cout << "This is free software, and your are allowed to redistribute it\n";
00072 cout << "under certain conditions. Details are distributed with the software." << endl << endl;
00073 cout << "====================================================================" << endl;
00074 }
00075 cout << "version : " << OFELI_VERSION << endl;
00076 cout << "Date of Release " << OFELI_RELEASE_DATE << endl;
00077 cout << "---------------------------------------------------" << endl;
00078 cout << "Date of latest library building : " << __DATE__ << endl;
00079 cout << "====================================================================" << endl;
00080 cout << "ofeli comes with ABSOLUTELY NO WARRANTY.\n";
00081 cout << "====================================================================" << endl << endl;
00082 }
00083
00084 }
00085
00086 #endif