reSIProcate/stack  9694
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
resip::SdpContents Class Reference

Provides an interface to process and generate SDP bodies (MIME content-type application/sdp). More...

#include <SdpContents.hxx>

Inheritance diagram for resip::SdpContents:
Inheritance graph
[legend]
Collaboration diagram for resip::SdpContents:
Collaboration graph
[legend]

List of all members.

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 ()
SdpContentsoperator= (const SdpContents &rhs)
virtual Contentsclone () const
 duplicate an SdpContents object
Sessionsession ()
 get the parsed SDP
const Sessionsession () const
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual void parse (ParseBuffer &pb)

Static Public Member Functions

static const MimegetStaticType ()
static bool init ()

Static Public Attributes

static const SdpContents Empty

Private Member Functions

 SdpContents (const Data &data, const Mime &contentTypes)

Private Attributes

Session mSession

Detailed Description

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.


Member Enumeration Documentation

Enumerator:
IP4 
IP6 

Definition at line 52 of file SdpContents.hxx.


Constructor & Destructor Documentation

SdpContents::SdpContents ( )

Definition at line 162 of file SdpContents.cxx.

Referenced by clone().

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.

{
}
resip::SdpContents::SdpContents ( const Data data,
const Mime contentTypes 
) [private]

Member Function Documentation

Contents * SdpContents::clone ( ) const [virtual]

duplicate an SdpContents object

Returns:
pointer to a new SdpContents object

Implements resip::Contents.

Definition at line 194 of file SdpContents.cxx.

References SdpContents().

Referenced by resip::Helper::getSdp().

{
   return new SdpContents(*this);
}

Here is the call graph for this function:

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.

{
   mSession.encode(s);
   return s;
}

Here is the call graph for this function:

const Mime & SdpContents::getStaticType ( ) [static]

Definition at line 213 of file SdpContents.cxx.

References type.

{
   static Mime type("application", "sdp");
   return type;
}
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().

{
   mSession.parse(pb);
}

Here is the call graph for this function:

resip::SdpContents::RESIP_HeapCount ( SdpContents  )
Session& resip::SdpContents::session ( ) [inline]

get the parsed SDP

Returns:
parsed SDP object

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;}

Here is the call graph for this function:

const Session& resip::SdpContents::session ( ) const [inline]

Definition at line 1031 of file SdpContents.hxx.

References resip::LazyParser::checkParsed(), and mSession.

{checkParsed(); return mSession;}

Here is the call graph for this function:


Member Data Documentation

Definition at line 53 of file SdpContents.hxx.

Referenced by resip::SdpContents::Session::isConnection().


The documentation for this class was generated from the following files: