Stores all info required to describe a particular season of a TV show. More...
#include <season.hpp>
Public Member Functions | |
Season () | |
Default constructor, sets the number of episodes to 0 by default. More... | |
Season (int) | |
Set the season number and sets the number of episodes to 0 by default. More... | |
~Season () | |
Default destructor. More... | |
bool | addEpisode (int, int, string, string, string, string, string, string) |
Saves the info required to describe a particular episode. More... | |
bool | sortAscending () |
Sorts the episodes by number in ascending order. More... | |
bool | setNumber (int) |
Set the season number. More... | |
int | getNumber () const |
int | getNumEps () const |
Public Attributes | |
vector< Episode > | episodes |
A vector that holds each Episode. More... | |
Private Attributes | |
int | number |
The season's number. More... | |
int | numEpisodes |
The number of episodes in the season. More... | |
Stores all info required to describe a particular season of a TV show.
Season objects contain: season number and Episode objects. Designed for vector use.
Season requires the Episode class to be loaded prior to it in order to function properly.
Definition at line 30 of file season.hpp.
Season::Season | ( | ) |
Default constructor, sets the number of episodes to 0 by default.
Definition at line 18 of file season.cpp.
Season::Season | ( | int | seasNum | ) |
Set the season number and sets the number of episodes to 0 by default.
seasNum | - the season number |
Definition at line 26 of file season.cpp.
Season::~Season | ( | ) |
Default destructor.
Definition at line 35 of file season.cpp.
bool Season::addEpisode | ( | int | num, |
int | xep, | ||
string | pep, | ||
string | title, | ||
string | newfile, | ||
string | newdir, | ||
string | oldfile, | ||
string | olddir | ||
) |
Saves the info required to describe a particular episode.
num | - the episode number |
xep | - the end number of a multi-episode file |
pep | - the information for a multi-part episode file |
title | - the title of the episode |
newfile | - the original file name |
newdir | - the original directory path |
oldfile | - the modified file name |
olddir | - the modified directory path |
Definition at line 49 of file season.cpp.
int Season::getNumber | ( | ) | const |
Definition at line 81 of file season.cpp.
int Season::getNumEps | ( | ) | const |
Definition at line 88 of file season.cpp.
bool Season::setNumber | ( | int | num | ) |
Set the season number.
num | - the season number |
Definition at line 70 of file season.cpp.
bool Season::sortAscending | ( | ) |
Sorts the episodes by number in ascending order.
Definition at line 97 of file season.cpp.
vector<Episode> Season::episodes |
A vector that holds each Episode.
Definition at line 47 of file season.hpp.
|
private |
The season's number.
Definition at line 50 of file season.hpp.
|
private |
The number of episodes in the season.
Definition at line 51 of file season.hpp.