GXemul.h Source File
Back to the index.
Go to the documentation of this file.
80 bool ParseFilenames(
string templateMachine,
int filenameCount,
char *filenames[]);
180 return m_interrupting;
254 bool ModifyStep(int64_t oldStep, int64_t newStep);
273 void Execute(
const int longestTotalRun = 100000);
298 bool CreateEmulationFromTemplateMachine(
const string& templateName);
303 void PrintUsage()
const;
310 void SetStep(uint64_t step);
320 static void RunUnitTests(
int& nSucceeded,
int& nFailures);
327 vector<string> m_onResetCommands;
332 uint64_t m_nrOfSingleStepsLeft;
335 struct timeval m_lastOutputTime;
336 uint64_t m_lastOutputStep;
339 string m_emulationFileName;
343 bool m_snapshottingEnabled;
void SetSnapshottingEnabled(bool enabled)
Sets whether or not to use snapshots.
bool IsInterrupting() const
Returns whether or not the current emulation is being interrupted.
bool ParseFilenames(string templateMachine, int filenameCount, char *filenames[])
Parses command line arguments (file names).
bool GetSnapshottingEnabled() const
Checks whether snapshots are currently enabled or not.
void SetNrOfSingleStepsInARow(uint64_t steps)
Sets the nr of single-steps to perform in a row.
void ClearEmulation()
Discards the current emulation, and starts anew with just an empty root component.
CommandInterpreter & GetCommandInterpreter()
Gets a reference to the CommandInterpreter.
int Run()
Runs GXemul's main loop.
void InitUI()
Initializes the UI.
bool IsTemplateMachine(const string &templateName) const
Base class for a User Interface.
refcount_ptr< Component > GetRootComponent()
Gets a pointer to the root configuration component.
void SetRunState(RunState newState)
Sets the RunState.
void SetEmulationFilename(const string &filename)
Sets the current emulation setup's filename.
string GetRunStateAsString() const
Gets the current RunState as a string.
void Execute(const int longestTotalRun=100000)
Run the emulation for "a while".
bool ModifyStep(int64_t oldStep, int64_t newStep)
Change step either forwards or backwards.
GXemul()
Creates a GXemul instance.
bool Reset()
Resets the emulation.
static void ListTemplates()
Dump a list to stdout with all available machine templates.
RunState GetRunState() const
Gets the current RunState.
void SetQuietMode(bool quietMode)
Sets whether or not to run in quiet mode.
An interactive command interpreter, which run Commands.
static void GenerateHTMLListOfComponents(bool machines)
UI * GetUI()
Gets a pointer to the GXemul instance' active UI.
uint64_t GetStep() const
Gets the current step of the emulation.
static void DumpMachineAsHTML(const string &machineName)
const string & GetEmulationFilename() const
Gets the current emulation setup's filename.
static string Version()
Returns the GXemul version string.
void SetRootComponent(refcount_ptr< Component > newRootComponent)
Sets the root component, discarding the previous one.
bool GetQuietMode() const
Gets the current quiet mode setting.
void Interrupt()
Interrupts emulation.
static void RunUnitTests(int &nSucceeded, int &nFailures)
Generated on Tue Mar 24 2020 14:04:48 for GXemul by
1.8.17