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

admin/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.6 2002/03/30 22:21:17 benoit Exp $
00006  *
00007  * Copyright (c) 2000 Remi Lefebvre <remi@dhis.net>
00008  *                and Luca Filipozzi <lfilipoz@dhis.net>
00009  *                and Benoit Joly <benoit@dhis.net>
00010  *
00011  * Licensed under the GPLv2
00012  */
00013 
00014 #include <iostream>
00015 
00016 class Options
00017 {
00018   public:
00019     static Options *Options::Instance() { return i_ ? i_ : i_ = new Options; }
00020 
00021     static int additionalUsage() 
00022     { 
00023         std::cout <<
00024 "ddt-admin is Copyright (c) 2000 of Remi Lefebvre  <remi@ddts.org>\n"
00025 "                                   Benoit Joly  <benoit@ddts.org>\n"
00026 "                               and Luca Filipozzi <lfilipoz@ddts.org>\n"
00027 "ddt-admin comes with ABSOLUTELY NO WARRANTY and is licenced under the\n"
00028 "GNU General Public License (version 2 or later). This license can\n"
00029 "be retrieved from http://www.gnu.org/copyleft/gnu.html.\n";
00030         return 0;
00031     };
00032 
00033     char *dbname;
00034     char *dbuser;
00035     char *dbpass;
00036     char *domain;
00037     char *banned;
00038     char *reserved;
00039     char *head;
00040     char *foot;
00041     char *templatePath;
00042 
00043   private:
00044     static Options* i_;
00045 };

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