All Classes Files Functions Variables Enumerations Enumerator Macros
Functions
main.cpp File Reference

A video organizing program created by Erick Tyndall and Emrys Maier. More...

#include "options.hpp"
#include "initlists.hpp"
#include "findfiles.hpp"
#include "parser.hpp"
#include "handler.hpp"
#include "output.hpp"
#include "library.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Detailed Description

A video organizing program created by Erick Tyndall and Emrys Maier.

PROGRAM OUTLINE: The program is able to rename, move, copy, and summarize tv shows found these tasks can be written into a script or performed internally.

By default only major errors are sent to stdout under verbose mode, clerk will list the name/season/episode of each show parsed, and a message stating when a file isn't parsed and the reason.

Turning on the log will send all this to a file instead of to stdout

Authors
erythros and emrys
Version
0.37

Definition in file main.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)
clerk performs the following steps:
Create a pointer to a ConfigOpts object
Read the config file/command line arguments and set flags and options
Create a pointer to an InitLists object
Check if initShowlist exists and load to an array
Check if initBlacklist exists and load to an array
Create a pointer to a FindFiles object array
Check if input is a file or directory and set flags:
    Check if input is a file
Check if input file can be read and read all files within:
    Check if input is a directory
Check if input directory can be read and read all files within
Create a Library object
Create a vector of ErrorHandler objects
For each file found:
    Create a temporary Parser object
    Send file to parse method
    Check if there was a parsing error:
        Store the error information in the error handler
    No parsing error:
       Send parse data to Library object for final storage
Send array to output method
Clean up

Definition at line 56 of file main.cpp.

Here is the call graph for this function: