Ignore:
Timestamp:
Nov 12, 2010, 5:01:35 AM (11 years ago)
Author:
Peter Johansson
Message:

closes #457. Lifting out plotting functions in Stats into a new class
StatsPlotter?. In same manner lifting out print functions from
Node/Directory/File? into a new hierarchy
NodePrinter/DirectoryPrinter/FilePrinter?. To accomplish these splits
without to much recoding some friendships are introduced. These new
classes are only needed for svndigest (not svncopyright) and are
therefore placed in a library named libsvndigest together with Graph
class and first_page functions. Remaining functionality, shared
between svncopyright and svndigest, are located in libsvndigest_core
and linked into both binaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SvndigestVisitor.cc

    r1234 r1290  
    2323
    2424#include "Directory.h"
     25#include "DirectoryPrinter.h"
    2526#include "File.h"
     27#include "FilePrinter.h"
    2628#include "NodeVisitor.h"
    2729
     
    4850      dir.collect_stats();
    4951      dir.init_tiny_stats();
    50       dir.print(verbose_);
     52      DirectoryPrinter dp(dir);
     53      dp.print(verbose_);
    5154    }
    5255  }
     
    5962    if (report_) {
    6063      file.init_tiny_stats();
    61       if (!file.ignore())
    62         file.print(verbose_);
     64      if (!file.ignore()) {
     65        FilePrinter fp(file);
     66        fp.print(verbose_);
     67      }
    6368    }
    6469  }
Note: See TracChangeset for help on using the changeset viewer.