Yate
JGRtpMedia Class Reference

A Jingle data payload. More...

#include <yatejingle.h>

Inheritance diagram for JGRtpMedia:
GenObject

Public Member Functions

 JGRtpMedia (const char *id, const char *name, const char *clockrate, const char *synonym, const char *channels=0, const char *pTime=0, const char *maxPTime=0, const char *bitRate=0)
 
 JGRtpMedia (XmlElement *xml)
 
 JGRtpMedia (const JGRtpMedia &src)
 
void set (const char *id, const char *name, const char *clockrate, const char *synonym=0, const char *channels=0, const char *pTime=0, const char *maxPTime=0, const char *bitRate=0)
 
virtual const StringtoString () const
 
XmlElementtoXml () const
 
void fromXml (XmlElement *xml)
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtraceId () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Public Attributes

String m_id
 
String m_name
 
String m_clockrate
 
String m_synonym
 
String m_channels
 
String m_pTime
 
String m_maxPTime
 
String m_bitRate
 
NamedList m_params
 

Additional Inherited Members

- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Detailed Description

A Jingle data payload.

This class holds a Jingle data payload description

Constructor & Destructor Documentation

◆ JGRtpMedia() [1/3]

JGRtpMedia ( const char * id,
const char * name,
const char * clockrate,
const char * synonym,
const char * channels = 0,
const char * pTime = 0,
const char * maxPTime = 0,
const char * bitRate = 0 )
inline

Constructor. Fill this object from the given attributes

Parameters
idThe 'id' attribute
nameThe 'name' attribute
clockrateThe 'clockrate' attribute
synonymApplication synonym for this payload
channelsOptional 'channels' attribute (the number of channels)
pTimeOptional "ptime" attribute (packet time)
maxPTimeOptional "maxptime" attribute (maximum packet time)
bitRateOptional "bitrate" attribute

References m_params, and set().

Referenced by JGRtpMedia().

◆ JGRtpMedia() [2/3]

JGRtpMedia ( XmlElement * xml)
inline

Constructor. Fill this object from an XML element

Parameters
xmlThe element to fill from

References fromXml(), and m_params.

◆ JGRtpMedia() [3/3]

JGRtpMedia ( const JGRtpMedia & src)
inline

Member Function Documentation

◆ fromXml()

void fromXml ( XmlElement * xml)

Fill this object from a given element

Parameters
xmlThe element

Referenced by JGRtpMedia().

◆ set()

void set ( const char * id,
const char * name,
const char * clockrate,
const char * synonym = 0,
const char * channels = 0,
const char * pTime = 0,
const char * maxPTime = 0,
const char * bitRate = 0 )
inline

Set the data

Parameters
idThe 'id' attribute
nameThe 'name' attribute
clockrateThe 'clockrate' attribute
synonymApplication synonym for this payload
channelsOptional 'channels' attribute (the number of channels)
pTimeOptional "ptime" attribute (packet time)
maxPTimeOptional "maxptime" attribute (maximum packet time)
bitRateOptional "bitrate" attribute

References m_bitRate, m_channels, m_clockrate, m_id, m_maxPTime, m_name, m_params, m_pTime, and m_synonym.

Referenced by JGRtpMedia(), and JGRtpMedia().

◆ toString()

virtual const String & toString ( ) const
inlinevirtual

Get the string repreasentation (id) of this payload

Returns
The string repreasentation (id) of this payload

Reimplemented from GenObject.

References m_id.

◆ toXml()

XmlElement * toXml ( ) const

Create a 'payload-type' element from this object

Returns
Valid XmlElement pointer

Member Data Documentation

◆ m_bitRate

String m_bitRate

Data bit rate

Referenced by JGRtpMedia(), and set().

◆ m_channels

String m_channels

The number of channels

Referenced by JGRtpMedia(), and set().

◆ m_clockrate

String m_clockrate

The clockrate of this payload

Referenced by JGRtpMedia(), and set().

◆ m_id

String m_id

The numeric id of this payload

Referenced by JGRtpMedia(), set(), and toString().

◆ m_maxPTime

String m_maxPTime

Maximum packet time

Referenced by JGRtpMedia(), and set().

◆ m_name

String m_name

The Jingle name of this payload

Referenced by JGRtpMedia(), and set().

◆ m_params

NamedList m_params

List of optional parameters

Referenced by JGRtpMedia(), JGRtpMedia(), JGRtpMedia(), and set().

◆ m_pTime

String m_pTime

Packet time

Referenced by JGRtpMedia(), and set().

◆ m_synonym

String m_synonym

A synonym of this payload's name

Referenced by JGRtpMedia(), and set().


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