#include <Event.H>
Public Types | |
| typedef enum Event::EventCategory | EventCategory |
| Standard list of our Event Categories. | |
| enum | EventCategory { CONCERT, PERFORMANCE, SPORTS, COMEDY, MUSEUM, OTHER_UNKNOWN } |
| Standard list of our Event Categories. More... | |
Public Member Functions | |
| Event () | |
| Standard constructor; Null-terminates all strings, sets all "known"s to false, and all coordinates/times to "Unknown" constants. | |
| Event (const Event &otherEvent) | |
| Copy Constructor. Copies all member variables, with a deep copy of categories. | |
| ~Event () | |
| Destuctor; clears Category list. | |
| int | operator== (const Event ¶m) |
| Equality test. | |
| bool | isRealEvent () |
| Check if this is a real Event, or just a dummy one. | |
| char * | getEventTitle () |
| Get the title of this Event. | |
| char * | getLocationTitle () |
| Get the location of this Event in char* form, such as "Dunkin' Donuts Center". | |
| char * | getStreet () |
| Get the Street address of this Event, such as "1 Sabin Street". | |
| char * | getState () |
| Get the postal code of the state of this Event, such as "RI". | |
| char * | getCity () |
| Get the city of this Event, such as "Providence". | |
| char * | getZip () |
| Get the ZIP code of this Event, such as 02903-9000. | |
| double | getLatitude () |
| Get the Latitude of this Event, or EVENT_COORDINATE_UNKNOWN if it is unknown. | |
| double | getLongitude () |
| Get the Longitude of this Event, or EVENT_COORDINATE_UNKNOWN if it is unknown. | |
| time_t | getStartTime () |
| Get the starting time of this Event, or EVENT_TIME_UNKNOWN if it is unknown. | |
| bool | isTimeSpecified () |
| Returns true if the time of day is specified, false otherwise. DEPRECATED. | |
| time_t | getEndTime () |
| Get the ending time of this Event, or EVENT_TIME_UNKNOWN if it is unknown. | |
| list< EventCategory > | getCategories () |
| Get the list of all catogories for this event. DEPRECATED. | |
| list< EventCategory > | getCategories_c () const |
| char * | getUrl () |
| Get the URL from which we found this Event. | |
| char * | getDescription () |
| Get a description of this Event. | |
| bool | setEventTitle (char *title) |
| Sets the title of this Event. | |
| bool | setLocationTitle (char *location) |
| Sets the location of this Event. | |
| bool | setStreet (char *street) |
| Sets the street of this Event. | |
| bool | setState (char *state) |
| Sets the state of this Event. | |
| bool | setCity (char *city) |
| Sets the city of this Event. | |
| bool | setZip (char *zip) |
| Sets the zip of this Event. | |
| bool | setLatitude (double latitude) |
| Sets the latitude of this Event. | |
| bool | setLongitude (double longitude) |
| Sets the longitude of this Event. | |
| bool | setStartTime (time_t startTime) |
| Sets the start time of this Event, and sets starttime_Known to true. | |
| void | setTimeSpecified (bool timeSpecified) |
| Sets whether or not the time of day for this Event was specified. | |
| bool | setEndTime (time_t endTime) |
| Sets the end time of this Event, and sets endtime_Known to true. | |
| void | setStartTimeSpecified (bool isSpecified) |
| Sets whether or not the start time of this Event was specified. | |
| void | setEndTimeSpecified (bool isSpecified) |
| Sets whether or not the end time of this Event was specified. | |
| bool | isStartTimeSpecified () |
| Checks if the start time of day is specified. | |
| bool | isEndTimeSpecified () |
| Checks if the end time of day is specified. | |
| bool | addCategory (EventCategory cat) |
| bool | setUrl (char *url) |
| Sets the reference URL of this Event. | |
| bool | setDescription (char *description) |
| Sets the description of this Event. | |
| void | mergeEvent (const Event &otherEvent) |
| Not used and not written. | |
| void | printEvent () |
| Prints the contents of this event to stdout. | |
|
|
|
Adds a category to this Event's category list. Will not insert duplicate categories.
|
|
|
Get the list of all catogories for this event. DEPRECATED.
|
|
|
Get the list of all categories for this event.
|
|
|
Get the city of this Event, such as "Providence".
|
|
|
Get a description of this Event.
|
|
|
Get the ending time of this Event, or EVENT_TIME_UNKNOWN if it is unknown.
|
|
|
Get the title of this Event.
|
|
|
Get the Latitude of this Event, or EVENT_COORDINATE_UNKNOWN if it is unknown.
|
|
|
Get the location of this Event in char* form, such as "Dunkin' Donuts Center".
|
|
|
Get the Longitude of this Event, or EVENT_COORDINATE_UNKNOWN if it is unknown.
|
|
|
Get the starting time of this Event, or EVENT_TIME_UNKNOWN if it is unknown.
|
|
|
Get the postal code of the state of this Event, such as "RI".
|
|
|
Get the Street address of this Event, such as "1 Sabin Street".
|
|
|
Get the URL from which we found this Event.
|
|
|
Get the ZIP code of this Event, such as 02903-9000.
|
|
|
Checks if the end time of day is specified. Do NOT confuse *specified* with *known*. If we are given a date, but no time of day, then it is known, but not specified. Getter functions will return EVENT_TIME_UNKNOWN if the time is not known, and will return midnight on the start of the specified day if they are known but not specified.
|
|
|
Check if this is a real Event, or just a dummy one. Determines if this is a "Real" event, or an empty one. If length of Title, Location, or Street is high enough, event is considered real.
|
|
|
Checks if the start time of day is specified. Do NOT confuse *specified* with *known*. If we are given a date, but no time of day, then it is known, but not specified. Getter functions will return EVENT_TIME_UNKNOWN if the time is not known, and will return midnight on the start of the specified day if they are known but not specified.
|
|
|
Returns true if the time of day is specified, false otherwise. DEPRECATED.
|
|
|
Not used and not written. In theory, would combine Events from multiple sources, reconciling partial information.
|
|
|
Equality test. Returns false if events are equal, true otherwise. Equality requires that Title, Street, Zip, and Location match _exactly) (including case), and also that, IF both This and param have known startTimes, that they also match. Apparently, the DB has a more intelligent means of Event comparisons.
|
|
|
Sets the city of this Event.
|
|
|
Sets the description of this Event.
|
|
|
Sets the end time of this Event, and sets endtime_Known to true.
|
|
|
Sets whether or not the end time of this Event was specified.
|
|
|
Sets the title of this Event.
|
|
|
Sets the latitude of this Event.
|
|
|
Sets the location of this Event.
|
|
|
Sets the longitude of this Event.
|
|
|
Sets the start time of this Event, and sets starttime_Known to true.
|
|
|
Sets whether or not the start time of this Event was specified.
|
|
|
Sets the state of this Event.
|
|
|
Sets the street of this Event.
|
|
|
Sets whether or not the time of day for this Event was specified.
|
|
|
Sets the reference URL of this Event.
|
|
|
Sets the zip of this Event.
|
1.4.2