Copied on 09 Aug 2012.
Fork of FatFileSystem by
FATDirHandle.h@4:a1684d0b392e, 2012-11-04 (annotated)
- Committer:
- ds074704261
- Date:
- Sun Nov 04 08:57:18 2012 +0000
- Revision:
- 4:a1684d0b392e
- Parent:
- 0:97df4125f18d
Copied on 09 Aug 2012.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_unsupported | 0:97df4125f18d | 1 | /* Copyright 2008 ARM Limited. All rights reserved. */ |
mbed_unsupported | 0:97df4125f18d | 2 | |
mbed_unsupported | 0:97df4125f18d | 3 | #ifndef MBED_FATDIRHANDLE_H |
mbed_unsupported | 0:97df4125f18d | 4 | #define MBED_FATDIRHANDLE_H |
mbed_unsupported | 0:97df4125f18d | 5 | |
mbed_unsupported | 0:97df4125f18d | 6 | #include "DirHandle.h" |
mbed_unsupported | 0:97df4125f18d | 7 | #include "ff.h" |
mbed_unsupported | 0:97df4125f18d | 8 | |
mbed_unsupported | 0:97df4125f18d | 9 | namespace mbed { |
mbed_unsupported | 0:97df4125f18d | 10 | |
mbed_unsupported | 0:97df4125f18d | 11 | class FATDirHandle : public DirHandle { |
mbed_unsupported | 0:97df4125f18d | 12 | |
mbed_unsupported | 0:97df4125f18d | 13 | public: |
mbed_unsupported | 0:97df4125f18d | 14 | FATDirHandle(const FATFS_DIR &the_dir); |
mbed_unsupported | 0:97df4125f18d | 15 | virtual int closedir(); |
mbed_unsupported | 0:97df4125f18d | 16 | virtual struct dirent *readdir(); |
mbed_unsupported | 0:97df4125f18d | 17 | virtual void rewinddir(); |
mbed_unsupported | 0:97df4125f18d | 18 | virtual off_t telldir(); |
mbed_unsupported | 0:97df4125f18d | 19 | virtual void seekdir(off_t location); |
mbed_unsupported | 0:97df4125f18d | 20 | |
mbed_unsupported | 0:97df4125f18d | 21 | private: |
mbed_unsupported | 0:97df4125f18d | 22 | FATFS_DIR dir; |
mbed_unsupported | 0:97df4125f18d | 23 | struct dirent cur_entry; |
mbed_unsupported | 0:97df4125f18d | 24 | |
mbed_unsupported | 0:97df4125f18d | 25 | }; |
mbed_unsupported | 0:97df4125f18d | 26 | |
mbed_unsupported | 0:97df4125f18d | 27 | } |
mbed_unsupported | 0:97df4125f18d | 28 | |
mbed_unsupported | 0:97df4125f18d | 29 | #endif |