|
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 | SdesItemType { 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 (SdesItemType 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 | str () 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 SdesItemType | getType () const |
| Returns the type of this sdes item. More... | |
| virtual const char * | getContent () const |
| Returns the stored sdes string. More... | |
| virtual int | getLengthField () const |
| This method returns the length of Value part. More... | |
| virtual int | getSdesTotalLength () const |
| This method returns the size of this SdesItem in bytes as it would be in the real world. More... | |
Protected Attributes | |
| SdesItemType | _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.
| inet::rtp::SdesItem::SdesItem | ( | ) |
Default constructor.
Referenced by dup().
| inet::rtp::SdesItem::SdesItem | ( | SdesItemType | 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 |
|
overridevirtual |
Duplicates theis SdesItem by calling the copy constructor.
Referenced by inet::rtp::RtpParticipantInfo::processSDESChunk().
|
virtual |
Returns the stored sdes string.
|
virtual |
This method returns the length of Value part.
|
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 |
Returns the type of this sdes item.
Referenced by inet::rtp::SdesChunk::addSDESItem().
|
overridevirtual |
|
protected |
The sdes string.
Referenced by copy(), dump(), getContent(), SdesItem(), and str().
|
protected |
The length of this SdesItem.
Referenced by copy(), getLengthField(), getSdesTotalLength(), and SdesItem().
|
protected |
The type of this SdesItem.
Referenced by copy(), dump(), getType(), and SdesItem().