ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/GoogleTron.cpp
(Generate patch)

Comparing GoogleTron/GoogleTron.cpp (file contents):
Revision 673 by douglas, 2006-03-02T21:17:01-08:00 vs.
Revision 676 by douglas, 2006-03-04T05:15:00-08:00

# Line 10 | Line 10
10   #include <app/simple.hpp>
11   #include <xml/textwriter.hpp>
12  
13 + #include "GoogleTron.hpp"
14 + #include "GzipWriter.hpp"
15 +
16   int Main(const app::Options &options)
17   {
18 <        _S<xml::TextWriter> writer(api::Cout);
18 >        GoogleTron tron;
19 >
20 >        return 0;
21 > }
22 >
23 > GoogleTron::GoogleTron() : finished(false)
24 > {
25 > }
26 >
27 > GoogleTron::~GoogleTron()
28 > {
29 > }
30 >
31 > int GoogleTron::Output()
32 > {
33 >        _S<GzipWriter> gzip(_B("sitemap.gz"));
34 >        _S<xml::TextWriter> writer(gzip);
35          xml::ScopeElement urlset(writer, _B("urlset"));
36  
37          writer.SetAttribute(_B("xmlns"), _B("http://www.google.com/schemas/sitemap/0.84"));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines