Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
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 MIMEMultipart:
Inheritance graph
[legend]
Collaboration diagram for MIMEMultipart:
Collaboration graph
[legend]

Public Member Functions

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

Protected Member Functions

virtual ~MIMEMultipart ()
 

Protected Attributes

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

Friends

class __EXPORT 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.nosp@m.@ost.nosp@m.el.co.nosp@m.m container for streamable multi-part MIME documents.

Definition at line 69 of file mime.h.

Constructor & Destructor Documentation

virtual MIMEMultipart::~MIMEMultipart ( )
protectedvirtual
MIMEMultipart::MIMEMultipart ( const char *  document)

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

Parameters
document(content) type.

Member Function Documentation

virtual void 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** 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 110 of file mime.h.

virtual void 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.

Friends And Related Function Documentation

friend class __EXPORT MIMEItemPart
friend

Definition at line 72 of file mime.h.

Field Documentation

char MIMEMultipart::boundry[8]
protected

Definition at line 73 of file mime.h.

MIMEItemPart* MIMEMultipart::first
protected

Definition at line 76 of file mime.h.

char* MIMEMultipart::header[16]
protected

Definition at line 75 of file mime.h.

MIMEItemPart * MIMEMultipart::last
protected

Definition at line 76 of file mime.h.

char MIMEMultipart::mtype[80]
protected

Definition at line 74 of file mime.h.


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