#include <sdes.h>
Public Member Functions | |
| SDESChunk (const char *name=NULL, u_int32 ssrc=0) | |
| SDESChunk (const SDESChunk &sdesChunk) | |
| virtual | ~SDESChunk () |
| SDESChunk & | operator= (const SDESChunk &sdesChunk) |
| virtual cObject * | dup () const |
| virtual const char * | className () const |
| virtual std::string | info () |
| virtual void | writeContents (std::ostream &os) |
| virtual void | addSDESItem (SDESItem *item) |
| virtual u_int32 | ssrc () |
| virtual void | setSSRC (u_int32 ssrc) |
| virtual int | length () |
Protected Attributes | |
| u_int32 | _ssrc |
| int | _length |
| SDESChunk::SDESChunk | ( | const char * | name = NULL, |
|
| u_int32 | ssrc = 0 | |||
| ) |
| SDESChunk::SDESChunk | ( | const SDESChunk & | sdesChunk | ) |
Copy constructor.
00122 : cArray(sdesChunk) { 00123 setName(sdesChunk.name()); 00124 operator=(sdesChunk); 00125 };
| void 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.
00168 { 00169 for (int i = 0; i < items(); i++) { 00170 if (exist(i)) { 00171 SDESItem *compareItem = (SDESItem *)(get(i)); 00172 if (compareItem->type() == sdesItem->type()) { 00173 remove(compareItem); 00174 _length = _length - compareItem->length(); 00175 delete compareItem; 00176 }; 00177 } 00178 }; 00179 00180 //sdesItem->setOwner(this); 00181 add(sdesItem); 00182 _length = _length + (sdesItem->length()); 00183 00184 };
| const char * SDESChunk::className | ( | ) | const [virtual] |
| cObject * SDESChunk::dup | ( | ) | const [virtual] |
| std::string SDESChunk::info | ( | ) | [virtual] |
| int SDESChunk::length | ( | ) | [virtual] |
| void SDESChunk::setSSRC | ( | u_int32 | ssrc | ) | [virtual] |
| u_int32 SDESChunk::ssrc | ( | ) | [virtual] |
| void SDESChunk::writeContents | ( | std::ostream & | os | ) | [virtual] |
int SDESChunk::_length [protected] |
The length in bytes of this SDESChunk.
u_int32 SDESChunk::_ssrc [protected] |
The ssrc identifier this SDESChunk is for.
1.4.7