Changeset 14 for trunk/lib/Node.h


Ignore:
Timestamp:
Dec 30, 2005, 3:57:47 PM (16 years ago)
Author:
Peter Johansson
Message:

adding Stats class and removed pointer from node to its mother(dir), which enforced some changes here and there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r13 r14  
    33#ifndef _theplu_svnstat_node_
    44#define _theplu_svnstat_node_
     5
     6#include "Stats.h"
    57
    68#include <map>
     
    2830
    2931    ///
    30     /// @return accumulated vector of total
    31     ///
    32     std::vector<u_int> accumulated(void) const;
    33 
    34     ///
    35     /// @return accumulated vector of stats_[user]
    36     ///
    37     std::vector<u_int> accumulated(const std::string& user);
    38 
    39     ///
    40     /// @brief adding a line to user from revision to the stats
    41     ///
    42     void add(const std::string& user, const u_int& revision);
    43 
    44     ///
    4532    /// @brief parsing file using svn blame.
    4633    ///
    47     virtual bool parse(void)=0;
     34    virtual const Stats& parse(void)=0;
    4835
    4936    ///
     
    7057    std::string path_;
    7158    u_int revision_;
    72     // Peter, if the vector is sparse make it a map
    73     std::map<std::string, std::vector<u_int> > stats_;
     59    Stats stats_;
    7460    std::string uuid_;
    7561
Note: See TracChangeset for help on using the changeset viewer.