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

Class for "is minor". More...

#include <is_minor.h>

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

Public Member Functions

 IsMinor (MinorType)
 Constructs the IsMinor object. More...
 
 IsMinor (bool)
 Constructs the IsMinor object. More...
 
FieldType getType ()
 Gets the type under the FieldType enum. More...
 
MinorType getMinorType ()
 Gets the minor type of the Course. More...
 
std::string getTypeName ()
 Gets the type name, which is "Minor Type". More...
 
std::string getName ()
 Gets whether the Course is a minor course or not. More...
 

Detailed Description

Class for "is minor".

This represents whether a Course is a minor course or not.

Definition at line 32 of file is_minor.h.

Constructor & Destructor Documentation

◆ IsMinor() [1/2]

IsMinor::IsMinor ( MinorType  minorType)

Constructs the IsMinor object.

Parameters
[in]minorTypeThe minor type of the Course

Definition at line 11 of file is_minor.cpp.

◆ IsMinor() [2/2]

IsMinor::IsMinor ( bool  isMinor)

Constructs the IsMinor object.

Parameters
[in]isMinorIndicates if the Course is a minor course

Definition at line 18 of file is_minor.cpp.

Member Function Documentation

◆ getMinorType()

MinorType IsMinor::getMinorType ( )

Gets the minor type of the Course.

Returns
The minor type.

Definition at line 38 of file is_minor.cpp.

Referenced by Slot::isMinorSlot().

◆ getName()

std::string IsMinor::getName ( )

Gets whether the Course is a minor course or not.

Returns
"Yes" if it is a minor course, "No" if not

Definition at line 52 of file is_minor.cpp.

References isMinorCourse.

◆ getType()

FieldType IsMinor::getType ( )
virtual

Gets the type under the FieldType enum.

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

Implements Field.

Definition at line 31 of file is_minor.cpp.

◆ getTypeName()

std::string IsMinor::getTypeName ( )
virtual

Gets the type name, which is "Minor Type".

Returns
The string "Minor Type"

Implements Field.

Definition at line 45 of file is_minor.cpp.


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