17#ifndef MBED_DIRHANDLE_H
18#define MBED_DIRHANDLE_H
21#include "platform/mbed_toolchain.h"
22#include "platform/NonCopyable.h"
77 virtual void seek(off_t offset) = 0;
100 while (
read(ent) > 0) {
Represents a directory stream.
virtual void seek(off_t offset)=0
Set the current position of the directory.
virtual size_t size()
Get the sizeof the directory.
virtual ssize_t read(struct dirent *ent)=0
Read the next directory entry.
virtual int close()=0
Close a directory.
virtual void rewind()=0
Rewind the current position to the beginning of the directory.
virtual off_t tell()=0
Get the current position of the directory.
Prevents generation of copy constructor and copy assignment operator in derived classes.