|
amath
1.8.5
Simple command line calculator
|
Change numeral output system. More...
#include <output.h>


Public Member Functions | |
| OutputStatement () | |
| Constructor used to show number of active digits. More... | |
| OutputStatement (unsigned int base) | |
| Constructor used to set number of active digits. More... | |
| ~OutputStatement () | |
| char * | Execute () |
Public Member Functions inherited from StatementNode | |
| StatementNode () | |
| StatementNode (const char *text) | |
| virtual | ~StatementNode () |
| NodeType | GetNodeType () |
| virtual SyntaxNode * | GetNext () |
| virtual char * | GetTextCode () |
| void | Attach (SyntaxNode *node) |
| void | Detach (SyntaxNode *node) |
| void | Replace (SyntaxNode *n, SyntaxNode *x) |
Public Member Functions inherited from SyntaxNode | |
| SyntaxNode () | |
| virtual | ~SyntaxNode () |
| void | SetFirstNode () |
| bool | GetFirstNode () const |
| SyntaxNode * | GetParent () const |
| void | SetParent (SyntaxNode *node) |
| virtual ReductionType | GetReductionType () |
| virtual void | ResetIterator () |
Private Attributes | |
| unsigned int | base |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
| char * | statementText |
Protected Attributes inherited from SyntaxNode | |
| CharBuffer * | output |
| SyntaxNode * | parent |
| SyntaxNode * | iterator |
| bool | leftBottom |
| OutputStatement::OutputStatement | ( | ) |
Constructor used to show number of active digits.
Definition at line 38 of file output.cpp.
References base, and StatementNode::StatementNode().
Referenced by Parser::ParseNumeralStatement().


|
explicit |
Constructor used to set number of active digits.
Definition at line 47 of file output.cpp.
References base, and StatementNode::StatementNode().
Referenced by Parser::ParseNumeralStatement().


| OutputStatement::~OutputStatement | ( | ) |
Definition at line 52 of file output.cpp.
|
virtual |
Implements StatementNode.
Definition at line 56 of file output.cpp.
References CharBuffer::Append(), base, CharBuffer::Empty(), CharBuffer::EnsureSize(), NumeralSystem::GetDigits(), NumeralSystem::GetName(), CharBuffer::GetString(), Program::NewPositionalOutput(), Program::Output, SyntaxNode::output, and StrLen().

|
private |
Definition at line 48 of file output.h.
Referenced by Execute(), and OutputStatement().