HyperspaceExplorer 0.7.1
Public Member Functions | Protected Member Functions | Private Attributes
Script::Statement Class Reference

Base class for all possible statements in a script. More...

#include <Statement.h>

Inheritance diagram for Script::Statement:
Inheritance graph
[legend]
Collaboration diagram for Script::Statement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Statement (const Parser *parser, const std::string &arg)
virtual bool execute ()
 Executes the statement in the current context.

Protected Member Functions

const std::stringarg ()
const Parserparser ()

Private Attributes

std::string _arg
 Argument(s) following the statement.
const Parser_parser
 The current context.

Detailed Description

Base class for all possible statements in a script.

This class represents the class AbstractExpression in the class diagram for the Interpreter pattern as implemented in the GOF book, p. 245


Constructor & Destructor Documentation

Script::Statement::Statement ( const Parser parser,
const std::string arg 
) [inline]
Parameters:
parserThe context in which the Statement is executed
argThe argument supplied to the Statement

Member Function Documentation

const std::string& Script::Statement::arg ( ) [inline, protected]
const Parser* Script::Statement::parser ( ) [inline, protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo