Class: Epp

Method and Variable Index

Public:

Protected:

Method Descriptions

Epp(ScreenOutput *display, AudioOutput *audio, Keyboard *keyboard, Joystick *joystick, Mouse *mouse)

Creates the E++ front end object. The main() function should parse the command line, and create the input and output objects as appropriate, the Epp object is then created, using these IO objects.

void setMachine(Machine *machine)

If you create a machine externally to the Epp front end, this method is used to pass that machine to the front end. For example, main will create a machine object if one is specified on the command line. It then passes that to Epp which will run it when start() is invoked.

void start(void)

start() starts up the front end. If no machine has been passed to Epp, then an interactive front end will allow the user to select the emulation required. This interface will be returned to when the machine exits.

If a machine has already been created, then that emulation will be started, and the program will exit on completion.

int checkInterface(void)

checkInterface() should be called regularly by the emulate() method of a Machine object. It checks for keyboard input from the user, which could be used to reset the emulated machine, dump a screenshot or exit the emulator. If a non-zero value is returned, then the Machine should destroy and Components it has and return from the emulate() method, so the program can exit.

static void resetLog()

resetLog() creates a new log file, overwriting the current one. It is usually called at the start of the program.

static void log(char *text)

Writes text to the log file. A new line is appended to the string.

Machine *getMachineByName(char *name, Epp *epp, ScreenOutput *display, AudioOutput *audio, Keyboard *keyboard, Joystick *joystick, Mouse *mouse)

Creates a machine object from its name. The machine will be passed those IO objects which it requires on creation.

This method is likely to change in the future, as the front end is developed.