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 
20  public:
21  Instructor(std::string);
22  bool operator==(const Instructor &other);
24  std::string getName();
25  std::string getTypeName();
26 };
27 
28 #endif
FieldType getType()
Gets the type under the FieldType enum.
Definition: instructor.cpp:31
Class for a field.
Definition: field.h:14
Instructor(std::string)
Constructs the Instructor object.
Definition: instructor.cpp:12
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:22
FieldType
Enum that represents all the field types.
Definition: global.h:9
std::string getTypeName()
Gets the type name, which is "Instructor".
Definition: instructor.cpp:45
std::string getName()
Gets the name of the Instructor.
Definition: instructor.cpp:38