]>
cygwin.com Git - cygwin-apps/setup.git/blob - FindVisitor.cc
2 * Copyright (c) 2002 Robert Collins.
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.
9 * A copy of the GNU General Public License can be found at
12 * Written by Robert Collins <robertc@hotmail.com>
17 static const char *cvsid
=
21 #include "FindVisitor.h"
25 FindVisitor::FindVisitor(){}
26 FindVisitor::~FindVisitor(){}
28 // Allow non-interested visitors to skip Files.
30 FindVisitor::visitFile(String
const &basePath
, WIN32_FIND_DATA
const *)
34 // Default to recursing through directories.
36 FindVisitor::visitDirectory(String
const &basePath
, WIN32_FIND_DATA
const *aDir
)
38 Find
aFinder (basePath
+ aDir
->cFileName
);
39 aFinder
.accept (*this);
This page took 0.037193 seconds and 5 git commands to generate.