Switch to unified view

a/src/utils/fstreewalk.h b/src/utils/fstreewalk.h
1
#ifndef _FSTREEWALK_H_INCLUDED_
1
#ifndef _FSTREEWALK_H_INCLUDED_
2
#define _FSTREEWALK_H_INCLUDED_
2
#define _FSTREEWALK_H_INCLUDED_
3
/* @(#$Id: fstreewalk.h,v 1.2 2005-02-10 15:21:12 dockes Exp $  (C) 2004 J.F.Dockes */
3
/* @(#$Id: fstreewalk.h,v 1.3 2005-04-04 13:18:47 dockes Exp $  (C) 2004 J.F.Dockes */
4
4
5
#include <string>
5
#include <string>
6
6
7
#ifndef NO_NAMESPACES
7
#ifndef NO_NAMESPACES
8
using std::string;
8
using std::string;
...
...
20
    FsTreeWalker(Options opts = FtwOptNone);
20
    FsTreeWalker(Options opts = FtwOptNone);
21
    ~FsTreeWalker();
21
    ~FsTreeWalker();
22
    Status walk(const std::string &dir, FsTreeWalkerCB& cb);
22
    Status walk(const std::string &dir, FsTreeWalkerCB& cb);
23
    std::string getReason();
23
    std::string getReason();
24
    int getErrCnt();
24
    int getErrCnt();
25
    bool addSkippedName(const std::string &pattern); // Add a pattern
26
                           // for directory
27
                           // entries (file
28
                           // or dir) to be
29
                           // ignored (ie:
30
                           // #* , *~)
31
    void clearSkippedNames(); // Clear all patterns
32
25
 private:
33
 private:
26
    class Internal;
34
    class Internal;
27
    Internal *data;
35
    Internal *data;
28
};
36
};
29
37