/* * Copyright (c) 2002 Robert Collins. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * A copy of the GNU General Public License can be found at * http://www.gnu.org/ * * Written by Robert Collins * */ #if 0 static const char *cvsid = "\n%%% $Id$\n"; #endif #include "FindVisitor.h" #include "String++.h" #include "find.h" FindVisitor::FindVisitor(){} FindVisitor::~FindVisitor(){} // Allow non-interested visitors to skip Files. void FindVisitor::visitFile(String const &basePath, WIN32_FIND_DATA const *) { } // Default to recursing through directories. void FindVisitor::visitDirectory(String const &basePath, WIN32_FIND_DATA const *aDir) { Find aFinder (basePath + aDir->cFileName); aFinder.accept (*this); }