#include "ParserTurnToTen.H"
#include <stdlib.h>
#include <string>
#include <iostream>
#include <errno.h>
#include "HTMLGrabber.H"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
Functions | |
list< Event > | duplicateEvent (Event evt, struct tm firstDay, struct tm lastDay) |
Returns a list containing duplicates of the given Event, one for each of the day range given. | |
bool | tttFindNextPage () |
Sets the next URL, w/ the next set of Events, based on the current URL. | |
bool | tttIsEmptyFile (char *fileName) |
Determines if a given file is empty (most likely due to wget failure). | |
list< Event > | tttFindEvents (FILE *page) |
Finds the 10 Event listings on a given subpage. | |
void | grabTimeFromLine (char *str, Event *evt) |
Sets the time of an Event. | |
void | grabLocationFromLine (char *str, Event *evt) |
Sets the location of an Event. | |
Variables | |
char * | starting_Url = "http://www.pwcvb.com/visitors/members/view-events.cfm?StartRow=01" |
URL from which parsing begins. | |
char | ttt_Next_Page [PARSERTTT_STARTINGURL_LENGTH+1] |
Next page to Parse. | |
FILE * | ttt_page |
File descriptor for the currently-parsed page. | |
HTMLGrabber | ttt_myGrabber |
Grabber of ye olde HTML. |
|
Returns a list containing duplicates of the given Event, one for each of the day range given. Also sets the times accordingly. Cannot handle start times or end times that vary by day.
|
|
Sets the location of an Event.
|
|
Sets the time of an Event.
|
|
Finds the 10 Event listings on a given subpage.
|
|
Sets the next URL, w/ the next set of Events, based on the current URL.
|
|
Determines if a given file is empty (most likely due to wget failure).
|