UbixOS V2 2.0

vfs.h
Go to the documentation of this file.
1 /*#ifndef VFS_H
2 #define VFS_H
3
4 #include <stdlib.h>
5 #include <stdio.h>
6
7 class FileSystemAbstract {
8 protected:
9 public:
10 virtual int read(char *, long, long) = 0;
11 virtual int write(char *, long, long) = 0;
12 virtual ~FileSystemAbstract(void) {};
13 }; // FileSystemAbstract
14
15 class DiskFS : public FileSystemAbstract {
16 protected:
17 FILE * diskFile;
18 public:
19 DiskFS(const char *);
20 virtual int write(const void *, long, long);
21 virtual int read(void *, long, long);
22 virtual ~DiskFS(void) { };
23 }; // DiskFS
24
25 #endif // !VFS_H
26 */