Teacher.h 1.25 KB
Newer Older
Andrew Binder's avatar
Andrew Binder committed
1
#include "Student.h"
Andrew Binder's avatar
Andrew Binder committed
2 3 4 5 6
#include <vector>
#include <string>

using namespace std;

Andrew Binder's avatar
Andrew Binder committed
7 8
#ifndef TEACHER_H
#define TEACHER_H
Andrew Binder's avatar
Andrew Binder committed
9 10 11

class Teacher {
    public:
12
        Teacher(); 
Andrew Binder's avatar
Andrew Binder committed
13 14 15 16 17
        Teacher(string userNameIn);   //  Default constructor
        
        //  Teacher Functions
        void displayMenu();
        void displayProgress();  //  Opens menu, teacher get get all (gradebook style) or a student
Andrew Binder's avatar
Andrew Binder committed
18
        void exportProgress();  //  outputProgress() in UML
19 20
        void saveProgress();
        void importProgress();
Andrew Binder's avatar
Andrew Binder committed
21 22
        void enrollStudent(Student studentIn);
        void adjustProgress(string studentUserNameIn, int level);
Andrew Binder's avatar
Andrew Binder committed
23 24 25 26 27
        void endProgram();
        
        //  Accessors
        const string getUserName();
        const string getExitCode();
Andrew Binder's avatar
Andrew Binder committed
28
        const bool getMenuActive();
Andrew Binder's avatar
Andrew Binder committed
29 30
        
        //  Mutators
Andrew Binder's avatar
Andrew Binder committed
31 32
        void setExitCode(string exitCodeIn);
        void setUserName(string userNameIn);
Andrew Binder's avatar
Andrew Binder committed
33 34
        
    private:
Andrew Binder's avatar
Andrew Binder committed
35
        bool teacherMenuActive = 1;
Andrew Binder's avatar
Andrew Binder committed
36
        string userName;
37
        string exitCode = "Quit";
Andrew Binder's avatar
Andrew Binder committed
38 39
        vector<Student> roster;
        
Andrew Binder's avatar
Andrew Binder committed
40 41 42 43 44 45
        string rosterFileName = "classRoster.txt";   // Used for use by program as import/export       
        string progressFileName = "classProgress.txt";   // Used for teacher
        
};

#endif //TEACHER_H