-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVirtualHD.h
74 lines (66 loc) · 1.84 KB
/
VirtualHD.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef SO_FINAL_VIRTUALHD_H
#define SO_FINAL_VIRTUALHD_H
#include <fstream>
#include <iostream>
#include <iomanip>
#include <map>
#include <vector>
#include "Manager.h"
#include "Block.h"
#define ULONG unsigned long
using namespace std;
class VirtualHD : public Manager {
public:
map <string, Block> blocks;
map <string, Block>::iterator it;
string HDname,
currentPathAdr,
replace = {17};
int qtdB,
sizeB;
void actions(fstream &);
void openHD();
void loadBlocks(fstream&);
void saveHD(fstream& fs);
void createHD();
void viewHD();
void sizeHD();
void printTypeHDHex(int, map <string, Block>::iterator);
void setParameters();
void initialize(fstream &);
const string& getHDname();
const int getQtdB();
const int getSizeB();
void setHDname(const string&) ;
void setQtdB(int) ;
void setSizeB(int);
string binaryConvertITS(int);
int binaryConvertSTI(string);
string stringToHex(string& input);
void goBackToRoot();
const vector<string> split(const string&, const char&);
void openFolder();
void viewFolder();
void createFolder();
void exitFolder();
void renameFolder();
void viewFile();
void createFile();
void createFileComplete(string, string, string);
void renameFile();
void moveFile();
void copyFile();
void createContent(string, string);
void resetBlock();
void copyFolder();
void copyFolderComplete(string, string);
void resetFolder();
void resetFolderComplete(string posFolder);
string findEmptyBlock();
string findFileContent(string name);
string findFile(string name);
string findFolder(string name);
void intToHex(int);
void help();
};
#endif //SO_FINAL_VIRTUALHD_H