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

Comparing SiteMapperOld/SiteMapper.cpp (file contents):
Revision 188 by Douglas Thrift, 2004-08-15T01:09:47-07:00 vs.
Revision 189 by Douglas Thrift, 2004-08-15T01:27:38-07:00

# Line 40 | Line 40 | int main(int argc, char* argv[])
40                  }
41          }
42  
43 <        if (siteIndex != "" && siteMap != "")
43 >        if (!siteIndex.empty() && !siteMap.empty())
44          {
45                  XMLPlatformUtils::Initialize();
46                  XPathEvaluator::initialize();
# Line 161 | Line 161 | void SiteMapper::newIndex(const string&
161                  if (page == matcher(string("^Douglas\\sThrift's\\sWebsite\\s\\|\\sDou")
162                          + "glas\\sThrift's\\sBlog:\\s(.+)$"))
163                  {
164 <                        if (Matcher("^\\w+\\s\\d\\d\\d\\d\\sArchives$") == matcher[1])
164 >                        if (Matcher("^\\w+\\s\\d{4}\\sArchives$") == matcher[1])
165                          {
166                                  page.setTitle(matcher[1]);
167  
# Line 204 | Line 204 | bool SiteMapper::newIndex(vector<Page>&
204  
205                                  pages[index] = page;
206  
207 +                                cout << "Updated: " << page.getUrl() << '\n';
208 +
209                                  return true;
210                          }
211                          else if (matcher('^' + pages[index].getPath()) == page)
# Line 267 | Line 269 | void SiteMapper::newMap(vector<Page>& pa
269          for (multimap<string, Page>::iterator itor(newPages.lower_bound(childOf));
270                  itor != newPages.upper_bound(childOf); itor++)
271          {
272 +                cout << "Added: " << itor->second.getUrl() << '\n';
273 +
274                  pages.push_back(itor->second);
275          }
276  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines