A MIME part. More...


Public Member Functions | |
| bodyPart () | |
| const ref< const header > | getHeader () const |
| ref< header > | getHeader () |
| const ref< const body > | getBody () const |
| ref< body > | getBody () |
| ref< bodyPart > | getParentPart () |
| ref< const bodyPart > | getParentPart () const |
| ref< component > | clone () const |
| void | copyFrom (const component &other) |
| bodyPart & | operator= (const bodyPart &other) |
| const std::vector< ref< const component > > | getChildComponents () const |
| void | parse (const string &buffer, const string::size_type position, const string::size_type end, string::size_type *newPosition=NULL) |
| void | generate (utility::outputStream &os, const string::size_type maxLineLength=lineLengthLimits::infinite, const string::size_type curLinePos=0, string::size_type *newLinePos=NULL) const |
A MIME part.
| bodyPart | ( | ) |
| ref< component > clone | ( | ) | const [virtual] |
Clone this component.
Implements component.
References vmime::null.
| void copyFrom | ( | const component & | other | ) | [virtual] |
Replace data in this component by data in other component.
Both components must be of the same type.
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
| other | other component to copy data from |
Implements component.
Referenced by bodyPart::operator=().
| void generate | ( | utility::outputStream & | os, | |
| const string::size_type | maxLineLength = lineLengthLimits::infinite, |
|||
| const string::size_type | curLinePos = 0, |
|||
| string::size_type * | newLinePos = NULL | |||
| ) | const [virtual] |
Generate RFC-2822/MIME data for this component.
| os | output stream | |
| maxLineLength | maximum line length for output | |
| curLinePos | length of the current line in the output buffer | |
| newLinePos | will receive the new line position (length of the last line written) |
Implements component.
Reimplemented in message.
References vmime::CRLF.
| ref< body > getBody | ( | ) |
Return the body section of this part.
| const ref< const body > getBody | ( | ) | const |
Return the body section of this part.
| const std::vector< ref< const component > > getChildComponents | ( | ) | const [virtual] |
Return the list of children of this component (const version).
Implements component.
| ref< header > getHeader | ( | ) |
Return the header section of this part.
| const ref< const header > getHeader | ( | ) | const |
Return the header section of this part.
| ref< const bodyPart > getParentPart | ( | ) | const |
Return the parent part of this part (const version).
| ref< bodyPart > getParentPart | ( | ) |
Return the parent part of this part.
References bodyPart::copyFrom().
| void parse | ( | const string & | buffer, | |
| const string::size_type | position, | |||
| const string::size_type | end, | |||
| string::size_type * | newPosition = NULL | |||
| ) | [virtual] |
Parse RFC-822/MIME data for this component.
| buffer | input buffer | |
| position | current position in the input buffer | |
| end | end position in the input buffer | |
| newPosition | will receive the new position in the input buffer |
Implements component.
References component::setParsedBounds().
1.6.2