00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00058 String opt_name;
00059
00060
00061 String opt_arg;
00062
00063
00064 String info_txt;
00065
00066
00067 OptionList *list;
00068
00069
00070 bool set_option;
00071 };
00072
00073 #endif