14 #define MKDIR "mkdir "
17 #define RENAME "move "
18 #define SCRIPT1 "@ECHO OFF"
22 #define LOC2 "C:\\Program Files\\clerk\\"
23 #define LOC3 "C:\\clerk\\"
26 #define MKDIR "mkdir -p "
30 #define SCRIPT1 "#!/bin/bash"
34 #define LOC2 "/etc/clerk/"
35 #define LOC3 "/usr/share/clerk/"
131 static bool Configure(
int,
char ** );
133 static void setOptions( optionValue,
string );
134 static string getOptions( optionValue );
136 static void setFlags( flagValue );
137 static bool getFlags( flagValue );
146 static bool argsTest(
int,
char ** );
148 static void configRead();
149 static void configCheck();
151 static bool argsRead(
int,
char ** );
152 static bool argsCheck(
int,
string );
154 static void writeFout(
string );
155 static void writeShowList(
string );
156 static void writeBlackList(
string );
157 static void writeConfigFile(
string );
159 static void printHelp();
160 static void printVersion();
162 static string options[Default_opt];
192 static bool flags[Default_flag];
A Show name match failure occured.
max size of a episode, in bytes
output summary and error information
file types that should be filtered
perform an internal action instead of writing a script
holds season digit option
the location of the blacklist file
read input from a directory
holds the output level option
rewrite showlist, blacklist, config files
not sure if needed (WTF?)
static vector< vector< string > > v_showList
A vector of vectors the will store a list of shows and a list of their episodes.
holds xml file name and location
output directory from args
not sure if needed (WTF?)
output version information
the delimters used to parse the file filter
the delimiters used to parse showlist lines
holds gap file name and location
the delimters used to parse the no uppercased words
static vector< string > v_fileList
A vector that contains the list of input files to be parsed.
holds script file name and location
take no real actions - just output to stdout
write a script instead of internal action
output to log instead of stdout
holds the season/episode and title separator
words that should not be uppercased
A duplicate Episode failure occured.
A Season or Episode pattern match failure occured.
input directory/file from args
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.
holds log file name and location
the location of the showlist file
holds showlist, blacklist, config rewrite location