- Main Page
- Namespaces
- Data Structures
- Files
- Directories

- Search for |

- File List
- Globals

# vfs.h

Go to the documentation of this file.

    00001 #ifndef VFS_H
    00002 #define VFS_H
    00003
    00004 #include <stdlib.h>
    00005 #include <stdio.h>
    00006
    00007 class FileSystemAbstract {
    00008  protected:
    00009  public:
    00010   virtual   int read(char *, long, long) = 0;
    00011   virtual   int write(char *, long, long) = 0;
    00012   virtual  ~FileSystemAbstract(void) {};
    00013 }; // FileSystemAbstract
    00014
    00015 class DiskFS : public FileSystemAbstract {
    00016  protected:
    00017    FILE * diskFile;
    00018  public:
    00019             DiskFS(const char *);
    00020   virtual   int write(const void *, long, long);
    00021   virtual   int read(void *, long, long);
    00022   virtual  ~DiskFS(void) { };
    00023 }; // DiskFS
    00024
    00025 #endif // !VFS_H