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

server/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.3 2000/12/27 16:59:27 rex 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 "ddtd is Copyright (c) 2000 of Remi Lefebvre  <remi@dhis.net>\n"
00027 "                          and Luca Filipozzi <lfilipoz@dhis.net>\n"
00028 "ddtd 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*   dbuser;
00037     char*   dbname;
00038     char*   dbpass;
00039     u_int   serverport;
00040     u_int   clientport;
00041     int     version;
00042 
00043   private:
00044     static Options* i_;
00045 };
00046 

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