Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGlobCountVisitor Class Reference

Visit directory entries according to flags and matching with wild card pattern, as per FXGlobVisitor above. More...

#include <FXDirVisitor.h>

Inheritance diagram for FX::FXGlobCountVisitor:
FX::FXGlobVisitor FX::FXDirVisitor

Public Member Functions

 FXGlobCountVisitor ()
 Create new glob counting visitor.
 
FXuint traverse (const FXString &path, const FXString &wild="*", FXuint opts=FXDir::MatchAll, FXint limit=1000)
 Start traversal of path.
 
FXlong getTotalFolders () const
 Return total number of folders found.
 
FXlong getTotalFiles () const
 Return total number of files matched.
 
FXlong getTotalBytes () const
 Return total number of bytes in matching files.
 
FXlong getMaximumDepth () const
 Return maximum depth of directory tree.
 
virtual FXuint enter (const FXString &path)
 Count directories.
 
virtual FXuint visit (const FXString &path)
 Count files.
 
virtual FXuint leave (const FXString &path)
 Count depth.
 
virtual ~FXGlobCountVisitor ()
 Destructor.
 
- Public Member Functions inherited from FX::FXGlobVisitor
 FXGlobVisitor ()
 Construct directory visitor.
 
FXuint traverse (const FXString &path, const FXString &wild="*", FXuint opts=FXDir::MatchAll, FXint depth=1000)
 Start traversal at given path.
 
virtual ~FXGlobVisitor ()
 Destructor.
 
- Public Member Functions inherited from FX::FXDirVisitor
 FXDirVisitor ()
 Initialize directory visitor.
 
FXuint traverse (const FXString &path, FXint limit=1000)
 Start traversal at given path.
 
FXbool visiting () const
 Return true if we're actively visiting directories.
 
const FXStatinfo () const
 Return stats on current file or directory.
 
virtual ~FXDirVisitor ()
 Destructor.
 

Detailed Description

Visit directory entries according to flags and matching with wild card pattern, as per FXGlobVisitor above.

In addition, count numbers of items visited, with an eye toward setting progress bar boundaries.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp