-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContext.h
55 lines (36 loc) · 811 Bytes
/
Context.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Project Untitled
*/
#ifndef _CONTEXT_H
#define _CONTEXT_H
#include "FileManager.h"
#include "Inode.h"
#include "IOParameter.h"
#include "FileSystem.h"
class Context {
public:
FileManager c_FileManager;
Inode c_rootDirInode;
Inode* c_pwd;
string c_pwd_path;
IOParameter c_IOParameter;
char* c_Buffer;
FileSystem c_FileSystem;
SuperBlock* c_spb;
FILE* MyDisk;
char* c_ReadBuffer;
OpenFiles c_OpenFiles;
FileManager* GetFileManager();
Inode* GetrootDirInode();
Inode* GetPwd();
string* GetPwdPath();
IOParameter* GetIOParameter();
FileSystem* GetFileSystem();
SuperBlock* GetSuperBlock();
FILE* GetMyDisk();
OpenFiles* GetOpenFiles();
public:
Context();
~Context();
};
#endif //_CONTEXT_H