|
nx_video_source_sdk
1.0
Video Source SDK
|
Iterates through contents of specified directory. More...
#include <dir_iterator.h>
Public Member Functions | |
| DirIterator (const std::string &dirPath) | |
| void | setRecursive (bool _recursive) |
| Enable/disable reading child directories. By default recursive mode is off. | |
| void | setWildCardMask (const std::string &wildcardMask) |
| void | setEntryTypeFilter (unsigned int entryTypeMask) |
| Filter found entries by entry type. More... | |
| bool | next () |
| Moves iterator to the next entry. More... | |
| std::string | entryPath () const |
| Returns path to current entry (path relative to dirPath, specified at initialization) | |
| std::string | entryFullPath () const |
| Returns "search dir path" / "entry path". | |
| FsEntryType::Value | entryType () const |
| uint64_t | entrySize () const |
Iterates through contents of specified directory.
Example of usage:
| DirIterator::DirIterator | ( | const std::string & | dirPath | ) |
Initially, iterator is pointing to some undefined position
| dirPath | Directory to iterate |
| bool DirIterator::next | ( | ) |
Moves iterator to the next entry.
| void DirIterator::setEntryTypeFilter | ( | unsigned int | entryTypeMask | ) |
Filter found entries by entry type.
By default, all entries are found
| entryTypeMask | Bit OR- field containing bits of EntryType enumeration |
| void DirIterator::setWildCardMask | ( | const std::string & | wildcardMask | ) |
By default, no mask is applied
| wildcardMask | Enable filtering by wildcardMask. Empty string - no mask |
1.8.14