Interpreter Class Reference
#include <Interpreter.h>
Description
The interpreter provides a means to execute dynamic runtime behavior through text. This is most conventionally useful via the Console.
Data Structures | |
class | Command |
Functions | |
std::string | RunCommand (const std::string &) |
void | AddCommand (const std::string &cmd, Command *consoleCommand) |
Member Function Documentation
std::string RunCommand | ( | const std::string & | ) |
Runs a console command.
The first token of the command is the name of the command. Any additional tokens are parsed as arguments to the ConsoleCommand. The result is returned.
void AddCommand | ( | const std::string & | cmd, |
Command * | consoleCommand | ||
) |
Sets a new console command.
- Parameters
-
cmd The string that identifies the command. consoleCommand A pointer to a console command.
The documentation for this class was generated from the following file:
- /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Interpreter.h