All Classes Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Library Class Reference

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< Showshows
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

Library::Library ( )

Default constructor.

Definition at line 16 of file library.cpp.

Library::~Library ( )

Default destructor.

Definition at line 20 of file library.cpp.

Member Function Documentation

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.

Parameters
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
Returns
a boolean, true for sucess, false for failure

Definition at line 38 of file library.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Library::addShow ( int  showNameIndex,
ConfigOpts confObj,
vector< ErrorHandler > &  fail 
)
private

Insert a show into the show vector.

Parameters
showNameIndex- the show index contained in showfile
confObj- the configuration object
fail- the failure information
Returns
a boolean, true for sucess, false for failure

Definition at line 162 of file library.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Library::sortAscending ( )
private

Sorts the shows in ascending order.

Returns
a boolean, true for sucess, false for failure

Definition at line 187 of file library.cpp.

Here is the caller graph for this function:

Member Data Documentation

vector<Show> Library::shows

A vector that holds each Show.

Definition at line 41 of file library.hpp.


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