![]() |
cppfs
1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
|
Interface for iterating on directories. More...
#include <cppfs/include/cppfs/AbstractFileIteratorBackend.h>

Public Member Functions | |
| AbstractFileIteratorBackend () | |
| Constructor. More... | |
| virtual | ~AbstractFileIteratorBackend () |
| Destructor. More... | |
| virtual std::unique_ptr< AbstractFileIteratorBackend > | clone () const =0 |
| Create a copy of this iterator. More... | |
| virtual AbstractFileSystem * | fs () const =0 |
| Get file system. More... | |
| virtual bool | valid () const =0 |
| Check if iterator points to a valid item. More... | |
| virtual std::string | path () const =0 |
| Get path in file system on which the iterator operates. More... | |
| virtual int | index () const =0 |
| Get current index of iterator in the directory. More... | |
| virtual std::string | name () const =0 |
| Get name of current directory item. More... | |
| virtual void | next ()=0 |
| Advance to the next item. More... | |
Interface for iterating on directories.
| cppfs::AbstractFileIteratorBackend::AbstractFileIteratorBackend | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Create a copy of this iterator.
Implemented in cppfs::LocalFileIterator, cppfs::SshFileIterator, and cppfs::LocalFileIterator.
|
pure virtual |
Get file system.
Implemented in cppfs::LocalFileIterator, cppfs::SshFileIterator, and cppfs::LocalFileIterator.
|
pure virtual |
Check if iterator points to a valid item.
Implemented in cppfs::LocalFileIterator, cppfs::SshFileIterator, and cppfs::LocalFileIterator.
|
pure virtual |
Get path in file system on which the iterator operates.
Implemented in cppfs::LocalFileIterator, cppfs::SshFileIterator, and cppfs::LocalFileIterator.
|
pure virtual |
Get current index of iterator in the directory.
Implemented in cppfs::LocalFileIterator, cppfs::SshFileIterator, and cppfs::LocalFileIterator.
|
pure virtual |
Get name of current directory item.
Implemented in cppfs::LocalFileIterator, cppfs::SshFileIterator, and cppfs::LocalFileIterator.
|
pure virtual |
Advance to the next item.
Implemented in cppfs::LocalFileIterator, cppfs::SshFileIterator, and cppfs::LocalFileIterator.
1.8.11