RTP Trace System
1.0
|
Traffic Class Values. More...
#include <trafficclassvalues.h>
Static Public Member Functions | |
static card8 | getTrafficClassForIndex (const cardinal index) |
static const card16 | getTrafficClassForName (const char *name) |
static const char * | getNameForTrafficClass (const card8 trafficClass) |
static const char * | getNameForIndex (const cardinal index) |
static cardinal | getIndexForTrafficClass (const card8 trafficClass) |
Static Public Attributes | |
static const cardinal | MaxValues = 16 |
Static Private Attributes | |
static const card8 | TCValues [MaxValues] |
static const char * | TCNames [TrafficClassValues::MaxValues] |
Traffic Class Values.
This class contains a set of values for the traffic class/TOS byte of IP packets. This class contains only static methods and attributes.
cardinal Coral::TrafficClassValues::getIndexForTrafficClass | ( | const card8 | trafficClass | ) | [static] |
Get index for given traffic class.
trafficClass | Traffic class. |
static const char* Coral::TrafficClassValues::getNameForIndex | ( | const cardinal | index | ) | [inline, static] |
Get name for index entry.
index | Index. |
const char * Coral::TrafficClassValues::getNameForTrafficClass | ( | const card8 | trafficClass | ) | [static] |
Get name for given traffic class.
trafficClass | Traffic class. |
static card8 Coral::TrafficClassValues::getTrafficClassForIndex | ( | const cardinal | index | ) | [inline, static] |
Get traffic class of given index.
index | Index. |
const card16 Coral::TrafficClassValues::getTrafficClassForName | ( | const char * | name | ) | [static] |
Get traffic class for name.
name | Name. |
const cardinal Coral::TrafficClassValues::MaxValues = 16 [static] |
Number of values.
const char * Coral::TrafficClassValues::TCNames [static, private] |
{ "EF", "AF11","AF12","AF13", "AF21","AF22","AF23", "AF31","AF32","AF33", "AF41","AF42","AF43", "TD1", "TD2", "BE" }
const card8 Coral::TrafficClassValues::TCValues [static, private] |
{ 46,10,12,14,18,20,22,26,28,30,34,36,38,40,42,0 }