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

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

#include <reports_m.h>

Inheritance diagram for inet::rtp::SenderReport_Base:
inet::rtp::SenderReport

Public Member Functions

virtual ~SenderReport_Base ()
 
virtual SenderReport_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual uint64_t getNTPTimeStamp () const
 
virtual void setNTPTimeStamp (uint64_t NTPTimeStamp)
 
virtual uint32_t getRTPTimeStamp () const
 
virtual void setRTPTimeStamp (uint32_t RTPTimeStamp)
 
virtual uint32_t getPacketCount () const
 
virtual void setPacketCount (uint32_t packetCount)
 
virtual uint32_t getByteCount () const
 
virtual void setByteCount (uint32_t byteCount)
 

Protected Member Functions

bool operator== (const SenderReport_Base &)
 
 SenderReport_Base ()
 
 SenderReport_Base (const SenderReport_Base &other)
 
SenderReport_Baseoperator= (const SenderReport_Base &other)
 

Protected Attributes

uint64_t NTPTimeStamp
 
uint32_t RTPTimeStamp
 
uint32_t packetCount
 
uint32_t byteCount
 

Private Member Functions

void copy (const SenderReport_Base &other)
 

Detailed Description

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

//
// Represents an RTP sender report as contained
// in an ~RTCPSenderReportPacket.
//
class SenderReport
{
    @customize(true);
    // The ntp time stamp.
    uint64 NTPTimeStamp;
    // The rtp time stamp.
    uint32 RTPTimeStamp;
    // The number of packets sent.
    uint32 packetCount;
    // The number of (payload) bytes sent.
    uint32 byteCount;
}

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

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

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

Register_Class(SenderReport)

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented in inet::rtp::SenderReport.

105 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class SenderReport");}
virtual uint32_t inet::rtp::SenderReport_Base::getByteCount ( ) const
virtual
virtual uint64_t inet::rtp::SenderReport_Base::getNTPTimeStamp ( ) const
virtual
virtual uint32_t inet::rtp::SenderReport_Base::getPacketCount ( ) const
virtual
virtual uint32_t inet::rtp::SenderReport_Base::getRTPTimeStamp ( ) const
virtual
SenderReport_Base& inet::rtp::SenderReport_Base::operator= ( const SenderReport_Base other)
protected
bool inet::rtp::SenderReport_Base::operator== ( const SenderReport_Base )
protected
virtual void inet::rtp::SenderReport_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::rtp::SenderReport_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::rtp::SenderReport_Base::setByteCount ( uint32_t  byteCount)
virtual
virtual void inet::rtp::SenderReport_Base::setNTPTimeStamp ( uint64_t  NTPTimeStamp)
virtual
virtual void inet::rtp::SenderReport_Base::setPacketCount ( uint32_t  packetCount)
virtual
virtual void inet::rtp::SenderReport_Base::setRTPTimeStamp ( uint32_t  RTPTimeStamp)
virtual

Member Data Documentation

uint32_t inet::rtp::SenderReport_Base::byteCount
protected
uint64_t inet::rtp::SenderReport_Base::NTPTimeStamp
protected
uint32_t inet::rtp::SenderReport_Base::packetCount
protected
uint32_t inet::rtp::SenderReport_Base::RTPTimeStamp
protected

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