RTP Trace System  1.0
Coral::TrafficClassValues Class Reference

Traffic Class Values. More...

#include <trafficclassvalues.h>

List of all members.

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]

Detailed Description

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.

Author:
Thomas Dreibholz
Version:
1.0

Member Function Documentation

Get index for given traffic class.

Parameters:
trafficClassTraffic class.
Returns:
Index.
static const char* Coral::TrafficClassValues::getNameForIndex ( const cardinal  index) [inline, static]

Get name for index entry.

Parameters:
indexIndex.
Returns:
Name.
const char * Coral::TrafficClassValues::getNameForTrafficClass ( const card8  trafficClass) [static]

Get name for given traffic class.

Parameters:
trafficClassTraffic class.
Returns:
Name.
static card8 Coral::TrafficClassValues::getTrafficClassForIndex ( const cardinal  index) [inline, static]

Get traffic class of given index.

Parameters:
indexIndex.
Returns:
Traffic class.
const card16 Coral::TrafficClassValues::getTrafficClassForName ( const char *  name) [static]

Get traffic class for name.

Parameters:
nameName.
Returns:
Traffic class or 0xffff, if name in unknown.

Member Data Documentation

Number of values.

const char * Coral::TrafficClassValues::TCNames [static, private]
Initial value:
 {
   "EF",
   "AF11","AF12","AF13",
   "AF21","AF22","AF23",
   "AF31","AF32","AF33",
   "AF41","AF42","AF43",
   "TD1", "TD2",
   "BE"
}
const card8 Coral::TrafficClassValues::TCValues [static, private]
Initial value:
 {
   46,10,12,14,18,20,22,26,28,30,34,36,38,40,42,0
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines