source: trunk/lib/Directory.h @ 48

Last change on this file since 48 was 29, checked in by Peter Johansson, 16 years ago

modified output file names

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1// $Id: Directory.h 29 2006-01-09 09:35:50Z peter $
2
3#ifndef _theplu_svnstat_directory_
4#define _theplu_svnstat_directory_
5
6#include "Node.h"
7
8#include <list>
9#include <string>
10
11namespace theplu{
12namespace svnstat{
13
14  ///
15  /// Class taking care of directories.
16  ///
17  class Directory : public Node
18  {
19  public:
20    ///
21    /// @brief Constructor
22    ///
23    /// Recursively create a directory tree starting from \a path. All
24    /// entries except explicit directories are treated as File nodes,
25    /// i.e. symbolic links to directories are treated as File
26    /// nodes. This will ensure that the directory structure is a tree
27    /// and double counting of branches is avoided.
28    ///
29    /// @note Nodes named '.', '..', and '.svn' are ignored and not
30    /// traversed.
31    ///
32    Directory(const std::string& path, const std::string& output="");
33
34    ///
35    /// @brief Destructor
36    ///
37    ~Directory(void);
38
39    const Stats& parse(void);
40
41    void print(const std::string&) const;
42
43    void purge(void);
44
45  private:
46    ///
47    /// @brief Copy Constructor, not implemented
48    ///
49    Directory(const Directory&);
50
51    typedef std::list<Node*>::iterator NodeIterator;
52    typedef std::list<Node*>::const_iterator NodeConstIter_;
53    std::list<Node*> daughters_;
54  };
55
56}} // end of namespace svnstat and namespace theplu
57
58#endif
Note: See TracBrowser for help on using the repository browser.