amath
1.8.5
Simple command line calculator
|
#include <save.h>
Public Member Functions | |
SaveStatement (const char *file) | |
~SaveStatement () | |
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 | |
char * | file |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
|
explicit |
Definition at line 35 of file save.cpp.
References AllocAndCopy(), file, and StatementNode::StatementNode().
Referenced by Parser::ParseFileStatement().
SaveStatement::~SaveStatement | ( | ) |
|
virtual |
Implements StatementNode.
Definition at line 46 of file save.cpp.
References CharBuffer::Append(), CharBuffer::CharBuffer(), CharBuffer::Empty(), file, Program::Filesystem, Program::Functions, CharBuffer::GetString(), FunctionList::ListDefinitions(), VariableList::ListDefinitions(), FilesystemBase::SaveTextFile(), StrLen(), and Program::Variables.
|
private |
Definition at line 43 of file save.h.
Referenced by Execute(), SaveStatement(), and ~SaveStatement().