ahmed ahmed
/
samir2_alti_logger
dd
FileSystem/FatFileSystem/FATDirHandle.h@0:caecb0d1e7d3, 2015-04-08 (annotated)
- Committer:
- pfe
- Date:
- Wed Apr 08 08:27:55 2015 +0000
- Revision:
- 0:caecb0d1e7d3
ddd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pfe | 0:caecb0d1e7d3 | 1 | /* mbed Microcontroller Library - FATDirHandle |
pfe | 0:caecb0d1e7d3 | 2 | * Copyright (c) 2008, sford |
pfe | 0:caecb0d1e7d3 | 3 | */ |
pfe | 0:caecb0d1e7d3 | 4 | |
pfe | 0:caecb0d1e7d3 | 5 | #ifndef MBED_FATDIRHANDLE_H |
pfe | 0:caecb0d1e7d3 | 6 | #define MBED_FATDIRHANDLE_H |
pfe | 0:caecb0d1e7d3 | 7 | |
pfe | 0:caecb0d1e7d3 | 8 | #include "DirHandle.h" |
pfe | 0:caecb0d1e7d3 | 9 | #include "ff.h" |
pfe | 0:caecb0d1e7d3 | 10 | |
pfe | 0:caecb0d1e7d3 | 11 | namespace mbed { |
pfe | 0:caecb0d1e7d3 | 12 | |
pfe | 0:caecb0d1e7d3 | 13 | class FATDirHandle : public DirHandle { |
pfe | 0:caecb0d1e7d3 | 14 | |
pfe | 0:caecb0d1e7d3 | 15 | public: |
pfe | 0:caecb0d1e7d3 | 16 | FATDirHandle(const FATFS_DIR &the_dir); |
pfe | 0:caecb0d1e7d3 | 17 | virtual int closedir(); |
pfe | 0:caecb0d1e7d3 | 18 | virtual struct dirent *readdir(); |
pfe | 0:caecb0d1e7d3 | 19 | virtual void rewinddir(); |
pfe | 0:caecb0d1e7d3 | 20 | virtual off_t telldir(); |
pfe | 0:caecb0d1e7d3 | 21 | virtual void seekdir(off_t location); |
pfe | 0:caecb0d1e7d3 | 22 | |
pfe | 0:caecb0d1e7d3 | 23 | private: |
pfe | 0:caecb0d1e7d3 | 24 | FATFS_DIR dir; |
pfe | 0:caecb0d1e7d3 | 25 | struct dirent cur_entry; |
pfe | 0:caecb0d1e7d3 | 26 | |
pfe | 0:caecb0d1e7d3 | 27 | }; |
pfe | 0:caecb0d1e7d3 | 28 | |
pfe | 0:caecb0d1e7d3 | 29 | } |
pfe | 0:caecb0d1e7d3 | 30 | |
pfe | 0:caecb0d1e7d3 | 31 | #endif |