2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * Globbing directory iterator.
9 #include "wvglobdiriter.h"
12 WvGlobDirIter::WvGlobDirIter( WvStringParm dirname
, WvStringParm glob_str
,
13 bool _recurse
, bool _skip_mounts
, size_t sizeof_stat
)
14 : WvDirIter(dirname
, _recurse
, _skip_mounts
, sizeof_stat
), glob(NULL
)
16 if (!glob_str
.isnull())
18 glob
= new WvGlob(glob_str
);
27 WvGlobDirIter::~WvGlobDirIter()
29 if (glob
) delete glob
;
32 bool WvGlobDirIter::next()
38 result
= WvDirIter::next();
39 } while (result
&& glob
&& !glob
->match(ptr()->relname
));