39 for(
int i = 0; i < 4; i++ )
42 const char *cList = location[i].c_str();
46 if( !infile.is_open() )
66 cout <<
"Error: No showlist file found" << endl;
71 while( !infile.eof() )
76 getline( infile, tmpLine );
78 if( tmpLine[0] !=
'#' && tmpLine.length() > 0 )
81 vector<string> tmpString;
85 if( tmpLine.substr( 0, firstDelim ).length() > 0 )
88 tmpString.push_back ( tmpLine.substr( 0, firstDelim ) );
96 if( tmpLine.substr( firstDelim, lastDelim-firstDelim ).length() > 1 )
99 tmpString.push_back ( tmpLine.substr( firstDelim, lastDelim-firstDelim ) );
105 if( tmpLine.substr( lastDelim ).length() > 1 )
108 tmpString.push_back ( tmpLine.substr( lastDelim ) );
119 if( infile.is_open() )
128 cout <<
"Warning: Empty showlist file" << endl;
153 for(
int i = 0; i < 4; i++ )
156 const char *cList = location[i].c_str();
158 infile.open( cList );
160 if( !infile.is_open() )
177 cout <<
"Warning: No blacklist file found" << endl;
182 while( !infile.eof() )
187 getline( infile, tmpLine );
189 if( tmpLine[0] !=
'#' && tmpLine.length() > 0 )
196 if( infile.is_open() )
205 cout <<
"Warning: Empty blacklist file" << endl;
the location of the blacklist file
static vector< vector< string > > v_showList
A vector of vectors the will store a list of shows and a list of their episodes.
static string getOptions(optionValue)
Retrieves the user configuration options from an array.
the delimiters used to parse showlist lines
The InitLists class loads the showlist and blacklist files into arrays.
~InitLists()
Default destructor.
static bool initBlacklist(ConfigOpts *)
Loads the contents of the blacklist file into an array.
InitLists()
Default constructor.
Stores all config options, settings, and flags for clerk.
static vector< string > v_blackList
A vector that holds a list of tags to be removed from each file's name.
the location of the showlist file
static bool initShowlist(ConfigOpts *)
Loads the contents of the showlist file into an array.
static void setOptions(optionValue, string)
Sets the user configuration options into an array.