#include <sdes.h>
Public Types | |
enum | SDES_ITEM_TYPE { SDES_UNDEF = 0, SDES_CNAME = 1, SDES_NAME = 2, SDES_EMAIL = 3, SDES_PHONE = 4, SDES_LOC = 5, SDES_TOOL = 6, SDES_NOTE = 7, SDES_PRIV = 8 } |
Public Member Functions | |
SDESItem () | |
SDESItem (SDES_ITEM_TYPE type, const char *content) | |
SDESItem (const SDESItem &sdesItem) | |
virtual | ~SDESItem () |
SDESItem & | operator= (const SDESItem &sdesItem) |
virtual SDESItem * | dup () const |
virtual std::string | info () |
virtual void | dump (std::ostream &os) |
virtual SDES_ITEM_TYPE | getType () |
virtual const char * | getContent () |
virtual int | getLength () |
Protected Attributes | |
SDES_ITEM_TYPE | _type |
int | _length |
const char * | _content |
The class SDESItem is used for storing a source description item (type of description, description string) for an rtp end system.
Definition at line 31 of file sdes.h.
This enumeration holds the types of source description items as defined in the rfc. In this implementation only SDES_UNDEF and SDES_CNAME are usable.
SDES_UNDEF | |
SDES_CNAME | |
SDES_NAME | |
SDES_EMAIL | |
SDES_PHONE | |
SDES_LOC | |
SDES_TOOL | |
SDES_NOTE | |
SDES_PRIV |
Definition at line 40 of file sdes.h.
{ SDES_UNDEF = 0, SDES_CNAME = 1, SDES_NAME = 2, SDES_EMAIL = 3, SDES_PHONE = 4, SDES_LOC = 5, SDES_TOOL = 6, SDES_NOTE = 7, SDES_PRIV = 8 };
SDESItem::SDESItem | ( | ) |
SDESItem::SDESItem | ( | SDES_ITEM_TYPE | type, | |
const char * | content | |||
) |
SDESItem::SDESItem | ( | const SDESItem & | sdesItem | ) |
void SDESItem::dump | ( | std::ostream & | os | ) | [virtual] |
SDESItem * SDESItem::dup | ( | ) | const [virtual] |
const char * SDESItem::getContent | ( | ) | [virtual] |
int SDESItem::getLength | ( | ) | [virtual] |
This method returns the size of this SDESItem in bytes as it would be in the real world.
Definition at line 93 of file sdes.cc.
Referenced by SDESChunk::addSDESItem().
{ // bytes needed for this sdes item are // one byte for type, one for length // and the string return _length + 2; };
SDESItem::SDES_ITEM_TYPE SDESItem::getType | ( | ) | [virtual] |
Returns the type of this sdes item.
Definition at line 83 of file sdes.cc.
Referenced by SDESChunk::addSDESItem().
{ return _type; };
std::string SDESItem::info | ( | ) | [virtual] |
const char* SDESItem::_content [protected] |
The sdes string.
Definition at line 123 of file sdes.h.
Referenced by dump(), getContent(), info(), operator=(), and SDESItem().
int SDESItem::_length [protected] |
The length of this SDESItem.
Definition at line 118 of file sdes.h.
Referenced by getLength(), operator=(), and SDESItem().
SDES_ITEM_TYPE SDESItem::_type [protected] |
The type of this SDESItem.
Definition at line 113 of file sdes.h.
Referenced by dump(), getType(), operator=(), and SDESItem().