![]() |
PUMA Library Reference Manual
|
#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().
Public Member Functions | |
| PathIterator (const char *pattern) | |
| Construct a new iterator. More... | |
| ~PathIterator () | |
| Destroy the iterator. More... | |
| void | pattern (const char *pattern) |
| Set the regular expression for the files to match. More... | |
| const char * | file () const |
| Get the current file matched. More... | |
Friends | |
| class | PathManager |
| Puma::PathIterator::PathIterator | ( | const char * | pattern | ) |
Construct a new iterator.
| pattern | Regular expression for the files to match. |
| Puma::PathIterator::~PathIterator | ( | ) |
Destroy the iterator.
| const char* Puma::PathIterator::file | ( | ) | const |
Get the current file matched.
| void Puma::PathIterator::pattern | ( | const char * | pattern | ) |
Set the regular expression for the files to match.
| pattern | The regular expression. |
|
friend |