![]() |
cppfs
1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
|
File iterator for the local file system. More...
#include <cppfs/include/cppfs/posix/LocalFileIterator.h>


Public Member Functions | |
| LocalFileIterator (std::shared_ptr< LocalFileSystem > fs, const std::string &path) | |
| Constructor. More... | |
| LocalFileIterator (std::shared_ptr< LocalFileSystem > fs, std::string &&path) | |
| Constructor. More... | |
| virtual | ~LocalFileIterator () |
| Destructor. More... | |
| virtual std::unique_ptr< AbstractFileIteratorBackend > | clone () const override |
| Create a copy of this iterator. More... | |
| virtual AbstractFileSystem * | fs () const override |
| Get file system. More... | |
| virtual bool | valid () const override |
| Check if iterator points to a valid item. More... | |
| virtual std::string | path () const override |
| Get path in file system on which the iterator operates. More... | |
| virtual int | index () const override |
| Get current index of iterator in the directory. More... | |
| virtual std::string | name () const override |
| Get name of current directory item. More... | |
| virtual void | next () override |
| Advance to the next item. More... | |
| LocalFileIterator (std::shared_ptr< LocalFileSystem > fs, const std::string &path) | |
| Constructor. More... | |
| virtual | ~LocalFileIterator () |
| Destructor. More... | |
| virtual std::unique_ptr< AbstractFileIteratorBackend > | clone () const override |
| Create a copy of this iterator. More... | |
| virtual AbstractFileSystem * | fs () const override |
| Get file system. More... | |
| virtual bool | valid () const override |
| Check if iterator points to a valid item. More... | |
| virtual std::string | path () const override |
| Get path in file system on which the iterator operates. More... | |
| virtual int | index () const override |
| Get current index of iterator in the directory. More... | |
| virtual std::string | name () const override |
| Get name of current directory item. More... | |
| virtual void | next () override |
| Advance to the next item. More... | |
Public Member Functions inherited from cppfs::AbstractFileIteratorBackend | |
| AbstractFileIteratorBackend () | |
| Constructor. More... | |
| virtual | ~AbstractFileIteratorBackend () |
| Destructor. More... | |
Protected Member Functions | |
| void | readNextEntry () |
| void | readNextEntry () |
Protected Attributes | |
| std::shared_ptr< LocalFileSystem > | m_fs |
| File system that created this iterator. More... | |
| std::string | m_path |
| Path to file or directory. More... | |
| DIR * | m_dir |
| Directory handle. More... | |
| struct dirent * | m_entry |
| Current directory entry. More... | |
| int | m_index |
| Index of the current entry. More... | |
| void * | m_findHandle |
| Search handle. More... | |
| void * | m_findData |
| Information about the current file. More... | |
File iterator for the local file system.
| cppfs::LocalFileIterator::LocalFileIterator | ( | std::shared_ptr< LocalFileSystem > | fs, |
| const std::string & | path | ||
| ) |
Constructor.
| [in] | fs | File system that created this iterator |
| [in] | path | Path to file or directory |
| cppfs::LocalFileIterator::LocalFileIterator | ( | std::shared_ptr< LocalFileSystem > | fs, |
| std::string && | path | ||
| ) |
Constructor.
| [in] | fs | File system that created this iterator |
| [in] | path | Path to file or directory |
|
virtual |
Destructor.
| cppfs::LocalFileIterator::LocalFileIterator | ( | std::shared_ptr< LocalFileSystem > | fs, |
| const std::string & | path | ||
| ) |
Constructor.
| [in] | fs | File system that created this iterator |
| [in] | path | Path to file or directory |
|
virtual |
Destructor.
|
overridevirtual |
|
overridevirtual |
Get file system.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
Check if iterator points to a valid item.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
Get path in file system on which the iterator operates.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
Get current index of iterator in the directory.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
|
overridevirtual |
Advance to the next item.
Implements cppfs::AbstractFileIteratorBackend.
|
protected |
|
overridevirtual |
|
overridevirtual |
Get file system.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
Check if iterator points to a valid item.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
Get path in file system on which the iterator operates.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
Get current index of iterator in the directory.
Implements cppfs::AbstractFileIteratorBackend.
|
overridevirtual |
|
overridevirtual |
Advance to the next item.
Implements cppfs::AbstractFileIteratorBackend.
|
protected |
|
protected |
File system that created this iterator.
|
protected |
Path to file or directory.
|
protected |
Directory handle.
|
protected |
Current directory entry.
|
protected |
Index of the current entry.
|
protected |
Search handle.
|
protected |
Information about the current file.
1.8.11