INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/rtp/RTCPPacket1.msg:45
by nedtool.
More...
#include <RTCPPacket1_m.h>
Public Member Functions | |
virtual | ~RTCPCompoundPacket_Base () |
virtual RTCPCompoundPacket_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual cArray & | getRtcpPackets () |
virtual const cArray & | getRtcpPackets () const |
virtual void | setRtcpPackets (const cArray &rtcpPackets) |
Protected Member Functions | |
bool | operator== (const RTCPCompoundPacket_Base &) |
RTCPCompoundPacket_Base (const char *name=nullptr, short kind=0) | |
RTCPCompoundPacket_Base (const RTCPCompoundPacket_Base &other) | |
RTCPCompoundPacket_Base & | operator= (const RTCPCompoundPacket_Base &other) |
Protected Attributes | |
cArray | rtcpPackets |
Private Member Functions | |
void | copy (const RTCPCompoundPacket_Base &other) |
Class generated from inet/transportlayer/rtp/RTCPPacket1.msg:45
by nedtool.
packet RTCPCompoundPacket { byteLength = 0; @customize(true); // see the generated C++ header for more info cArray rtcpPackets; }
RTCPCompoundPacket_Base is only useful if it gets subclassed, and RTCPCompoundPacket is derived from it. The minimum code to be written for RTCPCompoundPacket is the following:
class INET_API RTCPCompoundPacket : public RTCPCompoundPacket_Base { private: void copy(const RTCPCompoundPacket& other) { ... }
public: RTCPCompoundPacket(const char *name=nullptr, short kind=0) : RTCPCompoundPacket_Base(name,kind) {} RTCPCompoundPacket(const RTCPCompoundPacket& other) : RTCPCompoundPacket_Base(other) {copy(other);} RTCPCompoundPacket& operator=(const RTCPCompoundPacket& other) {if (this==&other) return *this; RTCPCompoundPacket_Base::operator=(other); copy(other); return *this;} virtual RTCPCompoundPacket *dup() const override {return new RTCPCompoundPacket(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from RTCPCompoundPacket_Base };
The following should go into a .cc (.cpp) file:
Register_Class(RTCPCompoundPacket)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::rtp::RTCPCompoundPacket.
|
virtual |
Referenced by inet::rtp::RTCP::processIncomingRTCPPacket().
|
inlinevirtual |
Referenced by getRtcpPackets().
|
protected |
Referenced by inet::rtp::RTCPCompoundPacket::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
|
protected |
Referenced by inet::rtp::RTCPCompoundPacket::addRTCPPacket().