かいださん
Dependencies: mbed
Fork of 2016_Spring_kaida by
FatFileSystem/FATDirHandle.h@18:cab2885dc8fe, 2016-06-10 (annotated)
- Committer:
- abcdefgh
- Date:
- Fri Jun 10 17:29:55 2016 +0000
- Revision:
- 18:cab2885dc8fe
- Parent:
- 0:736c76a75def
2016/06/10
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hirokimineshita | 0:736c76a75def | 1 | /* Copyright 2008 ARM Limited. All rights reserved. */ |
hirokimineshita | 0:736c76a75def | 2 | |
hirokimineshita | 0:736c76a75def | 3 | #ifndef MBED_FATDIRHANDLE_H |
hirokimineshita | 0:736c76a75def | 4 | #define MBED_FATDIRHANDLE_H |
hirokimineshita | 0:736c76a75def | 5 | |
hirokimineshita | 0:736c76a75def | 6 | #include "DirHandle.h" |
hirokimineshita | 0:736c76a75def | 7 | #include "ff.h" |
hirokimineshita | 0:736c76a75def | 8 | |
hirokimineshita | 0:736c76a75def | 9 | namespace mbed { |
hirokimineshita | 0:736c76a75def | 10 | |
hirokimineshita | 0:736c76a75def | 11 | class FATDirHandle : public DirHandle { |
hirokimineshita | 0:736c76a75def | 12 | |
hirokimineshita | 0:736c76a75def | 13 | public: |
hirokimineshita | 0:736c76a75def | 14 | FATDirHandle(const FATFS_DIR &the_dir); |
hirokimineshita | 0:736c76a75def | 15 | virtual int closedir(); |
hirokimineshita | 0:736c76a75def | 16 | virtual struct dirent *readdir(); |
hirokimineshita | 0:736c76a75def | 17 | virtual void rewinddir(); |
hirokimineshita | 0:736c76a75def | 18 | virtual off_t telldir(); |
hirokimineshita | 0:736c76a75def | 19 | virtual void seekdir(off_t location); |
hirokimineshita | 0:736c76a75def | 20 | |
hirokimineshita | 0:736c76a75def | 21 | private: |
hirokimineshita | 0:736c76a75def | 22 | FATFS_DIR dir; |
hirokimineshita | 0:736c76a75def | 23 | struct dirent cur_entry; |
hirokimineshita | 0:736c76a75def | 24 | |
hirokimineshita | 0:736c76a75def | 25 | }; |
hirokimineshita | 0:736c76a75def | 26 | |
hirokimineshita | 0:736c76a75def | 27 | } |
hirokimineshita | 0:736c76a75def | 28 | |
hirokimineshita | 0:736c76a75def | 29 | #endif |