Fork of Adam Green's library with .cpp fix for current compiler

Dependents:   MSCUsbHost mpod_nhk_english mpod_picasa_photoframe mpod_nhk_english_spxml ... more

Fork of FatFileSystem by Adam Green

FATDirHandle.h

Committer:
igorsk
Date:
2012-07-30
Revision:
1:88f22c32a456
Parent:
0:6ceefe1c53e4

File content as of revision 1:88f22c32a456:

/* mbed Microcontroller Library - FATDirHandle
 * Copyright (c) 2008, sford
 */

#ifndef MBED_FATDIRHANDLE_H
#define MBED_FATDIRHANDLE_H

#include "DirHandle.h"
#include "ff.h"

namespace mbed {

class FATDirHandle : public DirHandle {

 public:
    FATDirHandle(const FATFS_DIR &the_dir);
    virtual int closedir();
    virtual struct dirent *readdir();
    virtual void rewinddir();
    virtual off_t telldir();
    virtual void seekdir(off_t location);

 private:
    FATFS_DIR dir;
    struct dirent cur_entry;

};

}

#endif