23 cout <<
"Error: no data found in Parser object" << endl;
29 for(
unsigned int i = 0; i < libObj->
shows.size(); i++ )
46 tout << libObj->
shows[i].getShowname() << endl;
49 for(
unsigned int j = 0; j < libObj->
shows[i].seasons.size(); j++ )
54 int sDif = libObj->
shows[i].seasons[j].getNumber() - lastSeason;
62 for(
int sCount = 1; sCount < sDif; sCount++ )
65 tout <<
" [Season " << lastSeason + sCount <<
"] - missing" << endl;
70 tout <<
" [Season " << libObj->
shows[i].seasons[j].getNumber() <<
"]";
73 lastSeason = libObj->
shows[i].seasons[j].getNumber();
76 for(
unsigned int k = 0; k < libObj->
shows[i].seasons[j].episodes.size(); k++ )
79 int eDif = libObj->
shows[i].seasons[j].episodes[k].getNumber() - lastEpisode;
87 for(
int eCount = 1; eCount < eDif; eCount++ )
90 tout << endl <<
" [Episode " << lastEpisode + eCount <<
"] - missing";
95 lastEpisode = libObj->
shows[i].seasons[j].episodes[k].getNumber();
101 tout <<
" - No missing episodes detected";
102 if( j+1 < libObj->
shows[i].seasons.size() )
125 if( i+1 == libObj->
shows.size() )
The OutPut class prints summary and error information from objects.
vector< Show > shows
A vector that holds each Show.
static void outputMissing(Library *, ostream &)
Outputs gaps in a given Library object's contents.
Stores all info required to describe all shows.