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

ClassMapManager is the manager for QoS class maps. More...

Public Member Functions

void deleteClassMap (string)
 Removes the specified class map. More...
 
bool classMapExist (string)
 Returns true if the specified class map exists, otherwise false. More...
 
short getClassMapCount ()
 Returns the number of class maps. More...
 
ClassMap getClassMapAt (int)
 Returns the ClassMap object at the specified index. More...
 
ClassMap getClassMap (string)
 Returns the ClassMap object with the specified class map name. More...
 
bool hasCircularReference (string, string)
 Returns true if the two specified class maps are the same, otherwise false. More...
 
void rearrangeMaps (string, string)
 Rearranges the specified class maps such that map1 precedes map2. More...
 

Detailed Description

ClassMapManager is the manager for QoS class maps.

Member Function Documentation

◆ classMapExist()

bool ClassMapManager::classMapExist ( string  )

Returns true if the specified class map exists, otherwise false.

Parameters
name,thename of the class map of interest.
Returns
bool, true if the specified class map exists, otherwise false.

◆ deleteClassMap()

void ClassMapManager::deleteClassMap ( string  )

Removes the specified class map.

Parameters
name,thename of the class map of interest.
string,theclass map name.

◆ getClassMap()

ClassMap ClassMapManager::getClassMap ( string  )

Returns the ClassMap object with the specified class map name.

Parameters
mapname,thename of the class map of interest.
Returns
ClassMap, the ClassMap object with the associated class map name.

◆ getClassMapAt()

ClassMap ClassMapManager::getClassMapAt ( int  )

Returns the ClassMap object at the specified index.

Parameters
mapname,theindex of the class map of interest.
Returns
ClassMap, the ClassMap object at the specified index.

◆ getClassMapCount()

short ClassMapManager::getClassMapCount ( )

Returns the number of class maps.

Returns
short, the number of class maps.

◆ hasCircularReference()

bool ClassMapManager::hasCircularReference ( string  ,
string   
)

Returns true if the two specified class maps are the same, otherwise false.

Parameters
map1,thename of the first class map.
map2,thename of the second class map.
Returns
bool, true if the two specified class maps are the same, otherwise false.

◆ rearrangeMaps()

void ClassMapManager::rearrangeMaps ( string  ,
string   
)

Rearranges the specified class maps such that map1 precedes map2.

Parameters
map1,thename of the first class map.
map2,thename of the second class map.

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