part Class Reference

A MIME part in a message. More...

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

List of all members.

Public Member Functions

virtual ref< const structuregetStructure () const =0
virtual ref< structuregetStructure ()=0
virtual ref< const headergetHeader () const =0
virtual const mediaTypegetType () const =0
virtual int getSize () const =0
virtual int getNumber () const =0
ref< const partgetPartAt (const int pos) const
ref< partgetPartAt (const int pos)
int getPartCount () const

Protected Member Functions

 part ()
 part (const part &)
virtual ~part ()

Detailed Description

A MIME part in a message.


Constructor & Destructor Documentation

part (  )  [protected]
part ( const part  )  [protected]
virtual ~part (  )  [protected, virtual]

Member Function Documentation

virtual ref<const header> getHeader (  )  const [pure virtual]

Return the header section for this part (you must fetch header before using this function: see message::fetchPartHeader).

Returns:
header section
virtual int getNumber (  )  const [pure virtual]

Return the part sequence number (index).

The first part is at index zero.

Returns:
part number
ref< part > getPartAt ( const int  pos  ) 

Return the sub-part at the specified position (zero is the first part).

Parameters:
pos index of the sub-part
Returns:
sub-part at position 'pos'

References part::getStructure().

ref< const part > getPartAt ( const int  pos  )  const

Return the sub-part at the specified position (zero is the first part).

Parameters:
pos index of the sub-part
Returns:
sub-part at position 'pos'

References part::getStructure().

int getPartCount (  )  const

Return the number of sub-parts in this part.

Returns:
number of sub-parts

References part::getStructure().

virtual int getSize (  )  const [pure virtual]

Return the size of this part.

Returns:
size of the part (in bytes)
virtual ref<structure> getStructure (  )  [pure virtual]

Return the structure of this part.

Returns:
structure of the part
virtual ref<const structure> getStructure (  )  const [pure virtual]

Return the structure of this part.

Returns:
structure of the part

Referenced by part::getPartAt(), and part::getPartCount().

virtual const mediaType& getType (  )  const [pure virtual]

Return the media-type of the content in this part.

Returns:
content media type

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

Generated by  doxygen 1.6.2