00001 #ifndef HT_EXAMPLE_FILE_WRITER_
00002 #define HT_EXAMPLE_FILE_WRITER_
00003
00004 #include <graph/NodeBase.h>
00005 #include <iostream>
00006 #include <fstream>
00007 #include "FileReader.h"
00008
00009 namespace ht {
00010 namespace options { class Config; }
00011 namespace example {
00013 class FileWriter : public BlockReader
00014 {
00015 std::fstream out_;
00016 std::ostream *stream_;
00017 public:
00018 void configure(const ht::options::Config *c);
00020 void process(const ByteBuffer & buf);
00021 void stop();
00022 };
00023 }
00024 }
00025
00026 #endif