Directory descriptor interface.
More...
#include </home/travis/build/forGGe/theCore/lib/fs/export/ecl/fs/dir_descriptor.hpp>
Directory descriptor interface.
◆ dir_descriptor()
dir_descriptor::dir_descriptor |
( |
const inode_weak & |
node | ) |
|
Constructs and opens directory descriptor from corresponding inode.
◆ ~dir_descriptor()
dir_descriptor::~dir_descriptor |
( |
| ) |
|
|
virtual |
Closes and destructs dir descriptor.
◆ read()
virtual inode_ptr ecl::fs::dir_descriptor::read |
( |
| ) |
|
|
pure virtual |
Advances to the next item in the directory and gets current entity.
The entity could be a directory or a file from current directory, represented by this directory descriptor.
- Precondition
- Opened descriptor.
- Returns
- Next item in the directory, or nullptr if no more items.
Implemented in ecl::fat::dir.
◆ rewind()
virtual ecl::err ecl::fs::dir_descriptor::rewind |
( |
| ) |
|
|
pure virtual |
Rewindes to the start of the directory.
- Precondition
- Opened descriptor.
- Return values
-
Implemented in ecl::fat::dir.
◆ close()
virtual ecl::err ecl::fs::dir_descriptor::close |
( |
| ) |
|
|
pure virtual |
Closes a descriptor.
- Precondition
- Opened descriptor.
- Return values
-
Implemented in ecl::fat::dir.
◆ m_inode
The documentation for this class was generated from the following files: