|
a/src/utils/fstreewalk.h |
|
b/src/utils/fstreewalk.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _FSTREEWALK_H_INCLUDED_
|
17 |
#ifndef _FSTREEWALK_H_INCLUDED_
|
18 |
#define _FSTREEWALK_H_INCLUDED_
|
18 |
#define _FSTREEWALK_H_INCLUDED_
|
19 |
/* @(#$Id: fstreewalk.h,v 1.8 2007-08-28 08:08:39 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: fstreewalk.h,v 1.9 2007-08-30 09:01:52 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
#include <list>
|
22 |
#include <list>
|
23 |
|
23 |
|
24 |
#ifndef NO_NAMESPACES
|
24 |
#ifndef NO_NAMESPACES
|
|
... |
|
... |
44 |
FtwStatAll = FtwError|FtwStop};
|
44 |
FtwStatAll = FtwError|FtwStop};
|
45 |
enum Options {FtwOptNone = 0, FtwNoRecurse = 1, FtwFollow = 2};
|
45 |
enum Options {FtwOptNone = 0, FtwNoRecurse = 1, FtwFollow = 2};
|
46 |
|
46 |
|
47 |
FsTreeWalker(Options opts = FtwOptNone);
|
47 |
FsTreeWalker(Options opts = FtwOptNone);
|
48 |
~FsTreeWalker();
|
48 |
~FsTreeWalker();
|
|
|
49 |
|
|
|
50 |
void setOpts(Options opts);
|
|
|
51 |
|
49 |
/**
|
52 |
/**
|
50 |
* Begin file system walk.
|
53 |
* Begin file system walk.
|
51 |
* @param dir is not checked against the ignored patterns (this is
|
54 |
* @param dir is not checked against the ignored patterns (this is
|
52 |
* a feature and must not change.
|
55 |
* a feature and must not change.
|
53 |
* @param cb the function object that will be called back for every
|
56 |
* @param cb the function object that will be called back for every
|