Changeset 1290 for trunk/lib/Stats.h


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/Stats.h

    r1194 r1290  
    106106    */
    107107    void parse(const std::string& path, svn_revnum_t rev=0);
    108 
    109     ///
    110     /// Create statistics graph.
    111     ///
    112     std::string plot(const std::string&, const std::string&) const;
    113 
    114     ///
    115     /// Plotting code, comment, other, and total in same plot (for
    116     /// 'all' not individual authors).
    117     ///
    118     void plot_summary(const std::string& output) const;
    119108
    120109    /**
     
    241230    svn_revnum_t load_cache8(std::istream&);
    242231
    243     /**
    244        called from plot(2)
    245      */
    246     // FIXME: why should Stats know about plotting?
    247     void plot(const std::string& basename, const std::string& linetype,
    248               const std::string& format) const;
    249 
    250     /**
    251        called from plot_summary(1)
    252      */
    253     // FIXME: why should Stats know about plotting?
    254     void plot_summary(const std::string& basename,
    255                       const std::string& format) const;
    256 
    257232    // Change this string if cache format is changed in such a way
    258233    // that all old cache files are obsolete.
     
    285260    Stats& operator=(const Stats&);
    286261
     262    friend class StatsPlotter;
    287263  };
    288264}} // end of namespace svndigest end of namespace theplu
Note: See TracChangeset for help on using the changeset viewer.