Changeset 129 for trunk/lib/Node.h


Ignore:
Timestamp:
Aug 2, 2006, 7:56:18 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses ticket:23. Changed usage of 'svn info' to API calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r112 r129  
    2626
    2727#include "Stats.h"
     28#include "SVNinfo.h"
    2829#include "utility.h"
    2930
     
    6162
    6263    ///
     64    /// @brief Get the author of the latest commit.
    6365    ///
    64     ///
    65     virtual std::string author(void) const=0;
     66    std::string author(void) const { return svninfo_.last_changed_author(); }
    6667
    6768    ///
     
    8182
    8283    ///
     84    /// @brief Get the revision number of the latest commit.
    8385    ///
    84     ///
    85     virtual u_int last_changed_rev(void) const=0;
     86    svn_revnum_t last_changed_rev(void) const
     87    { return svninfo_.last_changed_rev(); }
    8688
    8789    ///
     
    9092    inline const std::string& output_name(void) const { return output_name_; }
    9193
    92     ///
    93     /// @brief parsing file using svn blame.
    94     ///
    95     virtual const Stats& parse(const bool verbose=false)=0;
     94    ///
     95    /// @brief parsing file using svn blame.
     96    ///
     97    virtual const Stats& parse(const bool verbose=false)=0;
    9698
    9799    inline const std::string& path(void) const { return path_; }
     
    102104    virtual void print(const bool verbose=false) const=0;
    103105
    104   protected:
     106  protected:
    105107
    106108    ///
     
    123125    u_int level_;
    124126    std::string output_name_; //without suffix
    125     std::string path_;
    126     Stats stats_;
     127    std::string path_;
     128    Stats stats_;
    127129
    128130  private:
     
    132134    Node(const Node&);
    133135
     136    SVNinfo svninfo_;
    134137  };
    135138
Note: See TracChangeset for help on using the changeset viewer.