Stores all info required to describe all shows. More...
#include <library.hpp>
Public Member Functions | |
Library () | |
Default constructor. More... | |
~Library () | |
Default destructor. More... | |
bool | addEpisode (int, int, int, int, string, string, string, string, string, string, vector< ErrorHandler > &, ConfigOpts *) |
Saves the info required to describe a particular episode. More... | |
Public Attributes | |
vector< Show > | shows |
A vector that holds each Show. More... | |
Private Member Functions | |
bool | addShow (int, ConfigOpts *, vector< ErrorHandler > &) |
Insert a show into the show vector. More... | |
bool | sortAscending () |
Sorts the shows in ascending order. More... | |
Stores all info required to describe all shows.
Library objects contain: Show objects.
Show requires 1 other class, Show to be loaded prior to it in order to function properly.
Definition at line 30 of file library.hpp.
Library::Library | ( | ) |
Default constructor.
Definition at line 16 of file library.cpp.
Library::~Library | ( | ) |
Default destructor.
Definition at line 20 of file library.cpp.
bool Library::addEpisode | ( | int | show, |
int | seas, | ||
int | ep, | ||
int | xep, | ||
string | pep, | ||
string | title, | ||
string | newfile, | ||
string | newdir, | ||
string | oldfile, | ||
string | olddir, | ||
vector< ErrorHandler > & | fail, | ||
ConfigOpts * | confObj | ||
) |
Saves the info required to describe a particular episode.
show | - the show number |
seas | - the season number |
ep | - 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 |
fail | - the failure information |
confObj | - the configuration object |
Definition at line 38 of file library.cpp.
|
private |
Insert a show into the show vector.
showNameIndex | - the show index contained in showfile |
confObj | - the configuration object |
fail | - the failure information |
Definition at line 162 of file library.cpp.
|
private |
Sorts the shows in ascending order.
Definition at line 187 of file library.cpp.
vector<Show> Library::shows |
A vector that holds each Show.
Definition at line 41 of file library.hpp.