]>
Commit | Line | Data |
---|---|---|
b401ef47 RC |
1 | /* |
2 | * Copyright (c) 2002 Robert Collins. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by Robert Collins <robertc@hotmail.com> | |
13 | * | |
14 | */ | |
15 | ||
c93bc6d0 MB |
16 | #ifndef SETUP_FINDVISITOR_H |
17 | #define SETUP_FINDVISITOR_H | |
b401ef47 | 18 | |
fd93eff9 | 19 | #include <string> |
b401ef47 RC |
20 | /* For the wfd definition. See the TODO in find.cc */ |
21 | #include "win32.h" | |
22 | ||
23 | class FindVisitor | |
24 | { | |
25 | public: | |
fd93eff9 MB |
26 | virtual void visitFile(const std::string& basePath, |
27 | WIN32_FIND_DATA const *); | |
28 | virtual void visitDirectory(const std::string& basePath, | |
9d0dd17b CV |
29 | WIN32_FIND_DATA const *, |
30 | int level); | |
b401ef47 RC |
31 | virtual ~ FindVisitor (); |
32 | protected: | |
33 | FindVisitor (); | |
34 | FindVisitor (FindVisitor const &); | |
35 | FindVisitor & operator= (FindVisitor const &); | |
36 | }; | |
37 | ||
c93bc6d0 | 38 | #endif /* SETUP_FINDVISITOR_H */ |