56 int main(
int argc,
char *argv[])
121 vector<ErrorHandler> failed;
124 for(
unsigned int i = 0; i < confObj->
v_fileList.size(); i++ )
155 OutPut outPut( &catalogue, failed, confObj );
void parseShow(string, ConfigOpts *)
Parses the filename.
The OutPut class prints summary and error information from objects.
static bool getFlags(flagValue)
Retrieves the user configuration flags from an array.
string getOldFile() const
bool addEpisode(int, int, int, int, string, string, string, string, string, string, vector< ErrorHandler > &, ConfigOpts *)
Saves the info required to describe a particular episode.
static bool readDir(string, ConfigOpts *)
Counts and records files from an input directory.
Auto-detects whether input is a file or directory.
read input from a directory
The Library class stores all info required to describe all shows.
string getPEpisode() const
Creates an object for each input file and parses file and folder names.
static bool Configure(int, char **)
Reads all arguments into their appropriate variables.
ConfigOpts::errorType getErrorData() const
static string getOptions(optionValue)
Retrieves the user configuration options from an array.
static bool readFile(ConfigOpts *)
Counts and records files from an input file.
static bool readInput(ConfigOpts *)
Detect if input is a file or a directory.
int getShowNameIndex() const
The Parser class creates an object for each input file and parses file and folder names...
The ErrorHandler class stores an error as it occurs.
Prints summary and error information from objects.
static vector< string > v_fileList
A vector that contains the list of input files to be parsed.
The FindFiles class auto-detects whether input is a file or directory.
The InitLists class loads the showlist and blacklist files into arrays.
The ConfigOpts class stores all config options, settings, and flags for clerk.
static bool initBlacklist(ConfigOpts *)
Loads the contents of the blacklist file into an array.
input directory/file from args
Stores all config options, settings, and flags for clerk.
The ErrorHandler class stores an error as it occurs.
int main(int argc, char *argv[])
Loads the showlist and blacklist files into arrays.
static bool initShowlist(ConfigOpts *)
Loads the contents of the showlist file into an array.
Stores all info required to describe all shows.