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

ClassMap handles the class maps for QoS. More...

Public Member Functions

string getMapName ()
 Returns the class map name. More...
 
void setDescription (string)
 Sets the class map description. More...
 
string getDescription ()
 Returns the class map description. More...
 
string getMatchTypeString ()
 Returns the class map match types. More...
 
QoS::EClassMapMatchType getMatchType ()
 Returns the class map match type. More...
 
void setMatchType (QoS::EClassMapMatchType)
 Sets the class map match type. More...
 
string toReverseString ()
 Returns the class map string. More...
 
string toString ()
 Returns the class map reverse string. More...
 
QoS::eMapType getMapType ()
 Returns the class map type. More...
 
void setMapType (QoS::eMapType)
 Sets the class map type. More...
 
int getStatementCnt ()
 Returns the number of statements in this class map. More...
 
bool isClassDefault ()
 Returns true if this class map is class-default, otherwise false. More...
 

Detailed Description

ClassMap handles the class maps for QoS.

Member Function Documentation

◆ getDescription()

string ClassMap::getDescription ( )

Returns the class map description.

Returns
string, the class map description.

◆ getMapName()

string ClassMap::getMapName ( )

Returns the class map name.

Returns
string, the class map name.

◆ getMapType()

QoS::eMapType ClassMap::getMapType ( )

Returns the class map type.

Returns
enum<QoS::eMapType>, the map type. Map types: type_default = 0, type_control = 1, type_inspect = 2, type_logging = 3

◆ getMatchType()

QoS::EClassMapMatchType ClassMap::getMatchType ( )

Returns the class map match type.

Returns
enum<QoS::EClassMapMatchType>, the class map match type. Match types: eMatchAny = 0, eMatchAll = 1

◆ getMatchTypeString()

string ClassMap::getMatchTypeString ( )

Returns the class map match types.

Returns
string, the class map match types.

◆ getStatementCnt()

int ClassMap::getStatementCnt ( )

Returns the number of statements in this class map.

Returns
int, the number of statements in this class map.

◆ isClassDefault()

bool ClassMap::isClassDefault ( )

Returns true if this class map is class-default, otherwise false.

Returns
bool, true if this class map is class-default, otherwise false.

◆ setDescription()

void ClassMap::setDescription ( string  )

Sets the class map description.

Parameters
description,theclass map description.

◆ setMapType()

void ClassMap::setMapType ( QoS::eMapType  )

Sets the class map type.

Parameters
mapType,themap type. Map types: type_default = 0, type_control = 1, type_inspect = 2, type_logging = 3

◆ setMatchType()

void ClassMap::setMatchType ( QoS::EClassMapMatchType  )

Sets the class map match type.

Parameters
enum<QoS::EClassMapMatchType>,theclass map match type. Match types: eMatchAny = 0, eMatchAll = 1

◆ toReverseString()

string ClassMap::toReverseString ( )

Returns the class map string.

Parameters
string,theclass map string.

◆ toString()

string ClassMap::toString ( )

Returns the class map reverse string.

Parameters
string,theclass map reverse string.

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