EMEAScriptEngine gives access to Packet Tracer's Script Engine.
More...
EMEAScriptEngine gives access to Packet Tracer's Script Engine.
◆ canEvaluate()
| bool EMEAScriptEngine::canEvaluate |
( |
QString |
| ) |
|
Returns true if the specified script can be evaluated, otherwise false.
- Parameters
-
| program,the | code of the script of interest. |
- Returns
- bool, true if the specified script can be evaluated, otherwise false.
◆ createScriptValueBool()
| ScriptValue EMEAScriptEngine::createScriptValueBool |
( |
bool |
| ) |
|
◆ createScriptValueInt()
| ScriptValue EMEAScriptEngine::createScriptValueInt |
( |
int |
| ) |
|
◆ createScriptValueQString()
| ScriptValue EMEAScriptEngine::createScriptValueQString |
( |
QString |
| ) |
|
◆ evaluate()
| ScriptValue EMEAScriptEngine::evaluate |
( |
QString |
, |
|
|
QString |
|
|
) |
| |
Evaluates the specified script.
- Parameters
-
| program,the | code of the script of interest. |
| id,the | name of the script of interest. |
- Returns
- ScriptValue, the ScriptValue object of the specified script.
◆ evaluateFile()
Evaluates the specified script.
- Parameters
-
| filepath,the | filepath of the script of interest. |
- Returns
- ScriptValue, the ScriptValue object of the specified script.
◆ globalObject()
The documentation for this class was generated from the following file: