-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileService.h
More file actions
35 lines (22 loc) · 1.12 KB
/
FileService.h
File metadata and controls
35 lines (22 loc) · 1.12 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
// AUTHOR: Giovanni De Leon
// DESC: H FileService For Semester Proj.
#ifndef FILESERVICE_H
#define FILESERVICE_H
#include<iostream>
#include<vector>
#include <string>
using namespace std;
class FileService {
public:
FileService();// Constructor.
void compareFilesTwo(const std::vector<std::pair<int, std::string>>& fileOneContents, const std::vector<std::pair<int, std::string>>& fileTwoContents);
void fancyDiff(int pIndex, int fileOneLineAmount, int fileTwoLineAmount, const std::vector<pair<int, string>>& fileOneContents, const std::vector<pair<int, string>>& fileTwoContents);
std::string removeWhitespace(const std::string& str);
bool isLineEmpty(const std::string& line);
void diff(std::string pFileName, std::string pFileNameTwo);// Takes File Name As Parameter.
void promptingServ(const vector<pair<int, string>>& fileOneContents,
const vector<pair<int, string>>& fileTwoContents);
void fusionService(const std::vector<std::pair<int, std::string>>& fileOneContents,
const std::vector<std::pair<int, std::string>>& fileTwoContents, int pBaseFile);
};
#endif // FILESERVICE_H