00001 #ifndef _HT_EXAMPLE_SPELL_H 00002 #define _HT_EXAMPLE_SPELL_H 00003 00004 #include <graph/example/WordFilter.h> 00005 #include <set> 00006 #include <string> 00007 00008 namespace ht { 00009 namespace example { 00011 class Spell : public WordFilter 00012 { 00013 std::set<std::string> words_; 00014 public: 00015 Spell() {} 00016 void configure(const ht::options::Config *c); 00018 bool test(const WordBuffer & buf); 00019 }; 00020 } 00021 } 00022 00023 #endif 00024
1.5.2