PTLib
Version 2.10.10
|
#include <mime.h>
Public Member Functions | |
PMultiPartList () | |
bool | Decode (const PString &body, const PStringToString &contentInfo) |
![]() | |
PList () | |
Create a new, empty, list. | |
virtual PObject * | Clone () const |
Make a complete duplicate of the list. | |
PMultiPartInfo & | operator[] (PINDEX index) const |
Retrieve a reference to the object in the list. | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
iterator | rbegin () |
const_iterator | rbegin () const |
iterator | rend () |
const_iterator | rend () const |
PMultiPartInfo & | front () const |
PMultiPartInfo & | back () const |
void | erase (const iterator &it) |
void | erase (const const_iterator &it) |
![]() | |
virtual Comparison | Compare (const PObject &obj) const |
Get the relative rank of the two lists. | |
PINLINE | PAbstractList () |
Create a new, empty, list. | |
virtual PBoolean | SetSize (PINDEX newSize) |
This function is meaningless for lists. | |
virtual PINDEX | Append (PObject *obj) |
Append a new object to the collection. | |
virtual PINDEX | Insert (const PObject &before, PObject *obj) |
Insert a new object immediately before the specified object. | |
virtual PINDEX | InsertAt (PINDEX index, PObject *obj) |
Insert a new object at the specified ordinal index. | |
virtual PBoolean | Remove (const PObject *obj) |
Remove the object from the collection. | |
virtual PObject * | RemoveAt (PINDEX index) |
Remove the object at the specified ordinal index from the collection. | |
virtual PBoolean | SetAt (PINDEX index, PObject *val) |
Set the object at the specified ordinal position to the new value. | |
virtual PBoolean | ReplaceAt (PINDEX index, PObject *val) |
Set the object at the specified ordinal position to the new value. | |
virtual PObject * | GetAt (PINDEX index) const |
Get the object at the specified ordinal position. | |
virtual PINDEX | GetObjectsIndex (const PObject *obj) const |
Search the collection for the specific instance of the object. | |
virtual PINDEX | GetValuesIndex (const PObject &obj) const |
Search the collection for the specified value of the object. | |
![]() | |
PCollection (PINDEX initialSize=0) | |
Create a new collection. | |
virtual void | PrintOn (ostream &strm) const |
Print the collection on the stream. | |
virtual void | RemoveAll () |
Remove all of the elements in the collection. | |
PINLINE void | AllowDeleteObjects (PBoolean yes=true) |
Allow or disallow the deletion of the objects contained in the collection. | |
void | DisallowDeleteObjects () |
Disallow the deletion of the objects contained in the collection. | |
![]() | |
PContainer (PINDEX initialSize=0) | |
Create a new unique container. | |
PContainer (const PContainer &cont) | |
Create a new refernce to container. | |
PContainer & | operator= (const PContainer &cont) |
Assign one container reference to another. | |
virtual | ~PContainer () |
Destroy the container class. | |
virtual PINDEX | GetSize () const |
Get the current size of the container. | |
PBoolean | SetMinSize (PINDEX minSize) |
Set the minimum size of container. | |
virtual PBoolean | IsEmpty () const |
Determine if the container is empty. | |
PBoolean | IsUnique () const |
Determine if container is unique reference. | |
virtual PBoolean | MakeUnique () |
Make this instance to be the one and only reference to the container contents. | |
![]() | |
virtual | ~PObject () |
virtual PINDEX | HashFunction () const |
This function yields a hash value required by the PDictionary class. | |
virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
Determine the byte wise comparison of two objects. | |
bool | operator== (const PObject &obj) const |
Compare the two objects. | |
bool | operator!= (const PObject &obj) const |
Compare the two objects. | |
bool | operator< (const PObject &obj) const |
Compare the two objects. | |
bool | operator> (const PObject &obj) const |
Compare the two objects. | |
bool | operator<= (const PObject &obj) const |
Compare the two objects. | |
bool | operator>= (const PObject &obj) const |
Compare the two objects. | |
virtual const char * | GetClass (unsigned ancestor=0) const |
Get the current dynamic type of the object instance. | |
PBoolean | IsClass (const char *cls) const |
virtual PBoolean | InternalIsDescendant (const char *clsName) const |
Determine if the dynamic type of the current instance is a descendent of the specified class. | |
virtual void | ReadFrom (istream &strm) |
Input the contents of the object from the stream. |
Additional Inherited Members | |
![]() | |
typedef PMultiPartInfo | value_type |
![]() | |
enum | Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 } |
Result of the comparison operation performed by the Compare() function. More... | |
![]() | |
static Comparison | InternalCompareObjectMemoryDirect (const PObject *obj1, const PObject *obj2, PINDEX size) |
Internal function caled from CompareObjectMemoryDirect() | |
static const char * | Class () |
Get the name of the class as a C string. | |
![]() | |
typedef PListElement | Element |
![]() | |
PList (int dummy, const PList *c) | |
![]() | |
PListInfo * | info |
![]() |
|
inline |
bool PMultiPartList::Decode | ( | const PString & | body, |
const PStringToString & | contentInfo | ||
) |
body | Body to extract parts from |
contentInfo | Content-Type info as decoded from PMIMEInfo::GetComplex() |