mbed-drivers
Public Member Functions | Public Attributes | List of all members
mbed::BaseDirHandle Class Reference
Inheritance diagram for mbed::BaseDirHandle:
mbed::DirHandle

Public Member Functions

virtual int closedir ()
 
virtual struct direntreaddir ()
 
virtual off_t telldir ()
 
virtual void seekdir (off_t offset)
 
virtual void rewinddir ()
 

Public Attributes

off_t n
 
struct dirent cur_entry
 

Member Function Documentation

virtual int mbed::BaseDirHandle::closedir ( )
inlinevirtual

Closes the directory.

Returns
0 on success, -1 on error.

Implements mbed::DirHandle.

virtual struct dirent* mbed::BaseDirHandle::readdir ( )
inlinevirtual

Return the directory entry at the current position, and advances the position to the next entry.

Returns
A pointer to a dirent structure representing the directory entry at the current position, or NULL on reaching end of directory or error.

Implements mbed::DirHandle.

virtual void mbed::BaseDirHandle::rewinddir ( )
inlinevirtual

Resets the position to the beginning of the directory.

Implements mbed::DirHandle.

virtual void mbed::BaseDirHandle::seekdir ( off_t  location)
inlinevirtual

Sets the position of the DirHandle.

Parameters
locationThe location to seek to. Must be a value returned by telldir.

Reimplemented from mbed::DirHandle.

virtual off_t mbed::BaseDirHandle::telldir ( )
inlinevirtual

Returns the current position of the DirHandle.

Returns
the current position, -1 on error.

Reimplemented from mbed::DirHandle.


The documentation for this class was generated from the following file: