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
VariableManager Class Reference

VariableManager manages the variables and pools in an activity. More...

Public Member Functions

int getVariableSize ()
 Returns the total number of variables. More...
 
Variable getVariable (int)
 Returns the variable at the specified index. More...
 
Variable getVariableByName (QString)
 Returns the variable with the specified name. More...
 
int getNumberPoolSize ()
 Returns the number of variables in the number pool. More...
 
int getStringPoolSize ()
 Returns the number of variables in the string pool. More...
 
int getIpPoolSize ()
 Returns the number of variables in the IP pool. More...
 
Pool getNumberPoolAt (int)
 Returns the number pool at the specified index. More...
 
Pool getStringPoolAt (int)
 Returns the string pool at the specified index. More...
 
Pool getIpPoolAt (int)
 Returns the IP pool at the specified index. More...
 

Detailed Description

VariableManager manages the variables and pools in an activity.

Member Function Documentation

◆ getIpPoolAt()

Pool VariableManager::getIpPoolAt ( int  )

Returns the IP pool at the specified index.

Parameters
i,theindex of the IP pool of interest.
Returns
Pool, the Pool object at the specified index.

◆ getIpPoolSize()

int VariableManager::getIpPoolSize ( )

Returns the number of variables in the IP pool.

Returns
int, the number of variables in the IP pool.

◆ getNumberPoolAt()

Pool VariableManager::getNumberPoolAt ( int  )

Returns the number pool at the specified index.

Parameters
i,theindex of the number pool of interest.
Returns
Pool, the Pool object at the specified index.

◆ getNumberPoolSize()

int VariableManager::getNumberPoolSize ( )

Returns the number of variables in the number pool.

Returns
int, the number of variables in the number pool.

◆ getStringPoolAt()

Pool VariableManager::getStringPoolAt ( int  )

Returns the string pool at the specified index.

Parameters
i,theindex of the string pool of interest.
Returns
Pool, the Pool object at the specified index.

◆ getStringPoolSize()

int VariableManager::getStringPoolSize ( )

Returns the number of variables in the string pool.

Returns
int, the number of variables in the string pool.

◆ getVariable()

Variable VariableManager::getVariable ( int  )

Returns the variable at the specified index.

Parameters
i,theindex of the variable of interest.
Returns
Variable, the Variable object at the specified index.

◆ getVariableByName()

Variable VariableManager::getVariableByName ( QString  )

Returns the variable with the specified name.

Parameters
name,thename of the variable of interest.
Returns
Variable, the Variable object with the specified name.

◆ getVariableSize()

int VariableManager::getVariableSize ( )

Returns the total number of variables.

Returns
int, the total number of variables.

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