All Classes Files Functions Variables Enumerations Enumerator Macros
writeShow.cpp
Go to the documentation of this file.
1 #include "options.hpp"
7 
11 // Recreate the showlist file
12 void ConfigOpts::writeShowList( string dirOut )
13 {
14  // Create a output file stream object
15  ofstream fout;
16  // Create a char array that can used by the output file stream object
17  const char *dirLoc;
18  // Create a string for the file name and location
19  string fileOut, tmpOut;
20 
21  // Add a slash to filename
22  fileOut = SLASH"showlist";
23  // Concatenate the directory location and file name
24  tmpOut = dirOut + fileOut;
25  // Convert to char array
26  dirLoc = tmpOut.c_str();
27 
28  cout << "Writing " + tmpOut + "... ";
29 
30  // Open file for writting
31  fout.open( dirLoc );
32  fout << "#" << endl
33  << "# " << tmpOut << endl
34  << "#" << endl
35  << "# Show list file for the clerk" << endl
36  << "#" << endl
37  << "# The following show names will be used to match" << endl
38  << "# against the files found." << endl
39  << "#" << endl
40  << "#########################################################" << endl
41  << endl
42  << "24/24;*" << endl
43  << "30 Rock/30 rock;*" << endl
44  << "Addams Family/addams family;*" << endl
45  << "Aeon Flux/aeon flux;*" << endl
46  << "ALF/alf;*" << endl
47  << "Angel/angel;*" << endl
48  << "Aqua Teen Hunger Force/aqua teen hunger force;athf;*" << endl
49  << "Avatar - The Last Airbender/the last airbender;*" << endl
50  << "Babylon 5: Crusade/babylon 5: crusade;crusade;*" << endl
51  << "Babylon 5/babylon 5;*" << endl
52  << "Band of Brothers/band of brothers;*" << endl
53  << "Batman - Gotham Knights/gotham knights;batman gk;*Batman/Batman - Gotham Knights" << endl
54  << "Batman - TAS/batman - tas;batman tas;batman animated;*Batman/Batman - TAS" << endl
55  << "Batman - TOS/batman;batman - tos;batman tos;*Batman/Batman - TOS" << endl
56  << "Batgirl/batgirl;*Batman/Batman - TOS/Extras" << endl
57  << "Battlestar Galactica [series 1]/battlestar galactica (series 1);*Battlestar Galactica/1978" << endl
58  << "Battlestar Galactica [series 2]/battlestar galactica (series 2);*Battlestar Galactica/1980" << endl
59  << "Battlestar Galactica/battlestar galactica;*" << endl
60  << "Being Human/being human;*" << endl
61  << "Ben 10: Alien Force/alien force;*Ben 10/Ben 10: Alien Force" << endl
62  << "Ben 10/ben;*Ben 10/Ben 10 - TOS" << endl
63  << "Bewitched/bewitched;*" << endl
64  << "Blakes 7/blake;*" << endl
65  << "The Big Bang Theory/big bang;*" << endl
66  << "Boondocks/boondocks;*" << endl
67  << "Bones/bones;*" << endl
68  << "Boy Meets World/boy meets world;*" << endl
69  << "Buffy the Vampire Slayer/buffy the vampire slayer;buffy;*" << endl
70  << "Burn Notice/burn notice;*" << endl
71  << "Chappelles Show/chappelles;*" << endl
72  << "Charmed/charmed;*" << endl
73  << "Cheers/cheers;*" << endl
74  << "Chip 'n Dale Rescue Rangers/rescue rangers;*" << endl
75  << "Chuck/chuck;*" << endl
76  << "Cold Case/cold case;*" << endl
77  << "Courage the Cowardly Dog/cowardly dog;*" << endl
78  << "Criminal Minds/criminal mind;*" << endl
79  << "CSI Miami/csi miami;csi - miami;csi: miami;crime scene investigation miami;crime scene investigation - miami;crime scene investigation: miami;*CSI/Miami" << endl
80  << "CSI New York/csi n;csi - n;csi: n;crime scene investigation n;crime scene investigation - n;crime scene investigation: n;*CSI/New York" << endl
81  << "CSI Las Vegas/csi;csi l;csi - l;csi: l;crime scene investigation;crime scene investigation l;crime scene investigation: l;crime scene investigation - l;*CSI/Las Vegas" << endl
82  << "Danger Mouse/danger mouse;*" << endl
83  << "Darkwing Duck/darkwing duck;*" << endl
84  << "Dead Like Me/dead like me;*" << endl
85  << "Dead Set/dead set;*" << endl
86  << "DeathNote/deathnote;*" << endl
87  << "Dexter's Lab/dexter's lab;*" << endl
88  << "Dexter/dexter;*" << endl
89  << "Dinosaurs/dinosaurs;*" << endl
90  << "Doctor Who/doctor who;dr who;*" << endl
91  << "Dollhouse/dollhouse; doll house;*" << endl
92  << "Doogie Howser, MD/doogie howser;*" << endl
93  << "DuckTales/ducktales;*" << endl
94  << "Earth 2/earth 2;*" << endl
95  << "Entourage/entourage;*" << endl
96  << "Faerie Tale Theatre/faerie tale theatre;*" << endl
97  << "Family Guy/family guy;*" << endl
98  << "Family Matters/family matters;*" << endl
99  << "Farscape/farscape;*" << endl
100  << "Firefly/firefly;*" << endl
101  << "Fraggle Rock/fraggle rock;*" << endl
102  << "Frasier/frasier;*" << endl
103  << "Friends/friends;*" << endl
104  << "Fringe/fringe;*" << endl
105  << "Frisky Dingo/frisky dingo;*" << endl
106  << "Futurama/futurama;*" << endl
107  << "Ghost Whisperer/ghost whisperer;*" << endl
108  << "Gilligan's Island/gilligan;*" << endl
109  << "Gilmore Girls/gilmore;*" << endl
110  << "Godzilla/godzilla;*" << endl
111  << "Greys Anatomy/greys anatomy;*" << endl
112  << "Gummi Bears/gummi bears;*" << endl
113  << "Hawthorne/hawthorne;*" << endl
114  << "Hogans Heroes/hogans heroes;*" << endl
115  << "House of Payne/house of payne;payne;*" << endl
116  << "House MD/house;*" << endl
117  << "How I Met Your Mother/how i met your mother;*" << endl
118  << "I Dream of Jeannie/dream of jeannie;*" << endl
119  << "Invader Zim/invader zim;*" << endl
120  << "Jonny Quest/jonny quest;*" << endl
121  << "Justice League/justice league;*" << endl
122  << "Kim Possible/kim possible;*" << endl
123  << "Land of the Lost/land of the lost;*" << endl
124  << "Las Vegas/las vegas;*" << endl
125  << "Lexx/lexx;*" << endl
126  << "Looney Tunes/looney tunes;*" << endl
127  << "Lois & Clark/clark;*" << endl
128  << "Lost in Space/lost in space;*" << endl
129  << "Lost Room/lost room;*" << endl
130  << "Lucy, the Daughter of the Devil/daughter of the devil;*" << endl
131  << "MacGyver/macgyver;*" << endl
132  << "Married with Children/married with children;mwc;*" << endl
133  << "MASH/mash;*" << endl
134  << "Medium/medium;*" << endl
135  << "MST3K/mst3k;*" << endl
136  << "Narnia/narnia;*" << endl
137  << "NCIS/ncis;*" << endl
138  << "Parker Lewis Can't Lose/parker lewis;*" << endl
139  << "Pinky and the Brain/pinky and the;*" << endl
140  << "Planet of the Apes/planet of the apes;*" << endl
141  << "Prison Break/prison break;*" << endl
142  << "Quantum Leap/quantum leap;*" << endl
143  << "ReBoot/reboot;*" << endl
144  << "Red Dwarf/red dwarf;*" << endl
145  << "Red Vs Blue/red vs blue;red v blue;rvb;*" << endl
146  << "Ren & Stimpy/stimpy;*" << endl
147  << "Rescue Me/rescue me;*" << endl
148  << "Robot Chicken/robot chicken;*" << endl
149  << "Rocko's Modern Life/rocko's modern life;*" << endl
150  << "Rome/rome;*" << endl
151  << "Roots/roots;*" << endl
152  << "Sabrina The Teenage Witch/sabrina;*" << endl
153  << "Samurai Jack/samurai jack;*" << endl
154  << "Scooby Doo - Where are You/where are you;*Scooby Doo/Where are You" << endl
155  << "Scrubs/scrubs;*" << endl
156  << "Sealab 2021/sealab;*" << endl
157  << "Sex and the City/sex and the city;*" << endl
158  << "Smallville/smallville;*" << endl
159  << "South Park/south park;*" << endl
160  << "Spaced/spaced;*" << endl
161  << "Spartacus - Blood and Sand/spartacus;*" << endl
162  << "Spiderman/spider man;spider-man;spiderman;*" << endl
163  << "SpongeBob SquarePants/spongebob;*" << endl
164  << "Star Trek Enterprise/enterprise;*Star Trek/Enterprise" << endl
165  << "Star Trek TOS/star trek orignal;star trek original series;*Star Trek/TOS" << endl
166  << "Star Trek TNG/tng;*Star Trek/TNG" << endl
167  << "Star Trek DS9/ds9;*Star Trek/DS9" << endl
168  << "Star Trek VGR/vgr;*Star Trek/VGR" << endl
169  << "Star Trek TAS/star trek animated;*Star Trek/TAS" << endl
170  << "Storm Hawks/storm hawks;*" << endl
171  << "Supernatural/supernatural;*" << endl
172  << "Talespin/talespin;*" << endl
173  << "Teen Titans/teen titans;*" << endl
174  << "Teenage Mutant Ninja Turtles/ninja turtles;*" << endl
175  << "That '70s Show/70s show;*" << endl
176  << "The Adventures of Brisco County Jr/brisco county;*" << endl
177  << "The Cosby Show/cosby;*" << endl
178  << "The Dead Zone/dead zone;*" << endl
179  << "The Dresden Files/dresden;*" << endl
180  << "The Drew Carey Show/drew carey;*" << endl
181  << "The Event/the event;*" << endl
182  << "The Fairly Odd Parents/fairly odd parents;*" << endl
183  << "The Flintstones/flintstones;*" << endl
184  << "The Fresh Prince of Bel-Air/fresh prince;*" << endl
185  << "The Inbetweeners/the inbetweeners;inbetweeners;*" << endl
186  << "The IT Crowd/the it crowd;it crowd;*" << endl
187  << "The Jetsons/jetsons;*" << endl
188  << "The Lost World/the lost world;*" << endl
189  << "The Maxx/maxx;*" << endl
190  << "The Muppet Babies/muppet babies;*" << endl
191  << "The Muppet Show/muppet show;*" << endl
192  << "The Never Ending Story/never ending story;*" << endl
193  << "The Outer Limits/outer limits;*" << endl
194  << "The Pirates of Dark Water/dark water;*" << endl
195  << "The Powerpuff Girls/powerpuff girls;*" << endl
196  << "The Real Ghostbusters/real ghostbusters;rgb;*" << endl
197  << "Terminator - The Sarah Connor Chronicles/sarah connor;*" << endl
198  << "The Scooby-Doo Show/the scooby-doo show;the scooby doo show;the scoobydoo show;*" << endl
199  << "The Simpsons/the simpsons;simpson;*" << endl
200  << "The Sopranos/sopranos;*" << endl
201  << "The Tick/the tick;*" << endl
202  << "The Transformers/transformers;*" << endl
203  << "The Tribe/the tribe;*" << endl
204  << "The Twilight Zone/twilight zone;*" << endl
205  << "The Venture Bros/venture bros;*" << endl
206  << "The Walking Dead/walking dead;*" << endl
207  << "The Wonder Years/wonder years;*" << endl
208  << "The Young Ones/young ones;*" << endl
209  << "Three's Company/three's company;threes company;*" << endl
210  << "Thunderbirds/thunderbirds;*" << endl
211  << "ThunderCats/thundercats;*" << endl
212  << "True Blood/true blood;*" << endl
213  << "V/v tv series;v the final;v the original;*" << endl
214  << "X-Files/x-files;*" << endl
215  << "X-Men Evolution/evolution;*X-Men/X-Men Evolution" << endl
216  << "X-Men TAS/x-men;*X-Men/X-Men TAS" << endl
217  << "Young Indiana Jones Chronicles/young indiana;*" << endl
218  << endl
219  << "#########################################################" << endl
220  << "#" << endl
221  << "# The following show titles are short enough to cause" << endl
222  << "# false positive matches, and therefore checked last." << endl
223  << "#" << endl
224  << "#########################################################" << endl
225  << endl
226  << "Lost/lost;*" << endl
227  << "Heroes/heroes;*" << endl
228  << "ER/emergency room;*" << endl;
229  // Close file
230  fout.close();
231 
232  cout << "complete" << endl;
233 };
#define SLASH
Definition: options.hpp:32
static void writeShowList(string)
Generates a default showlist file in a given directory.
Definition: writeShow.cpp:12
The ConfigOpts class stores all config options, settings, and flags for clerk.