#include <RTCPPacket.h>
Inheritance diagram for RTCPSDESPacket:

Public Member Functions | |
| RTCPSDESPacket (const char *name=NULL) | |
| RTCPSDESPacket (const RTCPSDESPacket &rtcpSDESPacket) | |
| virtual | ~RTCPSDESPacket () |
| RTCPSDESPacket & | operator= (const RTCPSDESPacket &rtcpSDESPacket) |
| virtual cObject * | dup () const |
| virtual const char * | className () const |
| virtual std::string | info () |
| virtual void | writeContents (std::ostream &os) const |
| virtual cArray * | sdesChunks () |
| virtual void | addSDESChunk (SDESChunk *sdesChunk) |
Private Attributes | |
| cArray * | _sdesChunks |
|
|
Default constructor. 00298 : RTCPPacket(name) { 00299 _packetType = RTCP_PT_SDES; 00300 _sdesChunks = new cArray("SDESChunks"); 00301 // no addLength() needed, sdes chunks 00302 // directly follow the standard rtcp 00303 // header 00304 };
|
|
|
Copy constructor. 00307 : RTCPPacket() { 00308 setName(rtcpSDESPacket.name()); 00309 operator=(rtcpSDESPacket); 00310 };
|
|
|
Destructor. 00313 {
00314 delete _sdesChunks;
00315 };
|
|
|
Adds an sdes chunk to this rtcp sdes packet.
00356 {
00357 _sdesChunks->add(sdesChunk);
00358 _count++;
00359 // the size of the rtcp packet increases by the
00360 // size of the sdes chunk (including ssrc)
00361 addLength(sdesChunk->length());
00362 };
|
|
|
Return the class name "RTCPSDESPacket". Reimplemented from RTCPPacket. 00330 {
00331 return "RTCPSDESPacket";
00332 };
|
|
|
Duplicates the RTCPSDESPacket by calling the copy constructor. Reimplemented from RTCPPacket. 00325 {
00326 return new RTCPSDESPacket(*this);
00327 };
|
|
|
Writes a short info about this RTCPSDESPacket into the given string. Reimplemented from RTCPPacket. 00335 {
00336 std::stringstream out;
00337 out << "RTCPSDESPacket: number of sdes chunks=" << _sdesChunks->items();
00338 return out.str();
00339 };
|
|
|
Assignment operator. 00318 {
00319 RTCPPacket::operator=(rtcpSDESPacket);
00320 _sdesChunks = new cArray(*(rtcpSDESPacket._sdesChunks));
00321 return *this;
00322 };
|
|
|
Returns a copy of the cArray where the sdes chunks are stored. 00351 {
00352 return new cArray(*_sdesChunks);
00353 };
|
|
|
Writes a longer report about this RTCPSDESPacket into the given stream. Reimplemented from RTCPPacket. 00342 {
00343 os << "RTCPSDESPacket:" << endl;
00344 for (int i = 0; i < _sdesChunks->items(); i++) {
00345 if (_sdesChunks->exist(i))
00346 (*_sdesChunks)[i]->writeContents(os);
00347 }
00348 };
|
|
|
In this cArray the sdes chunks are stored. |
1.4.1