|
VMime
|
#include <bodyPart.hpp>


Protected Member Functions | |
| shared_ptr< bodyPart > | createChildPart () |
| void | importChildPart (shared_ptr< bodyPart > part) |
| void | parseImpl (const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | generateImpl (const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
Protected Member Functions inherited from component | |
| void | setParsedBounds (const size_t start, const size_t end) |
| virtual void | parseImpl (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A MIME part.
| bodyPart | ( | ) |
|
virtual |
Clone this component.
Implements component.
References vmime::dynamicCast().
Replace data in this component by data in other component.
Both components must be of the same type.
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
| other | other component to copy data from |
Implements component.
References vmime::dynamicCast().
Referenced by bodyPart::operator=().
|
protected |
Creates and returns a new part and set this part as its parent.
The newly created sub-part should then be added to this part by calling getBody()->appendPart(). Called by the body class.
References vmime::dynamicCast().
Referenced by body::copyFrom(), and body::parseImpl().
|
protectedvirtual |
Implements component.
References vmime::CRLF, and vmime::dynamicCast().
| shared_ptr< body > getBody | ( | ) |
Return the body section of this part.
| const shared_ptr< const body > getBody | ( | ) | const |
Return the body section of this part.
Referenced by messageBuilder::construct().
|
virtual |
Return the list of children of this component.
Implements component.
|
virtual |
Get the number of bytes that will be used by this component when it is generated.
This may be a heuristically-derived estimate, but such an estimated size should always be larger than the actual generated size.
| ctx | generation context |
Reimplemented from component.
References vmime::dynamicCast().
| shared_ptr< header > getHeader | ( | ) |
Return the header section of this part.
| const shared_ptr< const header > getHeader | ( | ) | const |
Return the header section of this part.
Referenced by body::generateImpl(), body::getCharset(), body::getContentType(), body::getEncoding(), body::parseImpl(), body::setCharset(), body::setContentType(), body::setContentType(), and body::setEncoding().
| bodyPart * getParentPart | ( | ) |
Return the parent part of this part.
Return the parent part of this part (const version).
|
protected |
Detach the specified part from its current parent part (if any) and attach it to this part by setting this part as its new parent.
The sub-part should then be added to this part by calling getBody()->appendPart(). Called by body class.
| part | child part to attach |
References vmime::dynamicCast().
References bodyPart::copyFrom().
|
protectedvirtual |
Reimplemented from component.
References vmime::dynamicCast(), vmime::end(), and component::setParsedBounds().
| void setBody | ( | shared_ptr< body > | body | ) |
Replaces the body section of this part.
| body | new body section |
References vmime::dynamicCast().
| void setHeader | ( | shared_ptr< header > | header | ) |
Replaces the header section of this part.
| header | the new header of this part |
References vmime::dynamicCast().