// driver.h Interface file for driver functions #ifndef DRIVER_H #define DRIVER_H /******************************************************************************* // MODULE NAME: Driver // INTERFACE FILE: driver.h // IMPLEMENTATION FILE: driver.cpp // // PURPOSE: To provide functions useful for integrating existing BAL code with // Amulet GUI library functions // // EXTERNAL FUNCTIONS: Name Purpose // openFile Open specified BAM file & store info // into linked lists // closeFile Destroy linked lists // writeFile Write linked list info into new BAM file // w/specified filename // getNextRecord Change current record to next record // getPrevRecord Change current record to previous record // getFirstRecord Change current record to first record // getLastRecord Change current record to last record // noRecords Determine if there are no active records // searchByAlley Search for a record w/specified string // in the alley name field // searchByEvent Search for a record w/specified string // in the event title field // searchByDate Search for a record w/specified string // in the date field // Alley Return Alley field of current record // Event Return Event field of current record // Date Return Date field of current record // Ball Return Ball field of current record // Lift Return Lift field of current record // Conditions Return Conditions fld of current record // Mark_1...Mark_10 Return appropriate markings field of // current record // Score_1...Score_10 Return appropriate score field of // current record // INTERNAL FUNCTIONS: Name Purpose // BuildBamList Insert data into BamList // BuildGameFramesList Create subset of Frames list // based on game index # // SyncFramesList Combine Frames master list & sublist // ParseFrame Determine frame scoring information // BallValue Evaluate individual score marking // // AUTHOR: Amy Langill *2B DATE: 5/2/1999 *******************************************************************************/ #include using namespace std; bool openFile(string fileName); // open a BAM file void closeFile(); // clean out lists void writeFile(string fileName); // write a new BAM file bool getNextRecord(); // move to next record bool getPrevRecord(); // move to previous record bool getFirstRecord(); // move to first record bool getLastRecord(); // move to last record bool noRecords(); // Determine if no records currently exist bool searchByAlley(string alleyString); // find a record based on alley bool searchByEvent(string eventString); // find a record based on event bool searchByDate(string dateString); // find a record based on date string Alley(); // Return current value of specific field string Event(); // string Date(); // string Ball(); // string Lift(); // string Conditions(); // string Mark_1(); // string Mark_2(); // string Mark_3(); // string Mark_4(); // string Mark_5(); // string Mark_6(); // string Mark_7(); // string Mark_8(); // string Mark_9(); // string Mark_10(); // string Score_1(); // string Score_2(); // string Score_3(); // string Score_4(); // string Score_5(); // string Score_6(); // string Score_7(); // string Score_8(); // string Score_9(); // string Score_10(); // #endif