00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef OPTIONLIST_H
00019 #define OPTIONLIST_H
00020
00021 #include <vector.h>
00022 #include "String.h"
00023
00024 #include "optionentry.h"
00025
00026
00031 class OptionList : private vector<OptionEntry *> {
00032 friend class OptionEntry;
00033 public:
00034 OptionList();
00035 virtual ~OptionList();
00036
00039 OptionEntry &Option( const String optname );
00040
00043 OptionEntry &Option( unsigned int n );
00044
00047 unsigned int NumOptions( void );
00048
00049 protected:
00052 OptionEntry &AddOption( const String optname, const String info = "" );
00053
00056 virtual int SetOption( OptionEntry *opt );
00057 };
00058
00059 #endif