Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWMimeMultipart

Module:  Internet Protocols Module   Package:  MIME


RWMimeMultipartRWMimePartRWHandleBase

Local Index

Members

Header File

#include <rw/mime/RWMimeMultipart.h>

Description

RWMimeMultipart represents a MIME part with the media type multipart. The MIME multipart media type indicates that the part may contain other MIME parts. An instance of this class contains a vector of RWMimePart objects. The class inherits general functionality from RWMimePart and provides functions for working with the vector of MIME parts.

The MIME specification requires that a multipart part contain a Content-Type header with a multipart media type and a boundary parameter. For example, the simple multipart MIME part:

contains two plain text MIME parts. The value of the boundary parameter delimits each part. Therefore, an RWMimeMultipart object must contain a multipart Content-Type header to be converted to a string.

An instance of this class is a handle to a private, reference-counted body.

Reference

RWMimeMultipart provides an encapsulation of multipart MIME parts as described in RFCs 2045-2049.

Public Constructor

RWMimeMultipart(void);

NOTE -- A default constructed RWMimeMultipart does not contain a Content-Type header.
RWMimeMultipart(const RWMimeMultipartType& type);
RWMimeMultipart(const RWMimeMultipart& second);
RWMimeMultipart(const RWMimePart& second);

Public Destructor

virtual ~RWMimeMultipart(void);

Public Member Operator

RWMimeMultipart&
operator=(const RWMimeMultipart& second);

Public Member Functions

size_t
findPart(const RWMimeHeader& header, size_t start = 0) const;
RWMimePart
getPart(size_t position) const;
size_t
getPartCount(void) const;
RWCString
getPreamble(void) const;
void
insertPart(const RWMimePart& part);

NOTE -- An RWMimeMultipart must not contain itself either directly or indirectly. A part that contains itself cannot be converted to a string.
void
insertPartAt(size_t position, const RWMimePart& part);

NOTE -- An RWMimeMultipart must not contain itself either directly or indirectly. A part that contains itself cannot be converted to a string.
void
removePartAt(size_t position);
void
setPreamble(const RWCString& preamble);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.