Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

EventDatabase Class Reference

#include <EventDatabase.H>

List of all members.

Public Member Functions

bool put (list< Event > events)
 puts the list of events into the database return true if succeed
bool flush ()
 it causes the events that have passed to be flushed out of the DB
void processTestQuery (string query_text)
 allow other classes to query the database and print out the contest of the DB after query.


Detailed Description

The EventDatabase takes care of putting events that parsers have found into the database. It checks if the events are duplicates and will merge information of the same events. Events are duplicates if they share the same location and the name of one event is a substring of the other.


Member Function Documentation

bool EventDatabase::flush  ) 
 

it causes the events that have passed to be flushed out of the DB

flush the events which has passed end times(if end times are known) if end times are unknown flush the events with passed start time

Returns:
boolean that is true if database is successfully flushed

void EventDatabase::processTestQuery string  query_text  ) 
 

allow other classes to query the database and print out the contest of the DB after query.

allow other classes to query the database and print out the result

Parameters:
query_text string that represents the sql query

bool EventDatabase::put list< Event events  ) 
 

puts the list of events into the database return true if succeed

dump the events into the database

Parameters:
events list of events to put in
Returns:
boolean that is true if put is successful


The documentation for this class was generated from the following files:
Generated on Wed May 17 22:28:21 2006 for GeoEvents by  doxygen 1.4.2