00001 #ifndef _HT_EXAMPLE_WORD_FILTER_H_ 00002 #define _HT_EXAMPLE_WORD_FILTER_H_ 00003 00004 #include <graph/example/WordParser.h> 00005 00006 namespace ht { 00007 namespace example { 00009 class WordFilter : public WordReader 00010 { 00011 WordReader *next_; 00012 public: 00013 WordFilter() : next_(0) {} 00015 void connect(ht::graph::Node *next); 00017 void configured(); 00019 void process(const WordBuffer & buf); 00021 virtual bool test(const WordBuffer & buf) = 0; 00022 }; 00023 } 00024 } 00025 00026 #endif
1.5.2