]> cygwin.com Git - cygwin-apps/setup.git/blob - FindVisitor.cc
2002-07-05 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / FindVisitor.cc
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
16 #if 0
17 static const char *cvsid =
18 "\n%%% $Id$\n";
19 #endif
20
21 #include "FindVisitor.h"
22 #include "String++.h"
23 #include "find.h"
24
25 FindVisitor::FindVisitor(){}
26 FindVisitor::~FindVisitor(){}
27
28 // Allow non-interested visitors to skip Files.
29 void
30 FindVisitor::visitFile(String const &basePath, WIN32_FIND_DATA const *)
31 {
32 }
33
34 // Default to recursing through directories.
35 void
36 FindVisitor::visitDirectory(String const &basePath, WIN32_FIND_DATA const *aDir)
37 {
38 Find aFinder (basePath + aDir->cFileName);
39 aFinder.accept (*this);
40 }
This page took 0.037193 seconds and 5 git commands to generate.