ucommon
Public Member Functions | Protected Attributes | Friends
ost::MIMEMultipart Class Reference

A container class for multi-part MIME document objects which can be streamed to a std::ostream destination. More...

#include <mime.h>

Inheritance diagram for ost::MIMEMultipart:
Inheritance graph
[legend]
Collaboration diagram for ost::MIMEMultipart:
Collaboration graph
[legend]

Public Member Functions

virtual void body (std::ostream *output)
 Stream the "body" of the multi-part document.
char ** getHeaders (void)
 Get a string array of the headers to use.
virtual void head (std::ostream *output)
 Stream the headers of the multi-part document.
 MIMEMultipart (char *document)
 Contruct a multi-part document, and describe it's type.

Protected Attributes

char boundry [8]
MIMEItemPartfirst
char * header [16]
MIMEItemPartlast
char mtype [80]

Friends

class MIMEItemPart

Detailed Description

A container class for multi-part MIME document objects which can be streamed to a std::ostream destination.

Author:
David Sugar <dyfet@ostel.com> container for streamable multi-part MIME documents.

Definition at line 67 of file mime.h.


Constructor & Destructor Documentation

ost::MIMEMultipart::MIMEMultipart ( char *  document)

Contruct a multi-part document, and describe it's type.

Parameters:
document(content) type.

Member Function Documentation

virtual void ost::MIMEMultipart::body ( std::ostream *  output) [virtual]

Stream the "body" of the multi-part document.

This involves streaming the headers and body of each document part.

Parameters:
outputto stream document body into.
char** ost::MIMEMultipart::getHeaders ( void  ) [inline]

Get a string array of the headers to use.

This is used to assist URLStream::post.

Returns:
array of headers.

Definition at line 108 of file mime.h.

virtual void ost::MIMEMultipart::head ( std::ostream *  output) [virtual]

Stream the headers of the multi-part document.

The headers of individual entities are streamed as part of the body.

Parameters:
outputto stream document header into.

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