INET Framework for OMNeT++/OMNEST
inet::rtp::ReceptionReport_Base Class Reference

Class generated from inet/transportlayer/rtp/reports.msg:38 by nedtool. More...

#include <reports_m.h>

Inheritance diagram for inet::rtp::ReceptionReport_Base:
inet::rtp::ReceptionReport

Public Member Functions

virtual ~ReceptionReport_Base ()
 
virtual ReceptionReport_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual uint32_t getSsrc () const
 
virtual void setSsrc (uint32_t ssrc)
 
virtual uint8_t getFractionLost () const
 
virtual void setFractionLost (uint8_t fractionLost)
 
virtual int getPacketsLostCumulative () const
 
virtual void setPacketsLostCumulative (int packetsLostCumulative)
 
virtual uint32_t getSequenceNumber () const
 
virtual void setSequenceNumber (uint32_t sequenceNumber)
 
virtual int getJitter () const
 
virtual void setJitter (int jitter)
 
virtual int getLastSR () const
 
virtual void setLastSR (int lastSR)
 
virtual int getDelaySinceLastSR () const
 
virtual void setDelaySinceLastSR (int delaySinceLastSR)
 

Protected Member Functions

bool operator== (const ReceptionReport_Base &)
 
 ReceptionReport_Base ()
 
 ReceptionReport_Base (const ReceptionReport_Base &other)
 
ReceptionReport_Baseoperator= (const ReceptionReport_Base &other)
 

Protected Attributes

uint32_t ssrc
 
uint8_t fractionLost
 
int packetsLostCumulative
 
uint32_t sequenceNumber
 
int jitter
 
int lastSR
 
int delaySinceLastSR
 

Private Member Functions

void copy (const ReceptionReport_Base &other)
 

Detailed Description

Class generated from inet/transportlayer/rtp/reports.msg:38 by nedtool.

//
// Rrepresents an RTP receiver report stored
// in an RTPSenderReportPacket or RTPReceiverReport.
//
class ReceptionReport
{
    @customize(true);
    // The ssrc identifier of the sender this ~ReceptionReport is for.
    uint32 ssrc;
    // The fraction lost.
    uint8 fractionLost;
    // The number of packets expected minus the number of packets received.
    int packetsLostCumulative;
    // The extended highest sequence number received.
    uint32 sequenceNumber;
    // The interarrival jitter.
    int jitter;
    // The rtp time stamp of the last ~SenderReport received from this source.
    int lastSR;
    // The delay since the last ~SenderReport from this sender has been
    // received in units of 1/65536 seconds.
    int delaySinceLastSR;
}

ReceptionReport_Base is only useful if it gets subclassed, and ReceptionReport is derived from it. The minimum code to be written for ReceptionReport is the following:

class INET_API ReceptionReport : public ReceptionReport_Base
{
  private:
    void copy(const ReceptionReport& other) { ... }
  public:
    ReceptionReport() : ReceptionReport_Base() {}
    ReceptionReport(const ReceptionReport& other) : ReceptionReport_Base(other) {copy(other);}
    ReceptionReport& operator=(const ReceptionReport& other) {if (this==&other) return *this; ReceptionReport_Base::operator=(other); copy(other); return *this;}
    virtual ReceptionReport *dup() const override {return new ReceptionReport(*this);}
    // ADD CODE HERE to redefine and implement pure virtual functions from ReceptionReport_Base
};

The following should go into a .cc (.cpp) file:

Register_Class(ReceptionReport)

Constructor & Destructor Documentation

inet::rtp::ReceptionReport_Base::ReceptionReport_Base ( )
protected
inet::rtp::ReceptionReport_Base::ReceptionReport_Base ( const ReceptionReport_Base other)
protected
virtual inet::rtp::ReceptionReport_Base::~ReceptionReport_Base ( )
virtual

Member Function Documentation

void inet::rtp::ReceptionReport_Base::copy ( const ReceptionReport_Base other)
private
virtual ReceptionReport_Base* inet::rtp::ReceptionReport_Base::dup ( ) const
inlineoverridevirtual

Reimplemented in inet::rtp::ReceptionReport.

204 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class ReceptionReport");}
virtual int inet::rtp::ReceptionReport_Base::getDelaySinceLastSR ( ) const
virtual
virtual uint8_t inet::rtp::ReceptionReport_Base::getFractionLost ( ) const
virtual
virtual int inet::rtp::ReceptionReport_Base::getJitter ( ) const
virtual
virtual int inet::rtp::ReceptionReport_Base::getLastSR ( ) const
virtual
virtual int inet::rtp::ReceptionReport_Base::getPacketsLostCumulative ( ) const
virtual
virtual uint32_t inet::rtp::ReceptionReport_Base::getSequenceNumber ( ) const
virtual
virtual uint32_t inet::rtp::ReceptionReport_Base::getSsrc ( ) const
virtual
ReceptionReport_Base& inet::rtp::ReceptionReport_Base::operator= ( const ReceptionReport_Base other)
protected
bool inet::rtp::ReceptionReport_Base::operator== ( const ReceptionReport_Base )
protected
virtual void inet::rtp::ReceptionReport_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::rtp::ReceptionReport_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::rtp::ReceptionReport_Base::setDelaySinceLastSR ( int  delaySinceLastSR)
virtual
virtual void inet::rtp::ReceptionReport_Base::setFractionLost ( uint8_t  fractionLost)
virtual
virtual void inet::rtp::ReceptionReport_Base::setJitter ( int  jitter)
virtual
virtual void inet::rtp::ReceptionReport_Base::setLastSR ( int  lastSR)
virtual
virtual void inet::rtp::ReceptionReport_Base::setPacketsLostCumulative ( int  packetsLostCumulative)
virtual
virtual void inet::rtp::ReceptionReport_Base::setSequenceNumber ( uint32_t  sequenceNumber)
virtual
virtual void inet::rtp::ReceptionReport_Base::setSsrc ( uint32_t  ssrc)
virtual

Member Data Documentation

int inet::rtp::ReceptionReport_Base::delaySinceLastSR
protected
uint8_t inet::rtp::ReceptionReport_Base::fractionLost
protected
int inet::rtp::ReceptionReport_Base::jitter
protected
int inet::rtp::ReceptionReport_Base::lastSR
protected
int inet::rtp::ReceptionReport_Base::packetsLostCumulative
protected
uint32_t inet::rtp::ReceptionReport_Base::sequenceNumber
protected
uint32_t inet::rtp::ReceptionReport_Base::ssrc
protected

The documentation for this class was generated from the following file: