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

Comparing SiteMapper/SiteMapper.cpp (file contents):
Revision 330 by douglas, 2004-12-13T20:46:08-08:00 vs.
Revision 348 by douglas, 2004-12-16T16:52:24-08:00

# Line 10 | Line 10
10   #include <menes-api/exename.hpp>
11   #include <menes-app/application.hpp>
12  
13 ext::String program;
14 bool debug(false);
15
13   struct SiteMapperCommand : public app::Application
14   {
15          virtual int Run(const app::ArgumentList& args)
16          {
17 <                program = api::GetExecutablePath().GetName();
17 >                SiteMapper::program = api::GetExecutablePath().GetName();
18  
19                  ext::String siteIndex, siteMap;
20  
# Line 35 | Line 32 | struct SiteMapperCommand : public app::A
32                          }
33                          else if (*arg == "-D")
34                          {
35 <                                if (!debug) debug = true;
35 >                                if (!SiteMapper::debug) SiteMapper::debug = true;
36                          }
37                  }
38  
# Line 45 | Line 42 | struct SiteMapperCommand : public app::A
42                  }
43                  else
44                  {
45 <                        api::Cout << "Usage: " << program << " -index=index -map=map [-D]\n";
45 >                        api::Cout << "Usage: " << SiteMapper::program << " -index=index -map=map [-D]\n";
46                  }
47  
48                  return 0;
# Line 59 | Line 56 | SiteMapper::SiteMapper(const ext::String
56          newMap(siteMap);
57   }
58  
59 + ext::String SiteMapper::program;
60 + bool SiteMapper::debug(false);
61 +
62   void SiteMapper::oldMap(const ext::String& siteMap)
63   {
64          ext::Handle<xml::Document> document(xml::Parse(siteMap));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines