The class SDESChunk is used for storing SDESItem objects for one rtp end system.
More...
#include <sdes.h>
The class SDESChunk is used for storing SDESItem objects for one rtp end system.
inet::rtp::SDESChunk::SDESChunk |
( |
const char * |
name = nullptr , |
|
|
uint32 |
ssrc = 0 |
|
) |
| |
Default constructor.
Referenced by dup().
uint32 _ssrc
The ssrc identifier this SDESChunk is for.
Definition: sdes.h:198
int _length
The length in bytes of this SDESChunk.
Definition: sdes.h:203
inet::rtp::SDESChunk::SDESChunk |
( |
const SDESChunk & |
sdesChunk | ) |
|
Copy constructor.
void copy(const SDESChunk &other)
Definition: sdes.cc:141
inet::rtp::SDESChunk::~SDESChunk |
( |
| ) |
|
|
virtual |
void inet::rtp::SDESChunk::addSDESItem |
( |
SDESItem * |
item | ) |
|
|
virtual |
Adds an SDESItem to this SDESChunk.
If there is already an SDESItem of the same type in this SDESChunk it is replaced by the new one.
Referenced by inet::rtp::RTPParticipantInfo::addSDESItem().
172 for (
int i = 0; i < size(); i++) {
174 SDESItem *compareItem = (SDESItem *)(
get(i));
175 if (compareItem->getType() == sdesItem->getType()) {
185 _length += sdesItem->getLength();
int _length
The length in bytes of this SDESChunk.
Definition: sdes.h:203
void inet::rtp::SDESChunk::copy |
( |
const SDESChunk & |
other | ) |
|
|
inlineprivate |
Referenced by operator=(), and SDESChunk().
143 _ssrc = sdesChunk._ssrc;
uint32 _ssrc
The ssrc identifier this SDESChunk is for.
Definition: sdes.h:198
int _length
The length in bytes of this SDESChunk.
Definition: sdes.h:203
void inet::rtp::SDESChunk::dump |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Writes a longer info about this SDESChunk into the given stream.
161 os <<
"SDESChunk:" << endl;
162 os <<
" ssrc = " <<
_ssrc << endl;
163 for (
int i = 0; i < size(); i++) {
165 ((
const SDESItem *)(
get(i)))->dump(os);
uint32 _ssrc
The ssrc identifier this SDESChunk is for.
Definition: sdes.h:198
SDESChunk * inet::rtp::SDESChunk::dup |
( |
| ) |
const |
|
overridevirtual |
Duplicates this SDESChunk by calling the copy constructor.
SDESChunk(const char *name=nullptr, uint32 ssrc=0)
Default constructor.
Definition: sdes.cc:117
int inet::rtp::SDESChunk::getLength |
( |
| ) |
const |
|
virtual |
uint32 inet::rtp::SDESChunk::getSsrc |
( |
| ) |
const |
|
virtual |
std::string inet::rtp::SDESChunk::info |
( |
| ) |
const |
|
overridevirtual |
Writes a short info about this SDESChunk into the given string.
154 std::stringstream out;
155 out <<
"SDESChunk.ssrc=" <<
_ssrc <<
" items=" << size();
uint32 _ssrc
The ssrc identifier this SDESChunk is for.
Definition: sdes.h:198
Operator equal.
134 if (
this == &sdesChunk)
136 cArray::operator=(sdesChunk);
void copy(const SDESChunk &other)
Definition: sdes.cc:141
void inet::rtp::SDESChunk::setSsrc |
( |
uint32 |
ssrc | ) |
|
|
virtual |
int inet::rtp::SDESChunk::_length |
|
protected |
uint32 inet::rtp::SDESChunk::_ssrc |
|
protected |
The documentation for this class was generated from the following files: