source: trunk/lib/LogIterator.h @ 448

Last change on this file since 448 was 448, checked in by Peter Johansson, 14 years ago

adding LogIterator?

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#ifndef _theplu_svndigest_log_iterator_
2#define _theplu_svndigest_log_iterator_
3
4// $Id: LogIterator.h 448 2007-08-16 18:44:46Z peter $
5
6/*
7  Copyright (C) 2007 Peter Johansson
8
9  This file is part of svndigest, http://trac.thep.lu.se/trac/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    virtual ~LogIterator();
44
45    bool operator<(const LogIterator&) const;
46    const Commitment* operator->();
47    const Commitment& operator*();
48    LogIterator& operator++();
49
50  private:
51    // Copy Constructor not implemented
52    LogIterator(const LogIterator&);
53    // Assignment operator not implemented
54    LogIterator& operator=(const LogIterator&);
55
56    Commitment* commit_;
57    const SVNlog& log_;
58    size_t index_;
59  };
60
61}} // end of namespace svndigest end of namespace theplu
62
63#endif
Note: See TracBrowser for help on using the repository browser.