Module: Internet Protocols Module Package: MIME
RWMimeContentDescriptionHeaderRWMimeHeaderRWHandleBase
body() checkLabel() |
getDescription() Label |
operator=() RWMimeContentDescriptionHeader() |
setDescription() ~RWMimeContentDescriptionHeader() |
#include <rw/mime/RWMimeContentDescriptionHeader.h>
RWMimeContentDescriptionHeader represents the Content-Description header of a MIME part. The Content-Description provides a short text description of the contents of the message part. For example, a MIME message containing a sales report might contain the Content-Description header
Content-Description: Sales report for last quarter.
An instance of this class is a handle to a private, reference-counted body.
RWMimeContentDescriptionHeader conforms to the Content-Description header requirements specified in RFC 2045, Section 8.
static const RWCString Label;
Static constant string containing "Content-Description", the label for a Content-Description header. The RWCString should contain 7-bit US-ASCII data.
RWMimeContentDescriptionHeader(void);
Default constructor. Constructs a header with an empty value.
RWMimeContentDescriptionHeader(const RWCString& description);
Constructs a header with the value description. Does not validate description. The description provided must be in US-ASCII format or be encoded according to the guidelines in RFC 2047 for the header to meet the requirements of the Internet Message Format specification. The RWCString should contain 7-bit US-ASCII data.
RWMimeContentDescriptionHeader(const RWMimeContentDescription
& second);
Copy constructor. Constructs a new handle to the body second refers to.
RWMimeContentDescriptionHeader(const RWMimeHeader & second);
Conversion constructor. Constructs a new handle to the body second refers to. Throws RWMimeError if second does not have the label "Content-Description".
virtual ~RWMimeContentDescriptionHeader(void);
Destructor.
RWMimeContentDescriptionHeader& operator=(const RWMimeContentDescriptionHeader& second);
Assignment operator. Makes self a handle identical to second.
RWCString getDescription(void) const;
Returns the content description value contained within this header. The RWCString should contain 7-bit US-ASCII data.
void setDescription(const RWCString& description);
Sets the content description value contained within this header. The RWCString should contain 7-bit US-ASCII data.
RWMimeUnstructuredHeaderImp& body(void) const;
Returns a reference to the underlying implementation.
virtual bool checkLabel(const RWCString& label) const;
Returns true if label matches "Content-Description", false otherwise. The comparison is case-insensitive. The RWCString should contain 7-bit US-ASCII data.
© 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.