Stores all info required to describe an entire TV show. More...
#include <show.hpp>
Public Member Functions | |
Show () | |
Default constructor, set the number of episodes to 0, the default. More... | |
Show (int, string) | |
Stores the show name and index for reference. More... | |
~Show () | |
Default destructor. More... | |
bool | addSeason (int, vector< ErrorHandler > &) |
Adds a season to the current show. More... | |
bool | setIndex (int) |
Sets the show name index. More... | |
int | getIndex () const |
bool | setShowname (string) |
Sets the show name. More... | |
string | getShowname () const |
Public Attributes | |
vector< Season > | seasons |
A vector that holds the Season objects. More... | |
Private Member Functions | |
bool | sortAscending () |
Sorts the seasons in ascending order. More... | |
Private Attributes | |
int | index |
The show name's index. More... | |
string | showname |
The show's name. More... | |
int | numSeasons |
The number of seasons for *this show. More... | |
int | numEpisodes |
The number of episodes for *this show. More... | |
Stores all info required to describe an entire TV show.
Show objects contain: show index, show name, and a Season object. Designed for vector use.
Show requires 2 other classes, Season and Episode to be loaded prior to it in order to function properly.
Show::Show | ( | ) |
Show::Show | ( | int | ind, |
string | name | ||
) |
bool Show::addSeason | ( | int | seasNum, |
vector< ErrorHandler > & | fail | ||
) |
string Show::getShowname | ( | ) | const |
bool Show::setIndex | ( | int | ind | ) |
bool Show::setShowname | ( | string | name | ) |
|
private |
|
private |
|
private |
vector<Season> Show::seasons |