00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SWFILTER_H
00024 #define SWFILTER_H
00025 #include <string>
00026 #include <list>
00027 #include <swkey.h>
00028
00029 #include <defs.h>
00030
00034 typedef std::list < std::string > OptionsList;
00035
00036
00041 class SWDLLEXPORT SWFilter {
00042 public:
00043 virtual ~SWFilter() {}
00047
00051 virtual const char * getOptionName ()
00052 {
00053 return 0;
00054 }
00059 virtual const char * getOptionTip ()
00060 {
00061 return 0;
00062 }
00067 virtual OptionsList getOptionValues ()
00068 {
00069 OptionsList options;
00070 return options;
00071 }
00078 virtual void setOptionValue (const char *)
00079 {
00080 }
00081 virtual const char * getOptionValue ()
00082 {
00083 return 0;
00084 }
00091 virtual char ProcessText(char *text, int maxlen, const SWKey *)
00092 {
00093 return ProcessText(text, maxlen);
00094 }
00100 virtual char ProcessText(char *text, int maxlen = -1)
00101 {
00102 return ProcessText(text, maxlen, 0);
00103 }
00104 };
00105
00106 #endif