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 SWModule;
00042
00043 class SWDLLEXPORT SWFilter {
00044 public:
00045 virtual ~SWFilter() {}
00049
00053 virtual const char * getOptionName ()
00054 {
00055 return 0;
00056 }
00061 virtual const char * getOptionTip ()
00062 {
00063 return 0;
00064 }
00069 virtual OptionsList getOptionValues ()
00070 {
00071 OptionsList options;
00072 return options;
00073 }
00080 virtual void setOptionValue (const char *)
00081 {
00082 }
00083 virtual const char * getOptionValue ()
00084 {
00085 return 0;
00086 }
00093 virtual char ProcessText(char *text, int maxlen, const SWKey *, const SWModule * = 0)
00094 {
00095 return ProcessText(text, maxlen);
00096 }
00102 virtual char ProcessText(char *text, int maxlen = -1)
00103 {
00104 return ProcessText(text, maxlen, 0);
00105 }
00106 };
00107
00108 #endif