-
Notifications
You must be signed in to change notification settings - Fork 0
/
fileReader.h
37 lines (34 loc) · 881 Bytes
/
fileReader.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
/*
Name: Eric Rabiner
Email: [email protected]
Date: July 6, 2019
*/
#ifndef SICT_FILEREADER_H
#define SICT_FILEREADER_H
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include "Student.h"
#include "Course.h"
#include "Test.h"
#include "Mark.h"
namespace sict {
class FileReader {
std::vector<Student> studentData;
std::vector<Course> courseData;
std::vector<Test> testData;
std::vector<Mark> markData;
const char* fStudents { nullptr };
const char* fCourses { nullptr };
const char* fTests { nullptr };
const char* fMarks { nullptr };
public:
FileReader(char* filename[], int nfiles);
std::vector<Student>& loadStudents(std::ostream& os);
std::vector<Course>& loadCourses(std::ostream& os);
std::vector<Test>& loadTests(std::ostream& os);
std::vector<Mark>& loadMarks(std::ostream& os);
};
}
#endif