WvStreams
|
00001 /* -*- Mode: C++ -*- 00002 * Worldvisions Weaver Software: 00003 * Copyright (C) 1997-2002 Net Integration Technologies, Inc. 00004 * 00005 * Directory iterator. Recursively uses opendir and readdir, so you don't 00006 * have to. Basically implements 'find'. 00007 * 00008 */ 00009 00010 #ifndef __WVGLOBDIRITER_H 00011 #define __WVGLOBDIRITER_H 00012 00013 #include "wvdiriter.h" 00014 00015 class WvGlob; 00016 00017 class WvGlobDirIter : public WvDirIter 00018 { 00019 00020 private: 00021 00022 WvGlob *glob; 00023 00024 public: 00025 00026 WvGlobDirIter( WvStringParm dirname, WvStringParm globstr, 00027 bool _recurse = true, bool _skip_mounts = false, 00028 size_t sizeof_stat = sizeof(struct stat) ); 00029 ~WvGlobDirIter(); 00030 00031 bool next(); 00032 00033 }; 00034 00035 #endif