INET Framework for OMNeT++/OMNEST
|
The class SDESItem is used for storing a source description item (type of description, description string) for an RTP end system. More...
#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 } |
This enumeration holds the types of source description items as defined in the RFC. More... | |
Public Member Functions | |
SDESItem () | |
Default constructor. More... | |
SDESItem (SDES_ITEM_TYPE type, const char *content) | |
Constructor which sets the entry. More... | |
SDESItem (const SDESItem &sdesItem) | |
Copy constructor. More... | |
virtual | ~SDESItem () |
Destructor. More... | |
SDESItem & | operator= (const SDESItem &sdesItem) |
Assignment operator. More... | |
virtual SDESItem * | dup () const override |
Duplicates theis SDESItem by calling the copy constructor. More... | |
virtual std::string | info () const override |
Writes a short info about this SDESItem into the given string. More... | |
virtual void | dump (std::ostream &os) const |
Writes an info about this SDESItem into the give output stream. More... | |
virtual SDES_ITEM_TYPE | getType () const |
Returns the type of this sdes item. More... | |
virtual const char * | getContent () const |
Returns the stored sdes string. More... | |
virtual int | getLength () const |
This method returns the size of this SDESItem in bytes as it would be in the real world. More... | |
Protected Attributes | |
SDES_ITEM_TYPE | _type |
The type of this SDESItem. More... | |
int | _length |
The length of this SDESItem. More... | |
std::string | _content |
The sdes string. More... | |
Private Member Functions | |
void | copy (const SDESItem &other) |
void | clean () |
The class SDESItem is used for storing a source description item (type of description, description string) for an RTP end system.
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.
Enumerator | |
---|---|
SDES_UNDEF | |
SDES_CNAME | |
SDES_NAME | |
SDES_EMAIL | |
SDES_PHONE | |
SDES_LOC | |
SDES_TOOL | |
SDES_NOTE | |
SDES_PRIV |
inet::rtp::SDESItem::SDESItem | ( | ) |
inet::rtp::SDESItem::SDESItem | ( | SDES_ITEM_TYPE | type, |
const char * | content | ||
) |
Constructor which sets the entry.
inet::rtp::SDESItem::SDESItem | ( | const SDESItem & | sdesItem | ) |
Copy constructor.
|
virtual |
Destructor.
|
inlineprivate |
Referenced by operator=(), and ~SDESItem().
|
private |
Referenced by operator=(), and SDESItem().
|
virtual |
Writes an info about this SDESItem into the give output stream.
|
overridevirtual |
Duplicates theis SDESItem by calling the copy constructor.
|
virtual |
Returns the stored sdes string.
|
virtual |
This method returns the size of this SDESItem in bytes as it would be in the real world.
Referenced by inet::rtp::SDESChunk::addSDESItem().
|
virtual |
|
overridevirtual |
Writes a short info about this SDESItem into the given string.
Assignment operator.
|
protected |
The sdes string.
Referenced by copy(), dump(), getContent(), info(), and SDESItem().
|
protected |
The length of this SDESItem.
Referenced by copy(), getLength(), and SDESItem().
|
protected |
The type of this SDESItem.
Referenced by copy(), dump(), getType(), and SDESItem().