|
reSIProcate/stack
9694
|
Provides an interface to process and generate SDP bodies (MIME content-type application/sdp). More...
#include <SdpContents.hxx>


Classes | |
| class | Session |
| Provides an interface to read and modify SDP bodies. More... | |
Public Types | |
| enum | AddrType { IP4 = 1, IP6 } |
Public Member Functions | |
| RESIP_HeapCount (SdpContents) | |
| SdpContents () | |
| SdpContents (const HeaderFieldValue &hfv, const Mime &contentTypes) | |
| virtual | ~SdpContents () |
| SdpContents & | operator= (const SdpContents &rhs) |
| virtual Contents * | clone () const |
| duplicate an SdpContents object | |
| Session & | session () |
| get the parsed SDP | |
| const Session & | session () const |
| virtual EncodeStream & | encodeParsed (EncodeStream &str) const |
| virtual void | parse (ParseBuffer &pb) |
Static Public Member Functions | |
| static const Mime & | getStaticType () |
| static bool | init () |
Static Public Attributes | |
| static const SdpContents | Empty |
Private Member Functions | |
| SdpContents (const Data &data, const Mime &contentTypes) | |
Private Attributes | |
| Session | mSession |
Provides an interface to process and generate SDP bodies (MIME content-type application/sdp).
This class performs both the parsing and generation of SDP. Most interaction with the SDP will be through the Session object, accessible through the session() method.
Definition at line 48 of file SdpContents.hxx.
| SdpContents::SdpContents | ( | ) |
Definition at line 162 of file SdpContents.cxx.
Referenced by clone().
: Contents(getStaticType()) { }
| SdpContents::SdpContents | ( | const HeaderFieldValue & | hfv, |
| const Mime & | contentTypes | ||
| ) |
Definition at line 166 of file SdpContents.cxx.
: Contents(hfv, contentTypes) { }
| SdpContents::~SdpContents | ( | ) | [virtual] |
Definition at line 177 of file SdpContents.cxx.
{
}
| Contents * SdpContents::clone | ( | ) | const [virtual] |
duplicate an SdpContents object
Implements resip::Contents.
Definition at line 194 of file SdpContents.cxx.
References SdpContents().
Referenced by resip::Helper::getSdp().
{
return new SdpContents(*this);
}

| EncodeStream & SdpContents::encodeParsed | ( | EncodeStream & | str | ) | const [virtual] |
Implements resip::LazyParser.
Definition at line 206 of file SdpContents.cxx.
References resip::SdpContents::Session::encode(), and mSession.

| const Mime & SdpContents::getStaticType | ( | ) | [static] |
| bool SdpContents::init | ( | ) | [static] |
Reimplemented from resip::Contents.
Definition at line 21 of file SdpContents.cxx.
{
static ContentsFactory<SdpContents> factory;
(void)factory;
return true;
}
| SdpContents & SdpContents::operator= | ( | const SdpContents & | rhs | ) |
Definition at line 183 of file SdpContents.cxx.
References mSession.
{
if (this != &rhs)
{
Contents::operator=(rhs);
mSession = rhs.mSession;
}
return *this;
}
| void SdpContents::parse | ( | ParseBuffer & | pb | ) | [virtual] |
Implements resip::LazyParser.
Definition at line 200 of file SdpContents.cxx.
References mSession, and resip::SdpContents::Session::parse().

| resip::SdpContents::RESIP_HeapCount | ( | SdpContents | ) |
| Session& resip::SdpContents::session | ( | ) | [inline] |
get the parsed SDP
Definition at line 1030 of file SdpContents.hxx.
References resip::LazyParser::checkParsed(), and mSession.
Referenced by main(), resip::SdpContents::Session::Medium::setSession(), and test7().
{checkParsed(); return mSession;}

| const Session& resip::SdpContents::session | ( | ) | const [inline] |
Definition at line 1031 of file SdpContents.hxx.
References resip::LazyParser::checkParsed(), and mSession.
{checkParsed(); return mSession;}

const SdpContents SdpContents::Empty [static] |
Definition at line 53 of file SdpContents.hxx.
Referenced by resip::SdpContents::Session::isConnection().
Session resip::SdpContents::mSession [private] |
Definition at line 1041 of file SdpContents.hxx.
Referenced by encodeParsed(), resip::SdpContents::Session::Medium::exists(), resip::SdpContents::Session::Medium::getConnections(), resip::SdpContents::Session::Medium::getValues(), resip::SdpContents::Session::Medium::operator=(), operator=(), parse(), session(), and resip::SdpContents::Session::Medium::setSession().
1.7.5.1