amath  1.8.5
Simple command line calculator
LicenseStatement Class Reference

Show license text. More...

#include <license.h>

Inheritance diagram for LicenseStatement:
Collaboration diagram for LicenseStatement:

Public Member Functions

 LicenseStatement ()
 
 ~LicenseStatement ()
 
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 license text.

Definition at line 39 of file license.h.

Constructor & Destructor Documentation

◆ LicenseStatement()

LicenseStatement::LicenseStatement ( )

Definition at line 33 of file license.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:

◆ ~LicenseStatement()

LicenseStatement::~LicenseStatement ( )

Definition at line 38 of file license.cpp.

39 {
40 }

Member Function Documentation

◆ Execute()

char * LicenseStatement::Execute ( )
virtual

Implements StatementNode.

Definition at line 42 of file license.cpp.

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

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

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