INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/rtp/reports.msg:17
by nedtool.
More...
#include <reports_m.h>
Public Member Functions | |
virtual | ~SenderReport_Base () |
virtual SenderReport_Base * | dup () 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_Base & | operator= (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) |
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)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::rtp::SenderReport.
|
virtual |
Referenced by inet::rtp::SenderReport::dump().
|
virtual |
Referenced by inet::rtp::SenderReport::dump(), and inet::rtp::RTPReceiverInfo::processSenderReport().
|
virtual |
Referenced by inet::rtp::SenderReport::dump().
|
virtual |
|
protected |
Referenced by inet::rtp::SenderReport::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
Referenced by inet::rtp::RTPSenderInfo::senderReport().
|
virtual |
Referenced by inet::rtp::RTPSenderInfo::senderReport().
|
virtual |
Referenced by inet::rtp::RTPSenderInfo::senderReport().
|
virtual |
Referenced by inet::rtp::RTPSenderInfo::senderReport().
|
protected |
|
protected |
|
protected |
|
protected |