|
reSIProcate/stack
9694
|
SIP body type to represent an invalid content type (MIME content-type Invalid/Invalid). More...
#include <InvalidContents.hxx>


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 () |
| InvalidContents & | operator= (const InvalidContents &rhs) |
| virtual Contents * | clone () const |
| duplicate an InvalidContents object | |
| const Mime & | getOriginalType () const |
| Gets the MIME content-type used in the constructor of InvalidContents. | |
| virtual EncodeStream & | encodeParsed (EncodeStream &str) const |
| virtual void | parse (ParseBuffer &pb) |
| const Data & | text () const |
| Gets a const reference to the parsed text from invalid contents. | |
| Data & | text () |
| Gets the parsed text from invalid contents. | |
Static Public Member Functions | |
| static const Mime & | getStaticType () |
Private Attributes | |
| Mime | mOriginalType |
| Data | mText |
SIP body type to represent an invalid content type (MIME content-type Invalid/Invalid).
Definition at line 13 of file InvalidContents.hxx.
| resip::InvalidContents::InvalidContents | ( | ) |
Referenced by clone().
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.
: Contents(rhs), mOriginalType(rhs.mOriginalType), mText(rhs.mText) { }
| InvalidContents::~InvalidContents | ( | ) | [virtual] |
Definition at line 42 of file InvalidContents.cxx.
{
}
| Contents * InvalidContents::clone | ( | ) | const [virtual] |
duplicate an InvalidContents object
Implements resip::Contents.
Definition at line 59 of file InvalidContents.cxx.
References InvalidContents().
{
return new InvalidContents(*this);
}

| 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.
Definition at line 87 of file InvalidContents.cxx.
References mOriginalType.
{
return mOriginalType;
}
| const Mime & InvalidContents::getStaticType | ( | ) | [static] |
| 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 Data& resip::InvalidContents::text | ( | ) | const [inline] |
Gets a const reference to the parsed text from invalid contents.
Definition at line 42 of file InvalidContents.hxx.
References resip::LazyParser::checkParsed(), and mText.
{checkParsed(); return mText;}

| Data& resip::InvalidContents::text | ( | ) | [inline] |
Gets the parsed text from invalid contents.
Definition at line 46 of file InvalidContents.hxx.
References resip::LazyParser::checkParsed(), and mText.
{checkParsed(); return mText;}

Mime resip::InvalidContents::mOriginalType [private] |
Definition at line 49 of file InvalidContents.hxx.
Referenced by getOriginalType(), and operator=().
Data resip::InvalidContents::mText [private] |
Definition at line 50 of file InvalidContents.hxx.
Referenced by encodeParsed(), operator=(), parse(), and text().
1.7.5.1