The Client Code

The thin client uses the following files:

clientmain.cpp

The client main program does the following:

ticketappclient.h and ticketappclient.cpp

These files define two classes:

TicketAppClient defines a function for each operation (ListShows, ListPerformances, ViewSeats, BuySeats, and the administrative operations). Each function retrieves the corresponding ostc_ServerOperation, sets the arguments, executes the operation, and extracts the results.

The class TicketAppDisplay handles end-user I/O. It defines a function for each operation. Each item of the main menu invokes one of these functions. Each function takes input from the end user, passes it to the corresponding member of TicketAppClient, and outputs the results.



[previous] [next]