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.

Constructor & Destructor Documentation

Instructor::Instructor ( std::string  name)

Constructs the Instructor object.

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

Member Function Documentation

std::string Instructor::getName ( )

Gets the name of the Instructor.

Returns
The name of the Instructor
FieldType Instructor::getType ( )
virtual

Gets the type under the FieldType enum.

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

Implements Field.

std::string Instructor::getTypeName ( )
virtual

Gets the type name, which is "Instructor".

Returns
The string "Instructor"

Implements Field.

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

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