Repository navigation
Expand file tree
/
Copy pathFileHandler.h
More file actions
48 lines (38 loc) · 1.5 KB
/
Copy pathFileHandler.h
File metadata and controls
48 lines (38 loc) · 1.5 KB
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
//
// Coded by noahs on 4/1/26. Edited by Kami I. on 5/03/26.
//
/**
* FileHandler.h:
* Header file for FileHandler.cpp
*
* @author Noah S
* @author Kami I
*/
#ifndef FINALPROJECT_FILEHANDLER_H
#define FINALPROJECT_FILEHANDLER_H
#include <string>
#include "AccountTypeEnum.h"
using namespace std;
class FileHandler {
friend class Library;
friend class Book;
friend class Magazine;
friend class Accounts;
private:
// Kami's directories (uncomment and comment as needed)
// const string ACCOUNTS_FILE = "/Users/kamiiwanski/home/RegisteredAccounts.txt";
// const string BOOKS_FILE = "/Users/kamiiwanski/home/FinalProject/Books.txt";
// const string MAGAZINES_FILE = "/Users/kamiiwanski/home/Magazines.txt";
// const string TEMP_FILE = "/Users/kamiiwanski/home/tempFile.txt";
// Noah's directories (uncomment and comment as needed)
const string ACCOUNTS_FILE = "/home/noahs/CLionProjects/FinalProject/RegisteredAccounts.txt";
const string BOOKS_FILE = "/home/noahs/CLionProjects/FinalProject/Books.txt";
const string MAGAZINES_FILE = "/home/noahs/CLionProjects/FinalProject/Magazines.txt";
const string TEMP_FILE = "/home/noahs/CLionProjects/FinalProject/tempFile.txt";
public:
string enumToString(AccountTypeEnum type);
bool AccountExists(string name);
string RegisterAccount(string name, AccountTypeEnum type);
string removeAccount(string name);
};
#endif //FINALPROJECT_FILEHANDLER_H