Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SenderReport Class Reference

#include <reports.h>

List of all members.


Detailed Description

The class SenderReport represents an rtp sender report as contained in an RTCPSenderReportPacket.


Public Member Functions

 SenderReport (const char *name=NULL)
 SenderReport (const SenderReport &senderReport)
virtual ~SenderReport ()
SenderReportoperator= (const SenderReport &senderReport)
virtual cObject * dup () const
virtual const char * className () const
virtual std::string info ()
virtual void writeContents (std::ostream &os) const
virtual u_int64 ntpTimeStamp ()
virtual void setNTPTimeStamp (u_int64 ntpTimeStamp)
virtual u_int32 rtpTimeStamp ()
virtual void setRTPTimeStamp (u_int32 timeStamp)
virtual u_int32 packetCount ()
virtual void setPacketCount (u_int32 packetCount)
virtual u_int32 byteCount ()
virtual void setByteCount (u_int32 byteCount)

Protected Attributes

u_int64 _ntpTimeStamp
u_int32 _rtpTimeStamp
u_int32 _packetCount
u_int32 _byteCount


Constructor & Destructor Documentation

SenderReport::SenderReport const char *  name = NULL  ) 
 

Default constructor.

00036                                            : cObject(name) {
00037     _ntpTimeStamp = 0;
00038     _rtpTimeStamp = 0;
00039     _packetCount = 0;
00040     _byteCount = 0;
00041 };

SenderReport::SenderReport const SenderReport senderReport  ) 
 

Copy constructor. Needed by omnet++.

00044                                                            : cObject() {
00045     setName(senderReport.name());
00046     operator=(senderReport);
00047 };

SenderReport::~SenderReport  )  [virtual]
 

Destructor.

00050                             {
00051 };


Member Function Documentation

u_int32 SenderReport::byteCount  )  [virtual]
 

Returns how many bytes have been sent as store in this SenderReport.

00120                                 {
00121     return _byteCount;
00122 };

const char * SenderReport::className  )  const [virtual]
 

Returns the class name "SenderReport".

00069                                           {
00070     return "SenderReport";
00071 };

cObject * SenderReport::dup  )  const [virtual]
 

Duplicates this SenderReport by calling the copy constructor.

00064                                  {
00065     return new SenderReport(*this);
00066 };

std::string SenderReport::info  )  [virtual]
 

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

00074                              {
00075     std::stringstream out;
00076     out << "SenderReport.timeStamp=" << _rtpTimeStamp;
00077     return out.str();
00078 };

u_int64 SenderReport::ntpTimeStamp  )  [virtual]
 

Returns the contained ntp time stamp.

00090                                    {
00091     return _ntpTimeStamp;
00092 };

SenderReport & SenderReport::operator= const SenderReport senderReport  ) 
 

Assignment operator.

00054                                                                       {
00055     cObject::operator=(senderReport);
00056     _ntpTimeStamp = senderReport._ntpTimeStamp;
00057     _rtpTimeStamp = senderReport._rtpTimeStamp;
00058     _packetCount = senderReport._packetCount;
00059     _byteCount = senderReport._byteCount;
00060     return *this;
00061 };

u_int32 SenderReport::packetCount  )  [virtual]
 

Returns the number of packets sent as stored in this SenderReport.

00110                                   {
00111     return _packetCount;
00112 };

u_int32 SenderReport::rtpTimeStamp  )  [virtual]
 

Returns the contained rtp time stamp.

00100                                    {
00101     return _rtpTimeStamp;
00102 };

void SenderReport::setByteCount u_int32  byteCount  )  [virtual]
 

Sets the value how many bytes have been sent.

00125                                                  {
00126     _byteCount = byteCount;
00127 }

void SenderReport::setNTPTimeStamp u_int64  ntpTimeStamp  )  [virtual]
 

Sets the ntp time stamp.

00095                                                        {
00096     _ntpTimeStamp = ntpTimeStamp;
00097 }

void SenderReport::setPacketCount u_int32  packetCount  )  [virtual]
 

Sets the number of packets sent.

00115                                                      {
00116     _packetCount = packetCount;
00117 }

void SenderReport::setRTPTimeStamp u_int32  timeStamp  )  [virtual]
 

Sets the rtp time stamp.

00105                                                        {
00106     _rtpTimeStamp = rtpTimeStamp;
00107 };

void SenderReport::writeContents std::ostream &  os  )  const [virtual]
 

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

00081                                                      {
00082     os << "SenderReport:" << endl;
00083     os << "  ntpTimeStamp = " << _ntpTimeStamp << endl;
00084     os << "  rtpTimeStamp = " << _rtpTimeStamp << endl;
00085     os << "  packetCount = " << _packetCount << endl;
00086     os << "  byteCount = " << _byteCount << endl;
00087 };


Member Data Documentation

u_int32 SenderReport::_byteCount [protected]
 

The number of (payload) bytes sent.

u_int64 SenderReport::_ntpTimeStamp [protected]
 

The ntp time stamp.

u_int32 SenderReport::_packetCount [protected]
 

The number of packets sent.

u_int32 SenderReport::_rtpTimeStamp [protected]
 

The rtp time stamp.


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 20:52:24 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.1