Dummy UI, which does not do anything.
More...
#include <NullUI.h>
|
| NullUI (GXemul *gxemul) |
| Constructs a NullUI. More...
|
|
virtual | ~NullUI () |
|
virtual void | Initialize () |
| Does nothing, for the dummy UI. More...
|
|
virtual void | UpdateUI () |
| Does nothing, for the dummy UI. More...
|
|
virtual void | ShowStartupBanner () |
| Does nothing, for the dummy UI. More...
|
|
virtual void | ShowDebugMessage (const string &msg) |
| Does nothing, for the dummy UI. More...
|
|
virtual void | ShowDebugMessage (Component *component, const string &msg) |
| Does nothing, for the dummy UI. More...
|
|
virtual void | ShowCommandMessage (const string &command) |
| Does nothing, for the dummy UI. More...
|
|
virtual void | FatalError (const string &msg) |
| Does nothing, for the dummy UI. More...
|
|
virtual void | RedisplayInputLine (const string &inputline, size_t cursorPosition) |
| Does nothing, for the dummy UI. More...
|
|
virtual void | InputLineDone () |
| Executed by the CommandInterpreter when a line has been completed (with a newline). More...
|
|
virtual int | MainLoop () |
| Runs the main loop. Ignored by the NullUI. More...
|
|
virtual void | Shutdown () |
| Shuts down the UI. More...
|
|
| UI (GXemul *gxemul) |
| Constructs a User Interface. More...
|
|
virtual | ~UI () |
|
void | SetIndentationMessage (const string &msg) |
| Sets an indentation message, which indents all debug output. More...
|
|
string | GetIndentationMessage () const |
| Gets the indentation message. More...
|
|
| ReferenceCountable () |
| Default constructor, which initializes the reference count to zero. More...
|
|
| ~ReferenceCountable () |
|
Dummy UI, which does not do anything.
Definition at line 37 of file NullUI.h.
◆ NullUI()
NullUI::NullUI |
( |
GXemul * |
gxemul | ) |
|
Constructs a NullUI.
- Parameters
-
gxemul | Pointer to the owning GXemul instance. |
Definition at line 32 of file NullUI.cc.
◆ ~NullUI()
◆ FatalError()
void NullUI::FatalError |
( |
const string & |
msg | ) |
|
|
virtual |
Does nothing, for the dummy UI.
- Parameters
-
msg | The error message to show. (Ignored.) |
Implements UI.
Definition at line 73 of file NullUI.cc.
◆ Initialize()
void NullUI::Initialize |
( |
| ) |
|
|
virtual |
Does nothing, for the dummy UI.
Implements UI.
Definition at line 43 of file NullUI.cc.
◆ InputLineDone()
void NullUI::InputLineDone |
( |
| ) |
|
|
virtual |
Executed by the CommandInterpreter when a line has been completed (with a newline).
For the NullUI, this is ignored.
Implements UI.
Definition at line 83 of file NullUI.cc.
◆ MainLoop()
Runs the main loop. Ignored by the NullUI.
The NullUI returns 0 immediately.
Implements UI.
Definition at line 93 of file NullUI.cc.
◆ RedisplayInputLine()
void NullUI::RedisplayInputLine |
( |
const string & |
inputline, |
|
|
size_t |
cursorPosition |
|
) |
| |
|
virtual |
Does nothing, for the dummy UI.
- Parameters
-
inputline | The entire input line. (Ignored.) |
cursorPosition | The current cursor position. 0 is at the leftmost position. (Ignored.) |
Implements UI.
Definition at line 78 of file NullUI.cc.
◆ ShowCommandMessage()
void NullUI::ShowCommandMessage |
( |
const string & |
command | ) |
|
|
virtual |
Does nothing, for the dummy UI.
- Parameters
-
command | The command to show. (Ignored.) |
Implements UI.
Definition at line 68 of file NullUI.cc.
◆ ShowDebugMessage() [1/2]
void NullUI::ShowDebugMessage |
( |
const string & |
msg | ) |
|
|
virtual |
Does nothing, for the dummy UI.
- Parameters
-
msg | The message to show. (Ignored.) |
Implements UI.
Definition at line 58 of file NullUI.cc.
◆ ShowDebugMessage() [2/2]
void NullUI::ShowDebugMessage |
( |
Component * |
component, |
|
|
const string & |
msg |
|
) |
| |
|
virtual |
Does nothing, for the dummy UI.
- Parameters
-
component | A pointer to the Component. (Ignored.) |
msg | The message to show. (Ignored.) |
Implements UI.
Definition at line 63 of file NullUI.cc.
◆ ShowStartupBanner()
void NullUI::ShowStartupBanner |
( |
| ) |
|
|
virtual |
Does nothing, for the dummy UI.
Implements UI.
Definition at line 48 of file NullUI.cc.
◆ Shutdown()
void NullUI::Shutdown |
( |
| ) |
|
|
virtual |
Shuts down the UI.
Called from e.g. the "quit" command.
Implements UI.
Definition at line 88 of file NullUI.cc.
◆ UpdateUI()
void NullUI::UpdateUI |
( |
| ) |
|
|
virtual |
Does nothing, for the dummy UI.
Implements UI.
Definition at line 53 of file NullUI.cc.
The documentation for this class was generated from the following files: