#include <TraverseDirectory.hxx>
Public Member Functions | |
| TraverseDirectory (void) | |
| virtual | ~TraverseDirectory (void) |
| void | Traverse (const std::string &rootname="", int maxdepth=-1) |
Protected Member Functions | |
| virtual void | OnFile (const std::string &filename) |
| virtual void | OnDirectory (const std::string &dirname) |
| void | SkipSubdirectories (void) |
| Called from OnDirectory, to indicate that the current directory should not be recursed any further (but do traverse the files inside that directory). | |
| void | SkipDirectory (void) |
| Called from OnDirectory, to indicate that the current directory should not be recursed any further, including the files inside that directory). | |
| std::string | GetExtension (const std::string &filename) |
| Helper method for client classes. | |
Definition at line 29 of file TraverseDirectory.hxx.
| TraverseDirectory::TraverseDirectory | ( | void | ) |
Definition at line 26 of file TraverseDirectory.cxx.
| virtual TraverseDirectory::~TraverseDirectory | ( | void | ) | [inline, virtual] |
Definition at line 42 of file TraverseDirectory.hxx.
| std::string TraverseDirectory::GetExtension | ( | const std::string & | filename | ) | [protected] |
Helper method for client classes.
Definition at line 154 of file TraverseDirectory.cxx.
| virtual void TraverseDirectory::OnDirectory | ( | const std::string & | dirname | ) | [inline, protected, virtual] |
Definition at line 50 of file TraverseDirectory.hxx.
Referenced by Traverse().
| virtual void TraverseDirectory::OnFile | ( | const std::string & | filename | ) | [inline, protected, virtual] |
Definition at line 49 of file TraverseDirectory.hxx.
| void TraverseDirectory::SkipDirectory | ( | void | ) | [protected] |
Called from OnDirectory, to indicate that the current directory should not be recursed any further, including the files inside that directory).
| void TraverseDirectory::SkipSubdirectories | ( | void | ) | [protected] |
Called from OnDirectory, to indicate that the current directory should not be recursed any further (but do traverse the files inside that directory).
| void TraverseDirectory::Traverse | ( | const std::string & | rootname = "", |
|
| int | maxdepth = -1 | |||
| ) |
Definition at line 116 of file TraverseDirectory.cxx.
References OnDirectory().
1.6.3