Metadata class for FATFS filesystem directories.
More...
#include </home/travis/build/forGGe/theCore/lib/fs/fat/export/ecl/fat/dir_inode.hpp>
Metadata class for FATFS filesystem directories.
◆ type
◆ dir_inode() [1/2]
dir_inode::dir_inode |
( |
FATFS * |
fs, |
|
|
const allocator & |
alloc, |
|
|
const char * |
path = nullptr , |
|
|
const char * |
name = nullptr |
|
) |
| |
Constructs FATFS inode for given directory.
If both name and path are null then this inode represents root node.
- Parameters
-
[in] | fs | FATFS filesystem object, |
[in] | alloc | Allocator, used for internal allocations. |
[in] | path | Path to a parent dir. |
[in] | name | Name of a dir represented by this inode. |
◆ ~dir_inode()
dir_inode::~dir_inode |
( |
| ) |
|
|
virtual |
◆ dir_inode() [2/2]
ecl::fat::dir_inode::dir_inode |
( |
const dir_inode & |
| ) |
|
|
delete |
◆ get_type()
Gets type of entity, represented by the curent inode.
- Returns
- Type of the entity.
Implements ecl::fs::inode.
◆ open_dir()
Returns the descriptor associated with this directory.
- Precondition
- inode representing dir entity.
Meaningless if used on file inode.
- Returns
- Pointer to dir descriptor.
Reimplemented from ecl::fs::inode.
◆ size()
ecl::err dir_inode::size |
( |
size_t & |
sz | ) |
const |
|
overridevirtual |
Returns size of a file or number of entries in the directory.
- Parameters
-
[out] | sz | Parameter to store either file size (if this inode represents a file) or count of etries in the directory (if this inode represents a dir). |
- Returns
- Status of operation.
Implements ecl::fs::inode.
◆ get_name()
ecl::err dir_inode::get_name |
( |
char * |
buf, |
|
|
size_t & |
buf_sz |
|
) |
| const |
|
overridevirtual |
Gets a name of an entity.
- Parameters
-
[in] | buf | Buffer to store name to. |
[in,out] | buf_sz | On entry: size of a buffer. On exit: bytes written excluding null character. If truncation occur then it will store amount of bytes that would have been written if enough space had been avaliable. |
- Returns
- Status of operation.
Implements ecl::fs::inode.
◆ operator=()
The documentation for this class was generated from the following files: