RTP Audio System  2.0.0
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* TrafficClassValues::getNameForIndex ( const cardinal  index) [inline, static]

Get name for index entry.

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

Get name for given traffic class.

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

Get traffic class of given index.

Parameters:
indexIndex.
Returns:
Traffic class.
const card16 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 * TrafficClassValues::TCNames [static, private]
Initial value:
 {
   "EF",
   "AF11","AF12","AF13",
   "AF21","AF22","AF23",
   "AF31","AF32","AF33",
   "AF41","AF42","AF43",
   "TD1", "TD2",
   "BE"
}
const card8 TrafficClassValues::TCValues [static, private]
Initial value:
 {
   0xb8,
   0x28, 0x30, 0x38,
   0x48, 0x50, 0x58,
   0x68, 0x70, 0x78,
   0x88, 0x90, 0x98,
   0xa0, 0xa8,
   0x00
}

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