Low level class to deal with the file iteration kernel calls.
More...
#include <path.h>
|
enum | { _readSize = 2048
} |
|
|
| IterBlock (const std::string &dirName, const char *wildCard) |
| Constructe Iterator block for given directory and file name. More...
|
|
bool | next () |
| Move to next record returned from OS. More...
|
|
const char * | next_record () const |
| Return next record from iteration block.
|
|
bool | info (PathInfo &info) |
| Get path information for iterator block. More...
|
|
void | add_ref () |
| Increase reference count on this block.
|
|
void | release () |
| Decrease reference count on this block. More...
|
|
Low level class to deal with the file iteration kernel calls.
PathInfo::Iterator::IterBlock::IterBlock |
( |
const std::string & |
dirName, |
|
|
const char * |
wildCard |
|
) |
| |
Constructe Iterator block for given directory and file name.
- Parameters
-
dirName | directory name |
wildCard | Wild card for search |
bool PathInfo::Iterator::IterBlock::info |
( |
PathInfo & |
info | ) |
|
Get path information for iterator block.
- Parameters
-
info | updated with path information if any |
- Returns
- true if there is more path information
bool PathInfo::Iterator::IterBlock::next |
( |
| ) |
|
Move to next record returned from OS.
- Returns
- true if more data to read
void tbx::PathInfo::Iterator::IterBlock::release |
( |
| ) |
|
|
inline |
Decrease reference count on this block.
If the reference count reaches zero it will be deleted
char* tbx::PathInfo::Iterator::IterBlock::_dirName |
char* tbx::PathInfo::Iterator::IterBlock::_nextRecord |
char tbx::PathInfo::Iterator::IterBlock::_readData[_readSize] |
int tbx::PathInfo::Iterator::IterBlock::_ref |
_kernel_swi_regs tbx::PathInfo::Iterator::IterBlock::_regs |
int tbx::PathInfo::Iterator::IterBlock::_toRead |
char* tbx::PathInfo::Iterator::IterBlock::_wildCard |
The documentation for this class was generated from the following files: