IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Adapts that converts internal script commands (delegate of type Script_CommandDelegate) to interpreter commands. More...
Public Member Functions | |
Script_CommandAdapter (LoadableScriptBase script, Script_CommandDelegate scriptCommand) | |
string | InterpreterCommand (ICommandLineApplicationInterpreter interpreter, string commandName, string[] args) |
Method that is used to execute interpreter command. More... | |
Protected Attributes | |
LoadableScriptBase | _script |
Script_CommandDelegate | _scriptCommand |
Properties | |
LoadableScriptBase | Script [get, protected set] |
Script object where the command is installed. More... | |
Script_CommandDelegate | ScriptCommand [get, protected set] |
Script's internal command that is executed when interpreter command is called. More... | |
Private Member Functions | |
Script_CommandAdapter () | |
Adapts that converts internal script commands (delegate of type Script_CommandDelegate) to interpreter commands.
This adapter enables definition of script internal commands in a simple form and installation of them on internal interpreter, which requires command delegate of type .
|
inlineprivate |
|
inline |
|
inline |
Method that is used to execute interpreter command.
This method actually runs the script command enclosed in this adapter.
interpreter | Dummy argument, only to match delegate signature. |
commandName | Name of the command. This will be the same as the 0-th argument. |
args | Command arguments. 0-th arguments will usually be command name. |
References IG.Lib.LoadableScriptBase.Script_GetHelpString().
Referenced by IG.Lib.LoadableScriptBase.Script_AddCommand().
|
protected |
|
protected |
|
getprotected set |
Script object where the command is installed.
|
getprotected set |
Script's internal command that is executed when interpreter command is called.