Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

parsehandler-caturl.cc

Go to the documentation of this file.
00001 //***************************************************************************
00002 // This source code is copyrighted 2002 by Google Inc.  All rights
00003 // reserved.  You are given a limited license to use this source code for
00004 // purposes of participating in the Google programming contest.  If you
00005 // choose to use or distribute the source code for any other purpose, you
00006 // must either (1) first obtain written approval from Google, or (2)
00007 // prominently display the foregoing copyright notice and the following
00008 // warranty and liability disclaimer on each copy used or distributed.
00009 // 
00010 // The source code and repository (the "Software") is provided "AS IS",
00011 // with no warranty, express or implied, including but not limited to the
00012 // implied warranties of merchantability and fitness for a particular
00013 // use.  In no event shall Google Inc. be liable for any damages, direct
00014 // or indirect, even if advised of the possibility of such damages.
00015 //***************************************************************************
00016 
00017 // For each document, write URL to stdout.
00018 
00019 #include <iostream>
00020 #include "handler-parser.h"
00021 
00022 class CatURLParseHandler : public ParseHandler {
00023  public:
00024   virtual void NewDocument(const Document* doc) {
00025     cout << doc->url() << "\n";
00026   }
00027 };
00028 
00029 ParseHandler* MakeCatURLHandler() {
00030   return new CatURLParseHandler;
00031 }

Generated on Wed May 29 11:37:15 2002 for MarkovPR by doxygen1.2.15