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

using namespace std;

Andrew Binder's avatar
Andrew Binder committed
6 7 8 9 10 11 12 13 14 15 16 17 18
class Student {
    public:
        int getLevel() {
            return level;
        }
        string getUserName() {
            return userName;
        }
        
    private:
        string userName;
        int level = 1;
};
Andrew Binder's avatar
Andrew Binder committed
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

class Teacher {
    private:
        string userName;
        string exitCode;
        //vector<Student> roster;
        
    public:
        Teacher(string userNameIn);   //  Default constructor
        
        //  Teacher Functions
        void displayMenu();
        void displayProgress();  //  Opens menu, teacher get get all (gradebook style) or a student
        bool exportProgress();  //  outputProgress() in UML
        // bool enrollStudent(Student studentIn);
        // bool adjustProgress(Student studentIn, int level);
        void endProgram();
        
        //  Accessors
        const string getUserName();
        const string getExitCode();
        
        //  Mutators
        bool setExitCode(string exitCodeIn);
        bool setUserName(string userNameIn);
};