Inheritance diagram for BodyPart:

In Hunny MIME++, BodyPart is a subclass of the abstract class Entity; therefore, it contains both a Headers object and a Body object. To access the contained Headers object, use the inherited member function Entity::headers(). To access the contained Body object, use the inherited member function Entity::body().
In the document tree representation of a message, a BodyPart is an intermediate node. Its parent node is the Body object that contains it. Its child nodes are the Headers and Body objects it contains.
Public Member Functions | |
| BodyPart () | |
| Default constructor. | |
| BodyPart (const BodyPart &other) | |
| Copy constructor. | |
| BodyPart (const String &str, Node *parent=0) | |
| Constructor that takes an initial string and parent node. | |
| virtual | ~BodyPart () |
| Destructor. | |
| const BodyPart & | operator= (const BodyPart &other) |
| Assignment operator. | |
| virtual Node * | clone () const |
| Creates a copy of this object. | |
Static Public Member Functions | |
| BodyPart * | newBodyPart () |
| Creates a new instance. | |
Static Public Attributes | |
| BodyPart *(* | sNewBodyPart )() |
| Provides a class factory hook. | |
|
|
This constructor sets the BodyPart object's string representation to the empty string and sets its parent node to NULL. |
|
|
This constructor performs a deep copy of its argument. The parent node of the new BodyPart object is set to NULL.
|
|
||||||||||||
|
This constructor sets the BodyPart object's string representation to str and sets its parent node to parent. Normally, you call the virtual function parse() immediately after this constructor to create the broken-down representation.
|
|
|
Destructor |
|
|
This virtual function, inherited from Node, creates a new BodyPart object that has the same value as this BodyPart object. The parent node of the new BodyPart object is set to NULL.
Implements Node. |
|
|
Creates a new BodyPart object. If the static data member sNewBodyPart is NULL, this member function creates a new BodyPart object and returns it. Otherwise, newBodyPart() calls the user-supplied function that sNewBodyPart points to and returns the object created by that function.
|
|
|
Performs a deep copy of its argument. The parent node of this BodyPart object is not changed.
|
|
|
If sNewBodyPart is not NULL, it must point to a user-supplied function that returns a new instance of a subclass of BodyPart.
|
Copyright © 2001-2007 Hunny Software, Inc. All rights reserved.