Changeset 646 for branches/replacing_gnuplot/lib/SVNlog.h
- Timestamp:
- Jun 4, 2008, 12:05:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/replacing_gnuplot/lib/SVNlog.h
r519 r646 28 28 29 29 #include "Commitment.h" 30 #include "LogIterator.h"31 30 32 31 #include <string> … … 43 42 The SVNlog class is a utility class for taking care of 'svn 44 43 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>. 46 45 */ 47 46 class SVNlog { 48 47 public: 49 50 48 /** 51 49 Default constructor. Creates empty log. … … 67 65 68 66 /** 69 \return Authors67 \return Commitments 70 68 */ 71 inline const std::vector< std::string>& author(void) const72 { return lb_. authors; }69 inline const std::vector<Commitment>& commits(void) const 70 { return lb_.commits; } 73 71 74 72 /** 75 */ 76 LogIterator begin(void) const; 77 78 /** 79 \return Dates 73 \return Commitments 80 74 */ 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; } 87 77 88 78 /** … … 92 82 93 83 /** 94 \return Messages95 */96 inline const std::vector<std::string>& message(void) const97 { return lb_.msg; }98 99 /**100 84 \return Latest commit 101 85 */ 102 Commitmentlatest_commit(void) const;86 const Commitment& latest_commit(void) const; 103 87 104 88 /** … … 106 90 empty Commitment (default constructor) is returned. 107 91 */ 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; 123 93 124 94 /** … … 142 112 */ 143 113 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; 148 115 } lb_; 149 116
Note: See TracChangeset
for help on using the changeset viewer.