INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/rtp/RTCPPacket1.msg:34
by nedtool.
More...
#include <RTCPPacket1_m.h>
Public Member Functions | |
virtual | ~RTCPPacket_Base () |
virtual RTCPPacket_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual int8_t | getVersion () const |
virtual void | setVersion (int8_t version) |
virtual bool | getPadding () const |
virtual void | setPadding (bool padding) |
virtual short | getCount () const |
virtual void | setCount (short count) |
virtual short | getPacketType () const |
virtual void | setPacketType (short packetType) |
virtual int | getRtcpLength () const =0 |
virtual void | setRtcpLength (int rtcpLength)=0 |
Protected Member Functions | |
bool | operator== (const RTCPPacket_Base &) |
RTCPPacket_Base (const char *name=nullptr, short kind=0) | |
RTCPPacket_Base (const RTCPPacket_Base &other) | |
RTCPPacket_Base & | operator= (const RTCPPacket_Base &other) |
Protected Attributes | |
int8_t | version |
bool | padding |
short | count |
short | packetType |
Private Member Functions | |
void | copy (const RTCPPacket_Base &other) |
Class generated from inet/transportlayer/rtp/RTCPPacket1.msg:34
by nedtool.
packet RTCPPacket { byteLength = 4; @customize(true); // see the generated C++ header for more info int8 version = 2; bool padding = 0; short count = 0; short packetType @enum(RTCPPacketType) = RTCP_PT_UNDEF; abstract int rtcpLength; }
RTCPPacket_Base is only useful if it gets subclassed, and RTCPPacket is derived from it. The minimum code to be written for RTCPPacket is the following:
class INET_API RTCPPacket : public RTCPPacket_Base { private: void copy(const RTCPPacket& other) { ... }
public: RTCPPacket(const char *name=nullptr, short kind=0) : RTCPPacket_Base(name,kind) {} RTCPPacket(const RTCPPacket& other) : RTCPPacket_Base(other) {copy(other);} RTCPPacket& operator=(const RTCPPacket& other) {if (this==&other) return *this; RTCPPacket_Base::operator=(other); copy(other); return *this;} virtual RTCPPacket *dup() const override {return new RTCPPacket(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from RTCPPacket_Base };
The following should go into a .cc (.cpp) file:
Register_Class(RTCPPacket)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::rtp::RTCPByePacket_Base, inet::rtp::RTCPSDESPacket_Base, inet::rtp::RTCPReceiverReportPacket_Base, inet::rtp::RTCPSenderReportPacket_Base, inet::rtp::RTCPByePacket, inet::rtp::RTCPSDESPacket, inet::rtp::RTCPPacket, inet::rtp::RTCPReceiverReportPacket, and inet::rtp::RTCPSenderReportPacket.
|
virtual |
|
virtual |
Referenced by inet::rtp::RTCP::processIncomingRTCPPacket().
|
virtual |
|
pure virtual |
Implemented in inet::rtp::RTCPPacket.
|
virtual |
|
protected |
Referenced by inet::rtp::RTCPPacket::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in inet::rtp::RTCPPacket.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |