Ignore:
Timestamp:
Jun 4, 2008, 12:05:22 AM (13 years ago)
Author:
Jari Häkkinen
Message:

Merged trunk changes r608:645 to replacing_gnuplot branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/replacing_gnuplot/lib/SVNlog.h

    r519 r646  
    2828
    2929#include "Commitment.h"
    30 #include "LogIterator.h"
    3130
    3231#include <string>
     
    4342     The SVNlog class is a utility class for taking care of 'svn
    4443     log' information. An 'svn log' is performed on an item, the
    45      log information for each revision is stored in vectors.
     44     log information for each revision is a vector<Commitment>.
    4645  */
    4746  class SVNlog {
    4847  public:
    49 
    5048    /**
    5149       Default constructor. Creates empty log.
     
    6765
    6866    /**
    69        \return Authors
     67       \return Commitments
    7068    */
    71     inline const std::vector<std::string>& author(void) const
    72     { return lb_.authors; }
     69    inline const std::vector<Commitment>& commits(void) const
     70    { return lb_.commits; }
    7371
    7472    /**
    75      */
    76     LogIterator begin(void) const;
    77 
    78     /**
    79        \return Dates
     73       \return Commitments
    8074    */
    81     inline const std::vector<std::string>& date(void) const
    82     { return lb_.commit_dates; }
    83 
    84     /**
    85      */
    86     LogIterator end(void) const;
     75    inline std::vector<Commitment>& commits(void)
     76    { return lb_.commits; }
    8777
    8878    /**
     
    9282
    9383    /**
    94        \return Messages
    95     */
    96     inline const std::vector<std::string>& message(void) const
    97     { return lb_.msg; }
    98 
    99     /**
    10084       \return Latest commit
    10185    */
    102     Commitment latest_commit(void) const;
     86    const Commitment& latest_commit(void) const;
    10387
    10488    /**
     
    10690       empty Commitment (default constructor) is returned.
    10791    */
    108     Commitment latest_commit(std::string author) const;
    109 
    110     /**
    111        \return Revisions
    112     */
    113     inline const std::vector<size_t>& revision(void) const
    114     { return lb_.rev; }
    115 
    116     /**
    117      */
    118     void push_back(const Commitment&);
    119 
    120     /**
    121      */
    122     void reserve(size_t i);
     92    const Commitment& latest_commit(std::string author) const;
    12393
    12494    /**
     
    142112    */
    143113    struct log_receiver_baton {
    144       std::vector<std::string> authors;
    145       std::vector<std::string> commit_dates;
    146       std::vector<std::string> msg;
    147       std::vector<size_t> rev;
     114      std::vector<Commitment> commits;
    148115    } lb_;
    149116
Note: See TracChangeset for help on using the changeset viewer.