theCore C++ embedded framework
|
FATFS directory descriptor. More...
#include </home/travis/build/forGGe/theCore/lib/fs/fat/export/ecl/fat/dir.hpp>
Public Member Functions | |
dir (const fs::inode_ptr &node, FATFS *fs, const allocator &alloc, const DIR &fat_dir, fs::path_ptr path) | |
Constructs and opens dir descriptor. More... | |
virtual | ~dir () |
Closes and destructs dir descriptor. More... | |
virtual fs::inode_ptr | read () override |
Advances to the next item in the directory and gets current entity. More... | |
virtual ecl::err | rewind () override |
Rewindes to the start of the directory. More... | |
virtual ecl::err | close () override |
Closes a descriptor. More... | |
dir & | operator= (dir &)=delete |
dir (const dir &)=delete | |
Public Member Functions inherited from ecl::fs::dir_descriptor | |
dir_descriptor (const inode_weak &node) | |
Constructs and opens directory descriptor from corresponding inode. More... | |
virtual | ~dir_descriptor () |
Closes and destructs dir descriptor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ecl::fs::dir_descriptor | |
inode_ptr | m_inode |
Associated inode. More... | |
FATFS directory descriptor.
ecl::fat::dir::dir | ( | const fs::inode_ptr & | node, |
FATFS * | fs, | ||
const allocator & | alloc, | ||
const DIR & | fat_dir, | ||
fs::path_ptr | path | ||
) |
Constructs and opens dir descriptor.
[in] | node | inode for directory. |
[in] | fs | Petite filesystem object. |
[in] | alloc | Allocator used for the filesystem. |
[in] | fat_dir | PetiteFAT directory structure. |
[in] | path | Directory path. |
|
virtual |
Closes and destructs dir descriptor.
|
delete |
|
overridevirtual |
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.
Implements ecl::fs::dir_descriptor.
|
overridevirtual |
Rewindes to the start of the directory.
Status | of operation. |
Implements ecl::fs::dir_descriptor.
|
overridevirtual |
Closes a descriptor.
Status | of operation. |
Implements ecl::fs::dir_descriptor.