85 for(
unsigned int i = 0; i < libObj->
shows.size(); i++ )
88 for(
unsigned int j = 0; j < libObj->
shows[i].seasons.size(); j++ )
91 for(
unsigned int k = 0; k < libObj->
shows[i].seasons[j].episodes.size(); k++ )
167 cout <<
"Error: no data found in Parser object" << endl;
173 tout <<
"Total files parsed: " << confObj->
v_fileList.size() << endl;
174 tout <<
"Parser errors: " << errInt << endl << endl;
177 for(
unsigned int i = 0; i < libObj->
shows.size(); i++ )
180 int countEpisode = 0;
189 for(
unsigned int j = 0; j < libObj->
shows[i].seasons.size(); j++ )
192 for(
unsigned int k = 0; k < libObj->
shows[i].seasons[j].episodes.size(); k++ )
201 tout <<
" [Season " << libObj->
shows[i].seasons[j].getNumber() <<
"] - "
202 << libObj->
shows[i].seasons[j].episodes.size() <<
" episodes" << endl;
209 tout << confObj->
v_showList[libObj->
shows[i].getIndex()][0] <<
" - " << countEpisode <<
" episodes" << endl;
225 for(
unsigned int i = 0; i < fail.size(); i++ )
228 tout <<
"Error found: \"" << fail[i].errorFile <<
"\"" << endl;
229 switch( fail[i].errorData )
232 tout <<
"Season/Episode pattern match failed : skipped file" << endl;
235 tout <<
"Show name match failed : skipped file" << endl;
238 tout <<
"An episode already exists : skipped file" << endl;
241 tout <<
"Sort failed" << endl;
244 tout <<
"Undefined error" << endl;
The OutPut class prints summary and error information from objects.
A Show name match failure occured.
OutPut()
The default constructor.
static bool getFlags(flagValue)
Retrieves the user configuration flags from an array.
output summary and error information
ofstream lout
Output file stream object for a log file.
vector< Show > shows
A vector that holds each Show.
~OutPut()
The default destructor.
static vector< vector< string > > v_showList
A vector of vectors the will store a list of shows and a list of their episodes.
ofstream fout
Output file stream object for a file (WTF?)
holds xml file name and location
static string getOptions(optionValue)
Retrieves the user configuration options from an array.
output directory from args
static void outputMissing(Library *, ostream &)
Outputs gaps in a given Library object's contents.
holds gap file name and location
static vector< string > v_fileList
A vector that contains the list of input files to be parsed.
holds script file name and location
ofstream sout
Output file stream object for a script file.
write a script instead of internal action
output to log instead of stdout
static void outputXML(Library *, ostream &)
Outputs summary information from objects in XML format.
static void outputError(vector< ErrorHandler > &, ostream &)
Outputs the given error information to the given stream.
A duplicate Episode failure occured.
A Season or Episode pattern match failure occured.
ostream * tout
Temporary output stream pointer, to store output file stream object address.
Stores all config options, settings, and flags for clerk.
static void outputSummary(Library *, ConfigOpts *, ostream &, int)
Outputs a summary of an input Library object.
holds log file name and location
static void outputTasks(Episode *, ConfigOpts *, ostream &)
Outputs to the given stream the commands needed to perform the requested tasks.
Stores all info required to describe all shows.