amath  1.8.5
Simple command line calculator
VersionStatement Class Reference

Show version string. More...

#include <version.h>

Inheritance diagram for VersionStatement:
Collaboration diagram for VersionStatement:

Public Member Functions

 VersionStatement ()
 
 ~VersionStatement ()
 
char * Execute ()
 
- Public Member Functions inherited from StatementNode
 StatementNode ()
 
 StatementNode (const char *text)
 
virtual ~StatementNode ()
 
NodeType GetNodeType ()
 
virtual SyntaxNodeGetNext ()
 
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
 
SyntaxNodeGetParent () const
 
void SetParent (SyntaxNode *node)
 
virtual ReductionType GetReductionType ()
 
virtual void ResetIterator ()
 

Additional Inherited Members

- Protected Attributes inherited from StatementNode
char * statementText
 
- Protected Attributes inherited from SyntaxNode
CharBufferoutput
 
SyntaxNodeparent
 
SyntaxNodeiterator
 
bool leftBottom
 

Detailed Description

Show version string.

Definition at line 39 of file version.h.

Constructor & Destructor Documentation

◆ VersionStatement()

VersionStatement::VersionStatement ( )

Definition at line 33 of file version.cpp.

References StatementNode::StatementNode().

Referenced by Parser::ParseStatement().

33  :
35 {
36 }
StatementNode()
Definition: node.cpp:34
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~VersionStatement()

VersionStatement::~VersionStatement ( )

Definition at line 38 of file version.cpp.

39 {
40 }

Member Function Documentation

◆ Execute()

char * VersionStatement::Execute ( )
virtual

Implements StatementNode.

Definition at line 42 of file version.cpp.

References Program::Console, ConsoleBase::ShowVersion(), and StatementNode::statementText.

43 {
45  return statementText;
46 }
Master control class.
Definition: program.h:55
char * statementText
Definition: node.h:55
class ConsoleBase * Console
Definition: program.h:72
virtual void ShowVersion()
Definition: console.cpp:163
Here is the call graph for this function:

The documentation for this class was generated from the following files: