OPAL  Version 3.14.3
OpalBandwidth Class Reference

#include <mediafmt.h>

Public Types

enum  Direction { Rx = 1, Tx, RxTx, TxRx = RxTx }
 
typedef unsigned int_type
 

Public Member Functions

__inline OpalBandwidth (int_type bps=0)
 
__inline OpalBandwidthoperator= (int_type bps)
 
__inline operator int_type () const
 
 OpalBandwidth (const PString &str)
 
__inline OpalBandwidth operator+ (const OpalBandwidth &bw) const
 
__inline OpalBandwidth operator- (const OpalBandwidth &bw) const
 
__inline OpalBandwidthoperator+= (const OpalBandwidth &bw)
 
__inline OpalBandwidthoperator-= (const OpalBandwidth &bw)
 
__inline OpalBandwidthoperator&= (const OpalBandwidth &bw)
 
 OpalBandwidth (const H225_BandWidth &bw)
 
OpalBandwidthoperator= (const H225_BandWidth &bw)
 
void SetH225 (H225_BandWidth &bw) const
 
void SetH245 (PASN_Integer &bitRate) const
 
void FromH245 (const PASN_Integer &bitRate)
 
unsigned kbps () const
 

Static Public Member Functions

static OpalBandwidth Max ()
 

Protected Attributes

int_type m_bps
 

Friends

std::ostream & operator<< (std::ostream &strm, OpalBandwidth::Direction dir)
 
std::ostream & operator<< (std::ostream &strm, const OpalBandwidth &bw)
 
std::istream & operator>> (std::istream &strm, OpalBandwidth &bw)
 

Detailed Description

Type for bandwidth (bitrate) specification. Currently 32 bit unsigned, but could be set to 64 bit if we ever need more than 4Gb/s

Member Typedef Documentation

typedef unsigned OpalBandwidth::int_type

Member Enumeration Documentation

Enumerator
Rx 
Tx 
RxTx 
TxRx 

Constructor & Destructor Documentation

__inline OpalBandwidth::OpalBandwidth ( int_type  bps = 0)
inline

Referenced by Max(), operator+(), and operator-().

OpalBandwidth::OpalBandwidth ( const PString &  str)
OpalBandwidth::OpalBandwidth ( const H225_BandWidth &  bw)

Member Function Documentation

void OpalBandwidth::FromH245 ( const PASN_Integer &  bitRate)
unsigned OpalBandwidth::kbps ( ) const
inline

References m_bps.

static OpalBandwidth OpalBandwidth::Max ( )
inlinestatic

References OpalBandwidth().

__inline OpalBandwidth::operator int_type ( ) const
inline

References m_bps.

__inline OpalBandwidth& OpalBandwidth::operator&= ( const OpalBandwidth bw)
inline

References m_bps.

__inline OpalBandwidth OpalBandwidth::operator+ ( const OpalBandwidth bw) const
inline

References m_bps, and OpalBandwidth().

__inline OpalBandwidth& OpalBandwidth::operator+= ( const OpalBandwidth bw)
inline

References m_bps.

__inline OpalBandwidth OpalBandwidth::operator- ( const OpalBandwidth bw) const
inline

References m_bps, and OpalBandwidth().

__inline OpalBandwidth& OpalBandwidth::operator-= ( const OpalBandwidth bw)
inline

References m_bps.

__inline OpalBandwidth& OpalBandwidth::operator= ( int_type  bps)
inline

References m_bps.

OpalBandwidth& OpalBandwidth::operator= ( const H225_BandWidth &  bw)
void OpalBandwidth::SetH225 ( H225_BandWidth &  bw) const
void OpalBandwidth::SetH245 ( PASN_Integer &  bitRate) const

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  strm,
OpalBandwidth::Direction  dir 
)
friend
std::ostream& operator<< ( std::ostream &  strm,
const OpalBandwidth bw 
)
friend
std::istream& operator>> ( std::istream &  strm,
OpalBandwidth bw 
)
friend

Field Documentation


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