source: trunk/lib/SVNlog.h @ 253

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

minor docs, and inlined functions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1#ifndef _theplu_svndigest_svnlog_
2#define _theplu_svndigest_svnlog_
3
4// $Id: SVNlog.h 253 2007-04-29 14:21:28Z peter $
5
6/*
7  Copyright (C) 2007 Peter Johansson
8
9  This file is part of svndigest, http://lev.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 "SVN.h"
28
29#include <string>
30#include <vector>
31
32#include <subversion-1/svn_client.h>
33
34namespace theplu {
35namespace svndigest {
36
37  class SVN;
38
39  /**
40     The SVNlog class is a utility class for taking care of 'svn
41     log' information. An 'svn log' is performed on an item, the
42     log information for each revision is stored in vectors.
43  */
44  class SVNlog {
45  public:
46
47    /**
48       \brief The contructor.
49       
50       The constructor performs an 'svn log' on \a path and
51       stores the information for later access.
52    */
53    explicit SVNlog(std::string path);
54
55    /**
56       \brief The destructor.
57    */
58    ~SVNlog(void);
59
60    /**
61       \return Authors
62    */
63    inline const std::vector<std::string>& author(void) const
64    { return lb_.authors; }
65
66    /**
67       \return Dates
68    */
69    inline const std::vector<std::string>& date(void) const
70    { return lb_.commit_dates; }
71
72    /**
73       \return Messages
74    */
75    inline const std::vector<std::string>& message(void) const
76    { return lb_.msg; }
77
78    /**
79       \return Revisions
80    */
81    inline const std::vector<size_t>& revision(void) const
82    { return lb_.rev; }
83
84  private:
85
86    ///
87    /// @brief Copy Constructor, not implemented.
88    ///
89    SVNlog(const SVNlog&);
90
91    log_receiver_baton lb_;
92
93  };
94
95}} // end of namespace svndigest and namespace theplu
96
97#endif
Note: See TracBrowser for help on using the repository browser.