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

SIP body type to represent an invalid content type (MIME content-type Invalid/Invalid). More...

#include <InvalidContents.hxx>

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

List of all members.

Public Member Functions

 InvalidContents ()
 InvalidContents (const Data &text, const Mime &originalType)
 InvalidContents (const HeaderFieldValue &hfv, const Mime &contentType, const Mime &originalType)
 InvalidContents (const Data &data, const Mime &contentType, const Mime &originalType)
 InvalidContents (const InvalidContents &rhs)
virtual ~InvalidContents ()
InvalidContentsoperator= (const InvalidContents &rhs)
virtual Contentsclone () const
 duplicate an InvalidContents object
const MimegetOriginalType () const
 Gets the MIME content-type used in the constructor of InvalidContents.
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual void parse (ParseBuffer &pb)
const Datatext () const
 Gets a const reference to the parsed text from invalid contents.
Datatext ()
 Gets the parsed text from invalid contents.

Static Public Member Functions

static const MimegetStaticType ()

Private Attributes

Mime mOriginalType
Data mText

Detailed Description

SIP body type to represent an invalid content type (MIME content-type Invalid/Invalid).

Definition at line 13 of file InvalidContents.hxx.


Constructor & Destructor Documentation

resip::InvalidContents::InvalidContents ( )

Referenced by clone().

InvalidContents::InvalidContents ( const Data text,
const Mime originalType 
)

Definition at line 15 of file InvalidContents.cxx.

   : Contents(getStaticType()),
     mOriginalType(originalType),
     mText(txt)
{}
InvalidContents::InvalidContents ( const HeaderFieldValue hfv,
const Mime contentType,
const Mime originalType 
)

Definition at line 21 of file InvalidContents.cxx.

   : Contents(hfv, contentsType),
     mOriginalType(originalType),
     mText()
{
}
InvalidContents::InvalidContents ( const Data data,
const Mime contentType,
const Mime originalType 
)

Definition at line 28 of file InvalidContents.cxx.

   : Contents(contentsType),
     mOriginalType(originalType),
     mText(txt)
{
}
InvalidContents::InvalidContents ( const InvalidContents rhs)

Definition at line 35 of file InvalidContents.cxx.

InvalidContents::~InvalidContents ( ) [virtual]

Definition at line 42 of file InvalidContents.cxx.

{
}

Member Function Documentation

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

duplicate an InvalidContents object

Returns:
pointer to a new InvalidContents object

Implements resip::Contents.

Definition at line 59 of file InvalidContents.cxx.

References InvalidContents().

{
   return new InvalidContents(*this);
}

Here is the call graph for this function:

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

Implements resip::LazyParser.

Definition at line 72 of file InvalidContents.cxx.

References mText.

{
   str << mText;
   return str;
}
const Mime & InvalidContents::getOriginalType ( ) const

Gets the MIME content-type used in the constructor of InvalidContents.

Returns:
Mime containing the MIME content-type.

Definition at line 87 of file InvalidContents.cxx.

References mOriginalType.

{
   return mOriginalType;
}
const Mime & InvalidContents::getStaticType ( ) [static]

Definition at line 65 of file InvalidContents.cxx.

References type.

{
   static Mime type("Invalid","Invalid");
   return type;
}
InvalidContents & InvalidContents::operator= ( const InvalidContents rhs)

Definition at line 47 of file InvalidContents.cxx.

References mOriginalType, and mText.

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

Implements resip::LazyParser.

Definition at line 79 of file InvalidContents.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:

const Data& resip::InvalidContents::text ( ) const [inline]

Gets a const reference to the parsed text from invalid contents.

Returns:
Data containing the parsed contents.

Definition at line 42 of file InvalidContents.hxx.

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

{checkParsed(); return mText;}

Here is the call graph for this function:

Data& resip::InvalidContents::text ( ) [inline]

Gets the parsed text from invalid contents.

Returns:
Data containing the parsed contents.

Definition at line 46 of file InvalidContents.hxx.

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

{checkParsed(); return mText;}

Here is the call graph for this function:


Member Data Documentation

Definition at line 49 of file InvalidContents.hxx.

Referenced by getOriginalType(), and operator=().

Definition at line 50 of file InvalidContents.hxx.

Referenced by encodeParsed(), operator=(), parse(), and text().


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