source: trunk/lib/File.h @ 151

Last change on this file since 151 was 149, checked in by Jari Häkkinen, 15 years ago

Changed svnstat to svndigest.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1// $Id: File.h 149 2006-08-12 09:11:46Z jari $
2
3/*
4  Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson
5
6  This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
7
8  svndigest is free software; you can redistribute it and/or modify it
9  under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12
13  svndigest is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21  02111-1307, USA.
22*/
23
24#ifndef _theplu_svndigest_file_
25#define _theplu_svndigest_file_
26
27#include "Node.h"
28
29#include <string>
30
31namespace theplu{
32namespace svndigest{
33
34  class File : public Node
35  {
36  public:
37    ///
38    /// @brief Default Constructor
39    ///
40    File(const u_int level, const std::string& path, 
41         const std::string& output="") 
42      : Node(level,path,output), binary_(false), ignore_(false) {}
43
44    ///
45    /// @return A properly formatted html link to this node.
46    ///
47    std::string html_link(void) const;
48
49    ///
50    /// @brief Parsing out information from svn repository
51    ///
52    /// @return true if succesful
53    ///
54    const Stats& parse(const bool verbose=false);
55
56    ///
57    ///
58    ///
59    void print(const bool verbose=false) const;
60
61  private:
62    ///
63    /// @brief Parsing svn blame output
64    ///
65    /// @return true if parsing is succesful
66    ///
67    bool blame(void) const;
68
69    ///
70    /// @brief Copy Constructor, not implemented
71    ///
72    File(const File&);
73
74    bool binary_;
75    bool ignore_;
76  };
77
78}} // end of namespace svndigest and namespace theplu
79
80#endif
81
82
Note: See TracBrowser for help on using the repository browser.