|
reSIProcate/rutil
9694
|
#include <FileSystem.hxx>

Public Member Functions | |
| iterator (const Directory &dir) | |
| iterator () | |
| ~iterator () | |
| iterator & | operator++ () |
| bool | operator!= (const iterator &rhs) const |
| bool | operator== (const iterator &rhs) const |
| const Data & | operator* () const |
| const Data * | operator-> () const |
Private Attributes | |
| DIR * | mNixDir |
| struct dirent * | mDirent |
| Data | mFile |
Definition at line 38 of file FileSystem.hxx.
| FileSystem::Directory::iterator::iterator | ( | const Directory & | dir | ) |
Definition at line 26 of file FileSystem.cxx.
References resip::Data::c_str(), resip::Data::empty(), and resip::FileSystem::Directory::getPath().
{
assert(!dir.getPath().empty());
//InfoLog(<< "FileSystem::Directory::iterator::iterator: " << dir.getPath());
if ((mNixDir = opendir( dir.getPath().c_str() )))
{
mDirent = readdir(mNixDir);
if (mDirent)
{
//InfoLog(<< "FileSystem::Directory::iterator::iterator, first file " << mFile);
mFile = mDirent->d_name;
}
}
else
{
mDirent = 0;
}
}

| FileSystem::Directory::iterator::iterator | ( | ) |
Definition at line 21 of file FileSystem.cxx.
| FileSystem::Directory::iterator::~iterator | ( | ) |
Definition at line 46 of file FileSystem.cxx.
| bool FileSystem::Directory::iterator::operator!= | ( | const iterator & | rhs | ) | const |
Definition at line 72 of file FileSystem.cxx.
{
return !(*this == rhs);
}
| const Data & FileSystem::Directory::iterator::operator* | ( | ) | const |
Definition at line 91 of file FileSystem.cxx.
{
return mFile;
}
| FileSystem::Directory::iterator & FileSystem::Directory::iterator::operator++ | ( | ) |
| const Data * FileSystem::Directory::iterator::operator-> | ( | ) | const |
Definition at line 98 of file FileSystem.cxx.
{
return &mFile;
}
| bool FileSystem::Directory::iterator::operator== | ( | const iterator & | rhs | ) | const |
Definition at line 79 of file FileSystem.cxx.
References mDirent.
struct dirent* resip::FileSystem::Directory::iterator::mDirent [private] |
Definition at line 55 of file FileSystem.hxx.
Referenced by operator==().
Definition at line 57 of file FileSystem.hxx.
DIR* resip::FileSystem::Directory::iterator::mNixDir [private] |
Definition at line 54 of file FileSystem.hxx.
1.7.5.1