Class for a classroom.
Definition: classroom.h:13
std::string getTypeName()
Gets the type name, which is "Classroom".
Definition: classroom.cpp:54
Class for a field.
Definition: field.h:14
FieldType
Enum that represents all the field types.
Definition: global.h:9
bool sizeLessThan(const Classroom &other)
Checks if the size of this Classroom is less than the size of another.
Definition: classroom.cpp:38
Classroom(std::string, unsigned)
Constructs the object.
Definition: classroom.cpp:12
bool operator==(const Classroom &other)
Overloads the == operator to check for equality.
Definition: classroom.cpp:26
unsigned getSize()
Gets the size of the Classroom.
Definition: classroom.cpp:68
FieldType getType()
Gets the type under the FieldType enum.
Definition: classroom.cpp:47
std::string getName()
Gets the class number of the Classroom.
Definition: classroom.cpp:61