tbx  0.7.6
Public Types | Public Member Functions | Public Attributes | List of all members
tbx::Path::Iterator::IterBlock Class Reference

Low level class to deal with the file iteration kernel calls. More...

#include <path.h>

Public Types

enum  { _readSize = 2048 }
 

Public Member Functions

 IterBlock (const std::string &dirName, const char *wildCard)
 Construct internal iterator block. More...
 
bool next ()
 Move to next record in iterator block. More...
 
const char * next_name () const
 Get next name. More...
 
void add_ref ()
 Increase reference count on this block.
 
void release ()
 Decrease reference count on this block. More...
 

Public Attributes

int _ref
 
_kernel_swi_regs _regs
 
char * _dirName
 
char * _wildCard
 
char _readData [_readSize]
 
int _toRead
 
char * _nextName
 

Detailed Description

Low level class to deal with the file iteration kernel calls.

Constructor & Destructor Documentation

◆ IterBlock()

Path::Iterator::IterBlock::IterBlock ( const std::string &  dirName,
const char *  wildCard 
)

Construct internal iterator block.

Parameters
dirNamename of directory
wildCardwild card string

Member Function Documentation

◆ next()

bool Path::Iterator::IterBlock::next ( )

Move to next record in iterator block.

Returns
true if there are more items

◆ next_name()

const char* tbx::Path::Iterator::IterBlock::next_name ( ) const
inline

Get next name.

Returns
next name found

◆ release()

void tbx::Path::Iterator::IterBlock::release ( )
inline

Decrease reference count on this block.

If the reference count reaches zero it will be deleted

Member Data Documentation

◆ _dirName

char* tbx::Path::Iterator::IterBlock::_dirName

Directory name

◆ _nextName

char* tbx::Path::Iterator::IterBlock::_nextName

Next name in the buffer

◆ _readData

char tbx::Path::Iterator::IterBlock::_readData[_readSize]

Buffer for read data

◆ _ref

int tbx::Path::Iterator::IterBlock::_ref

Reference count

◆ _regs

_kernel_swi_regs tbx::Path::Iterator::IterBlock::_regs

registers for swi calls

◆ _toRead

int tbx::Path::Iterator::IterBlock::_toRead

Bytes left to read

◆ _wildCard

char* tbx::Path::Iterator::IterBlock::_wildCard

Wild card for searching


The documentation for this class was generated from the following files: