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

Class generated from inet/transportlayer/rtp/Reports.msg:16 by opp_msgtool. More...

#include <Reports_m.h>

Inheritance diagram for inet::rtp::SenderReport:

Public Member Functions

 SenderReport ()
 
 SenderReport (const SenderReport &other)
 
virtual ~SenderReport ()
 
SenderReportoperator= (const SenderReport &other)
 
virtual SenderReportdup () 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)
 
virtual std::string str () const override
 Writes a short info about this SenderReport into the given string. More...
 
virtual void dump (std::ostream &os) const
 Writes a longer info about this SenderReport into the given stream. More...
 

Protected Member Functions

bool operator== (const SenderReport &)=delete
 

Protected Attributes

uint64_t NTPTimeStamp = 0
 
uint32_t RTPTimeStamp = 0
 
uint32_t packetCount = 0
 
uint32_t byteCount = 0
 

Private Member Functions

void copy (const SenderReport &other)
 

Detailed Description

Class generated from inet/transportlayer/rtp/Reports.msg:16 by opp_msgtool.

//
// Represents an RTP sender report as contained
// in an ~RtcpSenderReportPacket.
//
class SenderReport extends cObject
{
    // The ntp time stamp.
    uint64_t NTPTimeStamp;
    // The rtp time stamp.
    uint32_t RTPTimeStamp;
    // The number of packets sent.
    uint32_t packetCount;
    // The number of (payload) bytes sent.
    uint32_t byteCount;
}

Constructor & Destructor Documentation

◆ SenderReport() [1/2]

inet::rtp::SenderReport::SenderReport ( )

◆ SenderReport() [2/2]

inet::rtp::SenderReport::SenderReport ( const SenderReport other)

◆ ~SenderReport()

virtual inet::rtp::SenderReport::~SenderReport ( )
virtual

Member Function Documentation

◆ copy()

void inet::rtp::SenderReport::copy ( const SenderReport other)
private

◆ dump()

void inet::rtp::SenderReport::dump ( std::ostream &  os) const
virtual

Writes a longer info about this SenderReport into the given stream.

27 {
28  os << "SenderReport:" << endl;
29  os << " ntpTimeStamp = " << getNTPTimeStamp() << endl;
30  os << " rtpTimeStamp = " << getRTPTimeStamp() << endl;
31  os << " packetCount = " << getPacketCount() << endl;
32  os << " byteCount = " << getByteCount() << endl;
33 }

◆ dup()

virtual SenderReport* inet::rtp::SenderReport::dup ( ) const
inlineoverridevirtual
88 {return new SenderReport(*this);}

◆ getByteCount()

virtual uint32_t inet::rtp::SenderReport::getByteCount ( ) const
virtual

Referenced by dump().

◆ getNTPTimeStamp()

virtual uint64_t inet::rtp::SenderReport::getNTPTimeStamp ( ) const
virtual

◆ getPacketCount()

virtual uint32_t inet::rtp::SenderReport::getPacketCount ( ) const
virtual

Referenced by dump().

◆ getRTPTimeStamp()

virtual uint32_t inet::rtp::SenderReport::getRTPTimeStamp ( ) const
virtual

◆ operator=()

SenderReport& inet::rtp::SenderReport::operator= ( const SenderReport other)

◆ operator==()

bool inet::rtp::SenderReport::operator== ( const SenderReport )
protecteddelete

◆ parsimPack()

virtual void inet::rtp::SenderReport::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

◆ parsimUnpack()

virtual void inet::rtp::SenderReport::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

◆ setByteCount()

virtual void inet::rtp::SenderReport::setByteCount ( uint32_t  byteCount)
virtual

◆ setNTPTimeStamp()

virtual void inet::rtp::SenderReport::setNTPTimeStamp ( uint64_t  NTPTimeStamp)
virtual

◆ setPacketCount()

virtual void inet::rtp::SenderReport::setPacketCount ( uint32_t  packetCount)
virtual

◆ setRTPTimeStamp()

virtual void inet::rtp::SenderReport::setRTPTimeStamp ( uint32_t  RTPTimeStamp)
virtual

◆ str()

std::string inet::rtp::SenderReport::str ( ) const
overridevirtual

Writes a short info about this SenderReport into the given string.

20 {
21  std::stringstream out;
22  out << "SenderReport.timeStamp=" << getRTPTimeStamp();
23  return out.str();
24 }

Member Data Documentation

◆ byteCount

uint32_t inet::rtp::SenderReport::byteCount = 0
protected

◆ NTPTimeStamp

uint64_t inet::rtp::SenderReport::NTPTimeStamp = 0
protected

◆ packetCount

uint32_t inet::rtp::SenderReport::packetCount = 0
protected

◆ RTPTimeStamp

uint32_t inet::rtp::SenderReport::RTPTimeStamp = 0
protected

The documentation for this class was generated from the following files:
inet::rtp::SenderReport::getPacketCount
virtual uint32_t getPacketCount() const
inet::rtp::SenderReport::getRTPTimeStamp
virtual uint32_t getRTPTimeStamp() const
inet::rtp::SenderReport::getNTPTimeStamp
virtual uint64_t getNTPTimeStamp() const
inet::rtp::SenderReport::SenderReport
SenderReport()
inet::rtp::SenderReport::getByteCount
virtual uint32_t getByteCount() const