|
reSIProcate/stack
9694
|
Process optional b= (bandwidth) lines in SDP. More...
#include <SdpContents.hxx>

Public Member Functions | |
| Bandwidth (const Data &modifier, unsigned long kbPerSecond) | |
| Constructor. | |
| Bandwidth (const Bandwidth &rhs) | |
| Bandwidth & | operator= (const Bandwidth &rhs) |
| void | parse (ParseBuffer &pb) |
| EncodeStream & | encode (EncodeStream &) const |
| const Data & | modifier () const |
| returns the modifier string | |
| Data | modifier () |
| returns the modifier string | |
| unsigned long | kbPerSecond () const |
| returns the number of kilobits/second maximum bandwidth | |
| unsigned long & | kbPerSecond () |
| returns the number of kilobits/second maximum bandwidth | |
Private Member Functions | |
| Bandwidth () | |
Private Attributes | |
| Data | mModifier |
| unsigned long | mKbPerSecond |
Friends | |
| class | Session |
| class | Medium |
Process optional b= (bandwidth) lines in SDP.
Definition at line 390 of file SdpContents.hxx.
| SdpContents::Session::Bandwidth::Bandwidth | ( | const Data & | modifier, |
| unsigned long | kbPerSecond | ||
| ) |
Constructor.
| modifier | alphanumeric word giving the meaning of the bandwidth figure |
| kbPerSecond | number of kilobits per second |
Definition at line 577 of file SdpContents.cxx.
: mModifier(modifier), mKbPerSecond(kbPerSecond) {}
| SdpContents::Session::Bandwidth::Bandwidth | ( | const Bandwidth & | rhs | ) |
Definition at line 583 of file SdpContents.cxx.
: mModifier(rhs.mModifier), mKbPerSecond(rhs.mKbPerSecond) {}
| resip::SdpContents::Session::Bandwidth::Bandwidth | ( | ) | [inline, private] |
Definition at line 429 of file SdpContents.hxx.
{}
| EncodeStream & SdpContents::Session::Bandwidth::encode | ( | EncodeStream & | s | ) | const |
Definition at line 600 of file SdpContents.cxx.
References resip::Symbols::COLON, and CRLF.
{
s << "b="
<< mModifier
<< Symbols::COLON[0] << mKbPerSecond
<< Symbols::CRLF;
return s;
}
| unsigned long resip::SdpContents::Session::Bandwidth::kbPerSecond | ( | ) | const [inline] |
returns the number of kilobits/second maximum bandwidth
Definition at line 421 of file SdpContents.hxx.
References mKbPerSecond.
{return mKbPerSecond;}
| unsigned long& resip::SdpContents::Session::Bandwidth::kbPerSecond | ( | ) | [inline] |
returns the number of kilobits/second maximum bandwidth
Definition at line 426 of file SdpContents.hxx.
References mKbPerSecond.
{return mKbPerSecond;}
| const Data& resip::SdpContents::Session::Bandwidth::modifier | ( | ) | const [inline] |
returns the modifier string
Definition at line 411 of file SdpContents.hxx.
References mModifier.
{return mModifier;}
| Data resip::SdpContents::Session::Bandwidth::modifier | ( | ) | [inline] |
returns the modifier string
Definition at line 416 of file SdpContents.hxx.
References mModifier.
{return mModifier;}
| SdpContents::Session::Bandwidth & SdpContents::Session::Bandwidth::operator= | ( | const Bandwidth & | rhs | ) |
Definition at line 589 of file SdpContents.cxx.
References mKbPerSecond, and mModifier.
{
if (this != &rhs)
{
mModifier = rhs.mModifier;
mKbPerSecond = rhs.mKbPerSecond;
}
return *this;
}
| void SdpContents::Session::Bandwidth::parse | ( | ParseBuffer & | pb | ) |
Definition at line 610 of file SdpContents.cxx.
References resip::Symbols::COLON, resip::Symbols::CRLF, resip::ParseBuffer::data(), resip::Symbols::EQUALS, resip::ParseBuffer::fail(), resip::ParseBuffer::integer(), resip::ParseBuffer::position(), resip::ParseBuffer::skipChar(), skipEol(), and resip::ParseBuffer::skipToOneOf().
{
pb.skipChar('b');
const char* anchor = pb.skipChar(Symbols::EQUALS[0]);
pb.skipToOneOf(Symbols::COLON, Symbols::CRLF);
if (*pb.position() == Symbols::COLON[0])
{
pb.data(mModifier, anchor);
anchor = pb.skipChar(Symbols::COLON[0]);
mKbPerSecond = pb.integer();
skipEol(pb);
}
else
{
pb.fail(__FILE__, __LINE__);
}
}

friend class Medium [friend] |
Definition at line 434 of file SdpContents.hxx.
friend class Session [friend] |
Definition at line 433 of file SdpContents.hxx.
unsigned long resip::SdpContents::Session::Bandwidth::mKbPerSecond [private] |
Definition at line 431 of file SdpContents.hxx.
Referenced by kbPerSecond(), and operator=().
Definition at line 430 of file SdpContents.hxx.
Referenced by modifier(), and operator=().
1.7.5.1