Timetabler
Public Member Functions | List of all members
Instructor Class Reference

Class for an instructor. More...

#include <instructor.h>

Inheritance diagram for Instructor:
Inheritance graph
[legend]
Collaboration diagram for Instructor:
Collaboration graph
[legend]

Public Member Functions

 Instructor (std::string)
 Constructs the Instructor object. More...
 
bool operator== (const Instructor &other)
 Checks if two Instructor objects are identical, i.e., if both have the same name. More...
 
FieldType getType ()
 Gets the type under the FieldType enum. More...
 
std::string getName ()
 Gets the name of the Instructor. More...
 
std::string getTypeName ()
 Gets the type name, which is "Instructor". More...
 

Detailed Description

Class for an instructor.

Definition at line 13 of file instructor.h.

Constructor & Destructor Documentation

◆ Instructor()

Instructor::Instructor ( std::string  name)

Constructs the Instructor object.

Parameters
[in]nameThe name of the Instructor, which uniquely identifies the Instructor

Definition at line 12 of file instructor.cpp.

Member Function Documentation

◆ getName()

std::string Instructor::getName ( )

Gets the name of the Instructor.

Returns
The name of the Instructor

Definition at line 38 of file instructor.cpp.

◆ getType()

FieldType Instructor::getType ( )
virtual

Gets the type under the FieldType enum.

Returns
A member of the FieldType enum, which is FieldType::instructor

Implements Field.

Definition at line 31 of file instructor.cpp.

◆ getTypeName()

std::string Instructor::getTypeName ( )
virtual

Gets the type name, which is "Instructor".

Returns
The string "Instructor"

Implements Field.

Definition at line 45 of file instructor.cpp.

◆ operator==()

bool Instructor::operator== ( const Instructor other)

Checks if two Instructor objects are identical, i.e., if both have the same name.

Parameters
[in]otherThe Instructor with which the comparison is being made
Returns
true if identical, false otherwise

Definition at line 22 of file instructor.cpp.


The documentation for this class was generated from the following files: