/* File: iotravel.h
 * Description: this module implements the input and output of city
 * route data, including the display of results.
 * Cristina Cifuentes
 * 3 August 1997
 * 18 August 1997 - added citygraph.h include and changed FlightRouteTypes
 *    (2-D array) for Graph data type.
*/


#ifndef __iotravel_h
#define __iotravel_h   /* prevent multiple includes */

#include "cities.h"
#include "strlib.h"
#include "citygraph.h"


/* PROTOTYPES */

void inputRouteFileName (String);
/* Get the file name of the input data file of paths */


int inputFlightRoutes (String, Graph);
/* Reads the file and stores the cities and their destinations in
 * a Graph.
 * If the file contains errors, it returns the code 2, and if it cannot
 * be found, it returns the error code 1.
 * An error code of 0 indicates that the file is valid. */


void inputTrip (cityPair *);
/* Allows the user to input a pair of cities */


void outputAvailableRoutes();
/* Displays a list of the names of all the cities available in cities.h */


void outputRoute (cityPair, cityPath, Graph, int);
/* Displays the path cityPath, together with associated distances
 * (available via the Graph).  */


void displayTitleAndInformation();
/* Display intro information */


#endif


