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

    r519 r646  
    2727#include <string>
    2828
     29#include <subversion-1/svn_types.h>
     30
    2931namespace theplu {
    3032namespace svndigest {
     
    4850    */
    4951    Commitment(std::string author, std::string date, std::string msg,
    50                size_t rev);
     52               svn_revnum_t rev);
    5153
    5254    /**
    5355       \return Author
    5456    */
    55     inline std::string author(void) const { return author_; }
     57    inline const std::string& author(void) const { return author_; }
    5658
    5759    /**
    5860       \return Date
    5961    */
    60     inline std::string date(void) const { return date_; }
     62    inline const std::string& date(void) const { return date_; }
    6163
    6264    /**
    6365       \return Message
    6466    */
    65     inline std::string message(void) const { return msg_; }
     67    inline const std::string& message(void) const { return msg_; }
    6668
    6769    /**
    6870       \return Revision
    6971    */
    70     inline size_t revision(void) const { return rev_; }
     72    inline svn_revnum_t revision(void) const { return rev_; }
    7173
    7274  private:
     
    8082    std::string date_;
    8183    std::string msg_;
    82     size_t rev_;
     84    svn_revnum_t rev_;
    8385
    8486  };
     
    9193  };
    9294
     95  struct GetAuthor
     96  {
     97    inline const std::string& operator()(const Commitment& commit) const
     98    { return commit.author(); }
     99  };
     100
     101  struct GetRevision
     102  {
     103    inline svn_revnum_t operator()(const Commitment& commit) const
     104    { return commit.revision(); }
     105  };
     106
    93107}} // end of namespace svndigest and namespace theplu
    94108
Note: See TracChangeset for help on using the changeset viewer.