Timetabler
program.h
Go to the documentation of this file.
1 
3 #ifndef PROGRAM_H
4 #define PROGRAM_H
5 
6 #include <string>
7 #include "fields/field.h"
8 #include "global.h"
9 
13 enum class CourseType {
17  core,
21  elective
22 };
23 
27 class Program : public Field {
28  private:
33  std::string name;
39  CourseType courseType;
40 
41  public:
42  Program(std::string, CourseType);
43  bool operator==(const Program &other);
44  FieldType getType();
45  std::string getName();
46  bool isCoreProgram();
47  std::string getTypeName();
48  std::string getCourseTypeName();
49  std::string getNameWithType();
50 };
51 
52 #endif
Class for a program.
Definition: program.h:27
Class for a field.
Definition: field.h:14
FieldType
Enum that represents all the field types.
Definition: global.h:9
CourseType
Enum Class for course type.
Definition: program.h:13