|
tue_filesystem
|
#include <crawler.h>
Public Member Functions | |
| Crawler () | |
| Crawler (const Path &root_path) | |
| bool | nextPath (Path &path) |
| void | setIgnoreHiddenDirectories (bool b=true) |
| void | setIgnoreHiddenFiles (bool b=true) |
| void | setListDirectories (bool b=true) |
| void | setListFiles (bool b=true) |
| void | setRecursive (bool b=true) |
| void | setRootPath (const Path &root_path) |
| virtual | ~Crawler () |
Private Attributes | |
| bool | ignore_hidden_dirs_ |
| If set, hidden directories are not expanded. More... | |
| bool | ignore_hidden_files_ |
| If set, hidden files are not returned in the iterator. More... | |
| boost::filesystem::recursive_directory_iterator | it_dir_ |
| bool | list_dirs_ |
| If set, iterator returns found directories. More... | |
| bool | list_files_ |
| If set, iterator returns found files. More... | |
| bool | recursive_ |
| If set, iterator also returns content of sub-directories. More... | |
File system crawler, recursively walk over all files and directories in a tree from the provided root path.
| tue::filesystem::Crawler::Crawler | ( | ) |
Default constructor of the crawler iterator class. Creates an iterator that returns all non-hidden files in all non-hidden (sub-)directories.
Definition at line 12 of file crawler.cpp.
| tue::filesystem::Crawler::Crawler | ( | const Path & | root_path | ) |
Constructor of the crawler iterator with a root path. Creates an iterator that returns all non-hidden files in all non-hidden (sub-)directories.
| root_path | Starting point of the sub-tree to expand. |
Definition at line 17 of file crawler.cpp.
|
virtual |
Desctructor
Definition at line 23 of file crawler.cpp.
| bool tue::filesystem::Crawler::nextPath | ( | Path & | path | ) |
Get the next path at the file system of the crawl.
| path | [out] Next found path at the file system, if the function returns successfully. |
Definition at line 33 of file crawler.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void tue::filesystem::Crawler::setRootPath | ( | const Path & | root_path | ) |
Sets (or change) the root path of the crawler instance. Also resets the iteration.
| root_path | New root path to use for the iteration. |
Definition at line 27 of file crawler.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17