#include <Puma/PathIterator.h>
A path iterator is used to iterate the contents of the paths a project is managing.
Only files matching a given pattern are found. To be used with PathManager::iterate().
|
| | PathIterator (const char *pattern) |
| | Construct a new iterator.
|
| |
| | ~PathIterator () |
| | Destroy the iterator.
|
| |
| void | pattern (const char *pattern) |
| | Set the regular expression for the files to match.
|
| |
| const char * | file () const |
| | Get the current file matched.
|
| |
◆ PathIterator()
| Puma::PathIterator::PathIterator |
( |
const char * | pattern | ) |
|
Construct a new iterator.
- Parameters
-
| pattern | Regular expression for the files to match. |
◆ ~PathIterator()
| Puma::PathIterator::~PathIterator |
( |
| ) |
|
◆ file()
| const char * Puma::PathIterator::file |
( |
| ) |
const |
Get the current file matched.
- Returns
- The path to the file.
◆ pattern()
| void Puma::PathIterator::pattern |
( |
const char * | pattern | ) |
|
Set the regular expression for the files to match.
- Parameters
-
| pattern | The regular expression. |
◆ PathManager