|
amath
1.8.5
Simple command line calculator
|
#include <program_stdc.h>


Public Member Functions | |
| StandardProgram () | |
| virtual | ~StandardProgram () |
| virtual void | Initialize (int argc, char **argv) |
| virtual void | Start () |
Public Member Functions inherited from Program | |
| Program () | |
| virtual | ~Program () |
| virtual void | Exit () |
| void | NewPositionalInput (short unsigned int base, short unsigned int digits) |
| void | NewPositionalOutput (short unsigned int base, short unsigned int digits) |
| void | SetLastResult (Number *number) |
| void | SetPrompt (const char *text) const |
| int | GetExitStatus () const |
| bool | GetAnsiMode () const |
| void | SetAnsiMode (bool value) |
| struct Number * | GetLastResult () const |
Private Attributes | |
| CharBuffer * | line |
Additional Inherited Members | |
Public Attributes inherited from Program | |
| class Language * | Language |
| class ConsoleBase * | Console |
| class PreferencesBase * | Preferences |
| class FilesystemBase * | Filesystem |
| class NumeralSystem * | Input |
| class NumeralSystem * | Output |
| class VariableList * | Variables |
| class FunctionList * | Functions |
| class GraphList * | Graphs |
Protected Member Functions inherited from Program | |
| void | InitAnsiMode () |
Protected Attributes inherited from Program | |
| bool | shellMode |
| bool | ansiMode |
| int | status |
Definition at line 36 of file program_stdc.h.
| StandardProgram::StandardProgram | ( | ) |
Definition at line 42 of file program_stdc.cpp.
References Program::Console, line, Program::Program(), and Program::shellMode.
Referenced by main().


|
virtual |
Definition at line 50 of file program_stdc.cpp.
References ConsoleBase::Close(), Program::Console, and line.

|
virtual |
Implements Program.
Definition at line 64 of file program_stdc.cpp.
References CharBuffer::Append(), CharBuffer::CharBuffer(), Program::Console, CharBuffer::DeleteLastChar(), CharBuffer::Empty(), CharBuffer::EnsureSize(), PreferencesBase::GetPrompt(), line, Program::Preferences, Program::SetAnsiMode(), Program::shellMode, StrIsEqual(), and StrLen().

|
virtual |
Implements Program.
Definition at line 114 of file program_stdc.cpp.
References Program::Console, Evaluator::Evaluate(), Evaluator::Evaluator(), Evaluator::GetResult(), CharBuffer::GetString(), CharBuffer::IsEmpty(), line, PreferencesBase::Load(), ConsoleBase::Open(), Program::Preferences, ConsoleBase::ResetConsole(), Program::SetAnsiMode(), Program::shellMode, ConsoleBase::ShowHelp(), ConsoleBase::Start(), and ConsoleBase::WriteString().

|
private |
Definition at line 45 of file program_stdc.h.
Referenced by Initialize(), StandardProgram(), Start(), and ~StandardProgram().