reSIProcate/stack  9694
Public Member Functions | Static Public Member Functions | Private Attributes
resip::Rlmi Class Reference

SIP body type for holding RLMI contents (MIME content-type application/rlmi+xml). More...

#include <Rlmi.hxx>

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

List of all members.

Public Member Functions

 Rlmi ()
 Rlmi (const HeaderFieldValue &hfv, const Mime &contentType)
 Rlmi (const Rlmi &rhs)
virtual ~Rlmi ()
Rlmioperator= (const Rlmi &rhs)
virtual Contentsclone () const
 duplicate an Rlmi object
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual void parse (ParseBuffer &pb)
const Dataget ()
void set (const Data &text)

Static Public Member Functions

static const MimegetStaticType ()
static bool init ()

Private Attributes

Data mText

Detailed Description

SIP body type for holding RLMI contents (MIME content-type application/rlmi+xml).

Definition at line 16 of file Rlmi.hxx.


Constructor & Destructor Documentation

Rlmi::Rlmi ( )

Definition at line 25 of file Rlmi.cxx.

Referenced by clone().

Rlmi::Rlmi ( const HeaderFieldValue hfv,
const Mime contentType 
)

Definition at line 29 of file Rlmi.cxx.

   : Contents(hfv, contentsType)
{
}
Rlmi::Rlmi ( const Rlmi rhs)

Definition at line 34 of file Rlmi.cxx.

References mText.

   : Contents(rhs)
{
   mText = rhs.mText;
}
Rlmi::~Rlmi ( ) [virtual]

Definition at line 40 of file Rlmi.cxx.

{
}

Member Function Documentation

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

duplicate an Rlmi object

Returns:
pointer to a new Rlmi object

Implements resip::Contents.

Definition at line 55 of file Rlmi.cxx.

References Rlmi().

{
   return new Rlmi(*this);
}

Here is the call graph for this function:

EncodeStream & Rlmi::encodeParsed ( EncodeStream str) const [virtual]

Implements resip::LazyParser.

Definition at line 68 of file Rlmi.cxx.

References mText.

{
   //DebugLog(<< "Rlmi::encodeParsed " << mText);
   str << mText;
   
   return str;
}
const Data & Rlmi::get ( )

Definition at line 85 of file Rlmi.cxx.

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

Referenced by interpretRlmi(), and main().

{
   checkParsed();
   return mText;
}

Here is the call graph for this function:

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

Definition at line 61 of file Rlmi.cxx.

References type.

{
   static Mime type("application","rlmi+xml");
   return type;
}
bool Rlmi::init ( ) [static]

Reimplemented from resip::Contents.

Definition at line 18 of file Rlmi.cxx.

{
   static ContentsFactory<Rlmi> factory;
   (void)factory;
   return true;
}
Rlmi & Rlmi::operator= ( const Rlmi rhs)

Definition at line 45 of file Rlmi.cxx.

References mText.

{
   if (this != &rhs)
   {
      mText = rhs.mText;
   }
   return *this;
}
void Rlmi::parse ( ParseBuffer pb) [virtual]

Implements resip::LazyParser.

Definition at line 77 of file Rlmi.cxx.

References resip::ParseBuffer::data(), mText, resip::ParseBuffer::position(), and resip::ParseBuffer::skipToEnd().

{
   const char* anchor = pb.position();
   pb.skipToEnd();
   pb.data(mText, anchor);
}

Here is the call graph for this function:

void Rlmi::set ( const Data text)

Definition at line 92 of file Rlmi.cxx.

References mText.

{
   mText = text;
}

Member Data Documentation

Definition at line 42 of file Rlmi.hxx.

Referenced by encodeParsed(), get(), operator=(), parse(), Rlmi(), and set().


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