Hauptseite   Klassenhierarchie   Alphabetische Liste   Übersicht   Auflistung der Dateien   Elementübersicht  

optionentry.h

00001 /***************************************************************************
00002                           optionentry.h  -  description
00003                              -------------------
00004     begin                : Fri Jan 11 2002
00005     copyright            : (C) 2002 by Christian Tusche
00006     email                : christian.tusche@stud.uni-goettingen.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef OPTIONENTRY_H
00019 #define OPTIONENTRY_H
00020 
00021 #include "String.h"
00022 
00023 class OptionList;
00024 
00029 class OptionEntry {
00030     friend class OptionList;
00031 
00032 public:
00033     OptionEntry( OptionList *l, const String name, const String info = "" );
00034     ~OptionEntry();
00035 
00038     const String &Name(void);
00039 
00042     const String &Info(void);
00043 
00044     OptionEntry& operator = ( const String &wert );
00045     OptionEntry& operator = ( const char *wert );
00046     OptionEntry& operator = ( int wert );
00047     OptionEntry& operator = ( double wert );
00048 
00049     operator String&();
00050     operator const char*();
00051     operator int();
00052     operator double();
00053 
00054 protected:
00055     int SetOption( void );
00056 
00057     // Name der Option
00058     String opt_name;
00059 
00060     // Das Argument als Text-String formatiert
00061     String opt_arg;
00062 
00063     // Beschreibung der Option für den User
00064     String info_txt;
00065 
00066     // übergeordnete Listenklasse
00067     OptionList *list;
00068 
00069     // Aufruf von SetOption() läuft
00070     bool set_option;
00071 };
00072 
00073 #endif

Erzeugt am Tue Dec 31 22:54:54 2002 für av_convert von doxygen1.2.9.1 geschrieben von Dimitri van Heesch, © 1997-2001