Changeset 256 for trunk/lib/Commitment.h
- Timestamp:
- Apr 30, 2007, 1:17:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Commitment.h
r255 r256 25 25 */ 26 26 27 #include "Date.h" 28 27 29 #include <string> 28 30 … … 40 42 41 43 /** 44 \brief Default contructor. 45 */ 46 Commitment(void); 47 48 /** 42 49 \brief The contructor. 43 50 */ 44 Commitment(std::string author, std::stringdate, std::string msg,51 Commitment(std::string author, const Date& date, std::string msg, 45 52 size_t rev); 46 53 … … 53 60 \return Date 54 61 */ 55 inline std::stringdate(void) const { return date_; }62 inline const Date& date(void) const { return date_; } 56 63 57 64 /** … … 73 80 74 81 std::string author_; 75 std::stringdate_;82 Date date_; 76 83 std::string msg_; 77 84 size_t rev_; … … 79 86 }; 80 87 88 89 struct GreaterRevision 90 { 91 inline bool operator()(const Commitment& lhs, const Commitment& rhs) 92 { return lhs.revision()>rhs.revision(); } 93 }; 94 81 95 }} // end of namespace svndigest and namespace theplu 82 96
Note: See TracChangeset
for help on using the changeset viewer.