1 2 3 4 5 6 7 8 9 10 11 12
#include "FileFetcher.hpp" #include "FileRewindInputStream.hpp" using namespace std; RewindInputStream *FileFetcher::fetch( const URL url ) { FileRewindInputStream *s = new FileRewindInputStream( url ); return s; } REGISTER_MODULE( "file_fetcher", 0, 0, Fetcher, FileFetcher )