|
reSIProcate/stack
9694
|
#include <SdpContents.hxx>
Public Member Functions | |
| Repeat (unsigned long interval, unsigned long duration, std::list< int > offsets) | |
| void | parse (ParseBuffer &pb) |
| EncodeStream & | encode (EncodeStream &) const |
| unsigned long | getInterval () const |
| unsigned long | getDuration () const |
| const std::list< int > | getOffsets () const |
Private Member Functions | |
| Repeat () | |
Private Attributes | |
| unsigned long | mInterval |
| unsigned long | mDuration |
| std::list< int > | mOffsets |
Friends | |
| class | Time |
| resip::SdpContents::Session::Time::Repeat::Repeat | ( | unsigned long | interval, |
| unsigned long | duration, | ||
| std::list< int > | offsets | ||
| ) |
| resip::SdpContents::Session::Time::Repeat::Repeat | ( | ) | [inline, private] |
Definition at line 477 of file SdpContents.hxx.
{}
| EncodeStream & SdpContents::Session::Time::Repeat::encode | ( | EncodeStream & | s | ) | const |
Definition at line 703 of file SdpContents.cxx.
References CRLF, and resip::Symbols::SPACE.
{
s << "r="
<< mInterval << Symbols::SPACE[0]
<< mDuration << 's';
for (list<int>::const_iterator i = mOffsets.begin();
i != mOffsets.end(); ++i)
{
s << Symbols::SPACE[0] << *i << 's';
}
s << Symbols::CRLF;
return s;
}
| unsigned long resip::SdpContents::Session::Time::Repeat::getDuration | ( | ) | const [inline] |
| unsigned long resip::SdpContents::Session::Time::Repeat::getInterval | ( | ) | const [inline] |
| const std::list<int> resip::SdpContents::Session::Time::Repeat::getOffsets | ( | ) | const [inline] |
| void SdpContents::Session::Time::Repeat::parse | ( | ParseBuffer & | pb | ) |
Definition at line 746 of file SdpContents.cxx.
References resip::Symbols::CR, resip::ParseBuffer::eof(), resip::Symbols::EQUALS, parseTypedTime(), resip::ParseBuffer::position(), resip::ParseBuffer::skipChar(), skipEol(), and resip::Symbols::SPACE.
{
pb.skipChar('r');
pb.skipChar(Symbols::EQUALS[0]);
mInterval = parseTypedTime(pb);
pb.skipChar(Symbols::SPACE[0]);
mDuration = parseTypedTime(pb);
while (!pb.eof() && *pb.position() != Symbols::CR[0])
{
pb.skipChar(Symbols::SPACE[0]);
mOffsets.push_back(parseTypedTime(pb));
}
skipEol(pb);
}

friend class Time [friend] |
Definition at line 482 of file SdpContents.hxx.
unsigned long resip::SdpContents::Session::Time::Repeat::mDuration [private] |
Definition at line 479 of file SdpContents.hxx.
Referenced by getDuration().
unsigned long resip::SdpContents::Session::Time::Repeat::mInterval [private] |
Definition at line 478 of file SdpContents.hxx.
Referenced by getInterval().
std::list<int> resip::SdpContents::Session::Time::Repeat::mOffsets [private] |
Definition at line 480 of file SdpContents.hxx.
Referenced by getOffsets().
1.7.5.1