src/sitemapservice/basesitemapservice.cc
bool BaseSitemapService::AddUrl(const UrlElement &url) {
  ++urls_count_;
  urlset_.AddUrl(url);

  // Url number meets limit, so they should be written to a file
  if (sitemapsetting_->max_file_url_number() > 0
      && urlset_.Size() >= sitemapsetting_->max_file_url_number()) {
    return Flush();
  }

  return true;
}
// Add url to urlset_ and write it to sitemap file if the urlset_ is full.
Add url to urlset_ and write it to sitemap file if the urlset_ is full.
Add url to urlset_ and write it to sitemap file if the urlset_ is full .
bool BaseSitemapService::AddUrl(const UrlElement &url) {
  ++urls_count_;
  urlset_.AddUrl(url);
  if (sitemapsetting_->max_file_url_number() > 0
      && urlset_.Size() >= sitemapsetting_->max_file_url_number()) {
    return Flush();
  }
  return true;
}
bool BaseSitemapService :: AddUrl ( const UrlElement & url ) { ++ urls_count_ ; urlset_ . AddUrl ( url ) ; if ( sitemapsetting_ -> max_file_url_number ( ) > 0 && urlset_ . Size ( ) >= sitemapsetting_ -> max_file_url_number ( ) ) { return Flush ( ) ; } return true ; }
Add url to urlset_ and write it to sitemap file if the urlset_ is full.
Add url to urlset_ and write it to sitemap file if the urlset_ is full .
// Url number meets limit, so they should be written to a file