|
HyperspaceExplorer 0.7.1
|
Base class for all possible statements in a script. More...
#include <Statement.h>


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::string & | arg () |
| const Parser * | parser () |
Private Attributes | |
| std::string | _arg |
| Argument(s) following the statement. | |
| const Parser * | _parser |
| The current context. | |
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
| Script::Statement::Statement | ( | const Parser * | parser, |
| const std::string & | arg | ||
| ) | [inline] |
| const std::string& Script::Statement::arg | ( | ) | [inline, protected] |
References _arg.
Referenced by Script::ImgPrefixStmt::execute(), Script::ImgDirStmt::execute(), Script::CoordsStmt::execute(), Script::RotDeltaStmt::execute(), Script::RotStmt::execute(), Script::ObjectStmt::execute(), execute(), Script::FramesStmt::FramesStmt(), Script::LoopStmt::LoopStmt(), Script::SizeStmt::SizeStmt(), Script::SleepStmt::SleepStmt(), and Script::XformStmt::XformStmt().

| const Parser* Script::Statement::parser | ( | ) | [inline, protected] |
References _parser.
Referenced by Script::ImgPrefixStmt::execute(), Script::ImgDirStmt::execute(), Script::AnimateStmt::execute(), Script::Fog4DStmt::execute(), Script::FogStmt::execute(), Script::SolidStmt::execute(), Script::WireStmt::execute(), Script::TransStmt::execute(), Script::LightStmt::execute(), Script::ShadingStmt::execute(), Script::ColorStmt::execute(), Script::LoopStmt::execute(), Script::FramesStmt::execute(), Script::DeltaStmt::execute(), Script::XformStmt::execute(), Script::ObjectStmt::execute(), and Script::SizeStmt::execute().

1.7.4
-
Hosted by