source: trunk/lib/LogIterator.h @ 519

Last change on this file since 519 was 519, checked in by Jari Häkkinen, 13 years ago

trac moved to new location.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#ifndef _theplu_svndigest_log_iterator_
2#define _theplu_svndigest_log_iterator_
3
4// $Id: LogIterator.h 519 2007-12-23 20:14:50Z jari $
5
6/*
7  Copyright (C) 2007 Peter Johansson
8
9  This file is part of svndigest, http://trac.thep.lu.se/svndigest
10
11  svndigest is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2 of the License, or
14  (at your option) any later version.
15
16  svndigest is distributed in the hope that it will be useful, but
17  WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  02111-1307, USA.
25*/
26
27#include "Commitment.h"
28
29#include <cctype>
30
31namespace theplu{
32namespace svndigest{
33
34  class SVNlog;
35  /**
36   */
37  class LogIterator
38  {
39  public:
40    /// Constructor
41    LogIterator(const SVNlog&, size_t index=0);
42   
43    /**
44       Copy Constructor
45    */
46    LogIterator(const LogIterator&);
47
48    virtual ~LogIterator();
49
50    bool operator<(const LogIterator&) const;
51    const Commitment* operator->() const;
52    const Commitment& operator*() const;
53    LogIterator& operator++();
54
55  private:
56    // Assignment operator not implemented
57    LogIterator& operator=(const LogIterator&);
58
59    void update_commit(void);
60
61    Commitment* commit_;
62    const SVNlog& log_;
63    size_t index_;
64  };
65
66}} // end of namespace svndigest end of namespace theplu
67
68#endif
Note: See TracBrowser for help on using the repository browser.