Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
EMEAScriptEngine Class Reference

EMEAScriptEngine gives access to Packet Tracer's Script Engine. More...

Inheritance diagram for EMEAScriptEngine:
ActivityScriptEngine

Public Member Functions

ScriptValue evaluateFile (QString)
 Evaluates the specified script. More...
 
bool canEvaluate (QString)
 Returns true if the specified script can be evaluated, otherwise false. More...
 
ScriptValue globalObject ()
 Returns the global ScriptValue object. More...
 
ScriptValue evaluate (QString, QString)
 Evaluates the specified script. More...
 
ScriptValue createScriptValueInt (int)
 Creates a ScriptValue object with the specified integer value. More...
 
ScriptValue createScriptValueBool (bool)
 Creates a ScriptValue object with the specified boolean value. More...
 
ScriptValue createScriptValueQString (QString)
 Creates a ScriptValue object with the specified QString value. More...
 

Detailed Description

EMEAScriptEngine gives access to Packet Tracer's Script Engine.

Member Function Documentation

◆ canEvaluate()

bool EMEAScriptEngine::canEvaluate ( QString  )

Returns true if the specified script can be evaluated, otherwise false.

Parameters
program,thecode of the script of interest.
Returns
bool, true if the specified script can be evaluated, otherwise false.

◆ createScriptValueBool()

ScriptValue EMEAScriptEngine::createScriptValueBool ( bool  )

Creates a ScriptValue object with the specified boolean value.

Parameters
value,theboolean value of the ScriptValue object.
Returns
ScriptValue, the ScriptValue object.

◆ createScriptValueInt()

ScriptValue EMEAScriptEngine::createScriptValueInt ( int  )

Creates a ScriptValue object with the specified integer value.

Parameters
value,theinteger value of the ScriptValue object.
Returns
ScriptValue, the ScriptValue object.

◆ createScriptValueQString()

ScriptValue EMEAScriptEngine::createScriptValueQString ( QString  )

Creates a ScriptValue object with the specified QString value.

Parameters
value,theQString value of the ScriptValue object.
Returns
ScriptValue, the ScriptValue object.

◆ evaluate()

ScriptValue EMEAScriptEngine::evaluate ( QString  ,
QString   
)

Evaluates the specified script.

Parameters
program,thecode of the script of interest.
id,thename of the script of interest.
Returns
ScriptValue, the ScriptValue object of the specified script.

◆ evaluateFile()

ScriptValue EMEAScriptEngine::evaluateFile ( QString  )

Evaluates the specified script.

Parameters
filepath,thefilepath of the script of interest.
Returns
ScriptValue, the ScriptValue object of the specified script.

◆ globalObject()

ScriptValue EMEAScriptEngine::globalObject ( )

Returns the global ScriptValue object.

Returns
ScriptValue, the global ScriptValue object.

The documentation for this class was generated from the following file: