bodyPart Class Reference

A MIME part. More...

Inheritance diagram for bodyPart:
Inheritance graph
[legend]
Collaboration diagram for bodyPart:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 bodyPart ()
const ref< const headergetHeader () const
ref< headergetHeader ()
const ref< const bodygetBody () const
ref< bodygetBody ()
ref< bodyPartgetParentPart ()
ref< const bodyPartgetParentPart () const
ref< componentclone () const
void copyFrom (const component &other)
bodyPartoperator= (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

Detailed Description

A MIME part.


Constructor & Destructor Documentation

bodyPart (  ) 

Member Function Documentation

ref< component > clone (  )  const [virtual]

Clone this component.

Returns:
a copy of 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.

Exceptions:
std::bad_cast_exception if the components are not of the same (dynamic) type
Parameters:
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.

Parameters:
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.

Returns:
body section
const ref< const body > getBody (  )  const

Return the body section of this part.

Returns:
body section
const std::vector< ref< const component > > getChildComponents (  )  const [virtual]

Return the list of children of this component (const version).

Returns:
list of child components

Implements component.

ref< header > getHeader (  ) 

Return the header section of this part.

Returns:
header section
const ref< const header > getHeader (  )  const

Return the header section of this part.

Returns:
header section
ref< const bodyPart > getParentPart (  )  const

Return the parent part of this part (const version).

Returns:
parent part or NULL if not known
ref< bodyPart > getParentPart (  ) 

Return the parent part of this part.

Returns:
parent part or NULL if not known
bodyPart & operator= ( const bodyPart other  ) 

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.

Parameters:
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().


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

Generated by  doxygen 1.6.2