00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <iostream>
00017
00018 class Options
00019 {
00020 public:
00021 static Options *Options::Instance() { return i_ ? i_ : i_ = new Options; }
00022
00023 static int additionalUsage()
00024 {
00025 std::cout <<
00026 "DDT is Copyright (c) 2000 of Remi Lefebvre <remi@dhis.net>\n"
00027 " and Luca Filipozzi <lfilipoz@dhis.net>\n"
00028 "DDT comes with ABSOLUTELY NO WARRANTY and is licenced under the\n"
00029 "GNU General Public License (version 2 or later). This license can\n"
00030 "be retrieved from http://www.gnu.org/copyleft/gnu.html.\n";
00031 return 0;
00032 };
00033
00034 int verbose;
00035 int debug;
00036 char *hostaddr;
00037 u_int serverport;
00038 u_int clientport;
00039 int encrypt;
00040 char *interface;
00041 int accountId;
00042 char *password;
00043 int version;
00044
00045 private:
00046 static Options* i_;
00047 };
00048