Changeset 256 for trunk/lib/Commitment.h


Ignore:
Timestamp:
Apr 30, 2007, 1:17:36 PM (14 years ago)
Author:
Peter Johansson
Message:

reimplementing some part of print_main_page using Commitment class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Commitment.h

    r255 r256  
    2525*/
    2626
     27#include "Date.h"
     28
    2729#include <string>
    2830
     
    4042
    4143    /**
     44       \brief Default contructor.
     45    */
     46    Commitment(void);
     47
     48    /**
    4249       \brief The contructor.
    4350    */
    44     Commitment(std::string author, std::string date, std::string msg,
     51    Commitment(std::string author, const Date& date, std::string msg,
    4552               size_t rev);
    4653
     
    5360       \return Date
    5461    */
    55     inline std::string date(void) const { return date_; }
     62    inline const Date& date(void) const { return date_; }
    5663
    5764    /**
     
    7380
    7481    std::string author_;
    75     std::string date_;
     82    Date date_;
    7683    std::string msg_;
    7784    size_t rev_;
     
    7986  };
    8087
     88 
     89  struct GreaterRevision
     90  {
     91    inline bool operator()(const Commitment& lhs, const Commitment& rhs)
     92    { return lhs.revision()>rhs.revision(); }
     93  };
     94
    8195}} // end of namespace svndigest and namespace theplu
    8296
Note: See TracChangeset for help on using the changeset viewer.