amath
1.8.5
Simple command line calculator
|
Abstract base class encapsulating console logic. More...
#include <console.h>
Public Member Functions | |
ConsoleBase (const char *prompt) | |
virtual | ~ConsoleBase () |
const char * | GetName () |
virtual bool | Open () |
virtual void | Close () |
virtual void | Start ()=0 |
virtual void | Exit ()=0 |
virtual void | Clear () |
virtual void | ShowHelp () |
virtual void | ShowAbout () |
virtual void | ShowLicense () |
virtual void | ShowVersion () |
virtual void | SetPrompt (const char *string) |
virtual void | WriteString (const char *string)=0 |
virtual bool | SetAnsiMode (bool value) |
virtual void | ResetConsole () |
Protected Member Functions | |
virtual void | StartMessage () |
void | Prompt () |
const char * | GetVersionText () |
const char * | GetCompilerText () |
Protected Attributes | |
char * | prompt |
bool | ansiMode |
Private Member Functions | |
void | AnsiItalics () |
void | AnsiBold () |
|
explicit |
Definition at line 75 of file console.cpp.
References AllocAndCopy(), and prompt.
|
virtual |
Definition at line 80 of file console.cpp.
References prompt.
|
private |
Definition at line 124 of file console.cpp.
References ansiMode, and WriteString().
Referenced by ShowAbout(), ShowLicense(), and ShowVersion().
|
private |
Definition at line 133 of file console.cpp.
References ansiMode, and WriteString().
Referenced by ShowLicense().
|
virtual |
Definition at line 142 of file console.cpp.
References ansiMode, ResetConsole(), and WriteString().
Referenced by ClearStatement::Execute().
|
virtual |
Definition at line 105 of file console.cpp.
Referenced by StandardProgram::~StandardProgram().
|
pure virtual |
Implemented in StandardConsole.
Referenced by Program::Exit().
|
protected |
Definition at line 95 of file console.cpp.
References compiler.
const char * ConsoleBase::GetName | ( | ) |
Definition at line 85 of file console.cpp.
|
protected |
Definition at line 90 of file console.cpp.
References version.
|
virtual |
Definition at line 100 of file console.cpp.
Referenced by StandardProgram::Start().
|
protected |
Definition at line 207 of file console.cpp.
References prompt, ResetConsole(), and WriteString().
|
virtual |
Definition at line 115 of file console.cpp.
References ansiMode, and WriteString().
Referenced by Clear(), Prompt(), ShowAbout(), ShowLicense(), ShowVersion(), StandardProgram::Start(), and StartMessage().
Reimplemented in StandardConsole.
Definition at line 109 of file console.cpp.
References ansiMode.
Referenced by Program::SetAnsiMode().
|
virtual |
Reimplemented in StandardConsole.
Definition at line 214 of file console.cpp.
References AllocAndCopy(), and prompt.
Referenced by PrefsStatement::Execute(), and Program::SetPrompt().
|
virtual |
Definition at line 174 of file console.cpp.
References about, AnsiBold(), compiler, ResetConsole(), version, and WriteString().
Referenced by AboutStatement::Execute().
|
virtual |
Definition at line 158 of file console.cpp.
References help, and WriteString().
Referenced by StandardProgram::Start().
|
virtual |
Definition at line 186 of file console.cpp.
References AnsiBold(), AnsiItalics(), copyright, footer, license, ResetConsole(), and WriteString().
Referenced by LicenseStatement::Execute().
|
virtual |
Definition at line 163 of file console.cpp.
References AnsiBold(), compiler, ResetConsole(), version, and WriteString().
Referenced by VersionStatement::Execute().
|
pure virtual |
Implemented in StandardConsole.
Referenced by StandardProgram::Start().
|
protectedvirtual |
Definition at line 201 of file console.cpp.
References ResetConsole(), and WriteString().
|
pure virtual |
Implemented in StandardConsole.
Referenced by AnsiBold(), AnsiItalics(), Clear(), Prompt(), ResetConsole(), ShowAbout(), ShowHelp(), ShowLicense(), ShowVersion(), StandardProgram::Start(), and StartMessage().
|
protected |
Definition at line 69 of file console.h.
Referenced by AnsiBold(), AnsiItalics(), Clear(), ResetConsole(), and SetAnsiMode().
|
protected |
Definition at line 68 of file console.h.
Referenced by ConsoleBase(), Prompt(), SetPrompt(), and ~ConsoleBase().