-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBankingSystem.h
More file actions
29 lines (28 loc) · 797 Bytes
/
Copy pathBankingSystem.h
File metadata and controls
29 lines (28 loc) · 797 Bytes
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
#pragma once
#include <string>
#include<vector>
class BankingSystem
{
std::string accountsFile;
std::string PathToRecords;
public:
BankingSystem();
~BankingSystem();
void Start();
bool MethodDispatcher(int option);
bool AddRecord();
bool OverwriteRecord();
bool ShowData();
bool SearchRecord(int RecordNumber);
std::vector<std::string> SearchRecord(std::string name);
std::string FindFileBasedOnContent(std::string givenContent);
std::string FindFileBasedOnRecordNumber(std::string givenRecord);
bool UpdateRecord();
bool DeleteRecord();
std::string AskForRecord();
bool FileRecordExists(int recordNumber);
bool DeleteAccountNumber(std::string accountNumber);
bool DeleteAccountFile(std::string filePath);
bool DisplayMenu();
bool StringIsNumber(std::string StrOption);
};