source: trunk/lib/File.h @ 100

Last change on this file since 100 was 100, checked in by Peter Johansson, 17 years ago

closes #9 and move create function from svnstat.cc to lib/utility and also move rmdirhier to lib

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1// $Id: File.h 100 2006-06-19 09:53:16Z peter $
2
3/*
4  Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson
5
6  This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat
7
8  svnstat 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  svnstat 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_svnstat_file_
25#define _theplu_svnstat_file_
26
27#include "Node.h"
28
29#include <string>
30
31namespace theplu{
32namespace svnstat{
33
34  class File : public Node
35  {
36  public:
37    ///
38    /// @brief Default Constructor
39    ///
40    File(const std::string& path, const std::string& output="") 
41      : Node(path,output), binary_(false), ignore_(false) {}
42
43    ///
44    /// @return A properly formatted html link to this node.
45    ///
46    std::string html_link(void) const;
47
48    ///
49    /// Parsing out information from svn repository
50    ///
51    /// @return true if succesful
52    ///
53    const Stats& parse(const bool verbose=false);
54
55    ///
56    ///
57    ///
58    void print(const bool verbose=false) const;
59
60  private:
61    ///
62    /// @brief Parsing svn blame output
63    ///
64    /// @return true if parsing is succesful
65    ///
66    bool blame(void) const;
67   
68    ///
69    /// @brief Copy Constructor, not implemented
70    ///
71    File(const File&);
72
73    std::string author_;
74    bool binary_;
75    bool ignore_;
76    u_int revision_;
77 
78  };
79
80}} // end of namespace svnstat and namespace theplu
81
82#endif
83
84
Note: See TracBrowser for help on using the repository browser.