Timetabler
instructor.h
Go to the documentation of this file.
1 
3 #ifndef INSTRUCTOR_H
4 #define INSTRUCTOR_H
5 
6 #include <string>
7 #include "fields/field.h"
8 #include "global.h"
9 
13 class Instructor : public Field {
14 private:
18  std::string name;
19 public:
20  Instructor(std::string);
21  bool operator==(const Instructor &other);
23  std::string getName();
24  std::string getTypeName();
25 };
26 
27 #endif
FieldType getType()
Gets the type under the FieldType enum.
Definition: instructor.cpp:32
Class for a field.
Definition: field.h:14
Instructor(std::string)
Constructs the Instructor object.
Definition: instructor.cpp:11
Class for an instructor.
Definition: instructor.h:13
bool operator==(const Instructor &other)
Checks if two Instructor objects are identical, i.e., if both have the same name. ...
Definition: instructor.cpp:23
FieldType
Enum that represents all the field types.
Definition: global.h:10
std::string getTypeName()
Gets the type name, which is "Instructor".
Definition: instructor.cpp:50
std::string getName()
Gets the name of the Instructor.
Definition: instructor.cpp:41