Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

client/Options.h

00001 /* hey emacs! -*- Mode: C++; c-file-style: "stroustrup"; indent-tabs-mode: nil -*- */
00002 /*
00003  * Options.h
00004  *
00005  * $Id: Options.h,v 1.4 2002/04/08 07:11:00 benoit Exp $
00006  *
00007  * Copyright (c) 2000 Remi Lefebvre <remi@dhis.net>
00008  *                and Luca Filipozzi <lfilipoz@dhis.net>
00009  *
00010  * DDT comes with ABSOLUTELY NO WARRANTY and is licenced under the
00011  * GNU General Public License (version 2 or later). This license
00012  * can be retrieved from http://www.gnu.org/copyleft/gnu.html.
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 

Generated on Tue Sep 13 01:32:47 2005 for DDT Project by  doxygen 1.4.4