This class contains the Multipurpose Internet Mail Extensions parameters and variables.
More...
Public Member Functions |
| PMIMEInfo () |
| PMIMEInfo (istream &strm) |
| Construct a MIME information dictionary from the specified source.
|
| PMIMEInfo (PInternetProtocol &socket) |
| PMIMEInfo (const PStringToString &dict) |
| PMIMEInfo (const PString &str) |
virtual void | PrintOn (ostream &strm) const |
| Output the contents of the MIME dictionary to the stream.
|
virtual void | ReadFrom (istream &strm) |
| Input the contents of the MIME dictionary from the stream.
|
PBoolean | Read (PInternetProtocol &socket) |
| Read MIME information from the socket.
|
PBoolean | Write (PInternetProtocol &socket) const |
| Write MIME information to the socket.
|
PString | AsString () const |
| Return a string presentation of the MIME.
|
bool | AddMIME (const PString &line) |
| Add a MIME field given a "name: value" format string.
|
bool | AddMIME (const PString &fieldName, const PString &fieldValue) |
bool | AddMIME (const PMIMEInfo &mime) |
virtual bool | InternalAddMIME (const PString &fieldName, const PString &fieldValue) |
bool | GetComplex (const char *key, PStringToString &info) const |
| Get a complex MIME field.
|
bool | GetComplex (const PString &key, PStringToString &info) const |
bool | GetComplex (const PCaselessString &key, PStringToString &info) const |
bool | GetComplex (const PCaselessString &(*key)(), PStringToString &info) const |
bool | DecodeMultiPartList (PMultiPartList &parts, const PString &body, const PCaselessString &key) const |
| Decode parts from a multipart body using the field value.
|
bool | DecodeMultiPartList (PMultiPartList &parts, const PString &body, const PCaselessString &(*key)()=ContentTypeTag) const |
| Decode parts from a multipart body using the field value.
|
virtual ostream & | PrintContents (ostream &strm) const |
| Output the contents without the trailing CRLF.
|
| PStringOptions () |
| PStringOptions (const PStringToString &other) |
PStringOptions & | operator= (const PStringToString &other) |
bool | Contains (const char *key) const |
| Determine if the specified key is present.
|
bool | Contains (const PString &key) const |
bool | Contains (const PCaselessString &key) const |
bool | Contains (const PCaselessString &(*key)()) const |
PString * | GetAt (const char *key) const |
PString * | GetAt (const PString &key) const |
PString * | GetAt (const PCaselessString &key) const |
PString * | GetAt (const PCaselessString &(*key)()) const |
PBoolean | SetAt (const char *key, const PString &data) |
PBoolean | SetAt (const PString &key, const PString &data) |
PBoolean | SetAt (const PCaselessString &key, const PString &data) |
PBoolean | SetAt (const PCaselessString &(*key)(), const PString &data) |
PString * | RemoveAt (const char *key) |
PString * | RemoveAt (const PString &key) |
PString * | RemoveAt (const PCaselessString &key) |
PString * | RemoveAt (const PCaselessString &(*key)()) |
PString | GetString (const char *key, const char *dflt=NULL) const |
| Get an option value.
|
PString | GetString (const PString &key, const char *dflt=NULL) const |
PString | GetString (const PCaselessString &key, const char *dflt=NULL) const |
PString | GetString (const PCaselessString &(*key)(), const char *dflt=NULL) const |
bool | SetString (const char *key, const PString &value) |
| Set the option value.
|
bool | SetString (const PString &key, const PString &value) |
bool | SetString (const PCaselessString &key, const PString &value) |
bool | SetString (const PCaselessString &(*key)(), const PString &value) |
bool | GetBoolean (const char *key, bool dflt=false) const |
| Get the option value as a boolean.
|
bool | GetBoolean (const PString &key, bool dflt=false) const |
bool | GetBoolean (const PCaselessString &key, bool dflt=false) const |
bool | GetBoolean (const PCaselessString &(*key)(), bool dflt=false) const |
void | SetBoolean (const char *key, bool value) |
| Set the option value as a boolean.
|
void | SetBoolean (const PString &key, bool value) |
void | SetBoolean (const PCaselessString &key, bool value) |
void | SetBoolean (const PCaselessString &(*key)(), bool value) |
long | GetInteger (const char *key, long dflt=0) const |
| Get the option value as an integer.
|
long | GetInteger (const PString &key, long dflt=0) const |
long | GetInteger (const PCaselessString &key, long dflt=0) const |
long | GetInteger (const PCaselessString &(*key)(), long dflt=0) const |
void | SetInteger (const char *key, long value) |
| Set an integer value for the particular MIME info field.
|
void | SetInteger (const PString &key, long value) |
void | SetInteger (const PCaselessString &key, long value) |
void | SetInteger (const PCaselessString &(*key)(), long value) |
double | GetReal (const char *key, double dflt=0) const |
| Get the option value as a floating point real.
|
double | GetReal (const PString &key, double dflt=0) const |
double | GetReal (const PCaselessString &key, double dflt=0) const |
double | GetReal (const PCaselessString &(*key)(), double dflt=0) const |
void | SetReal (const char *key, double value, int decimals) |
| Set a floating point real value for the particular MIME info field.
|
void | SetReal (const PString &key, double value, int decimals) |
void | SetReal (const PCaselessString &key, double value, int decimals) |
void | SetReal (const PCaselessString &(*key)(), double value, int decimals) |
__inline bool | Has (const char *key) const |
| Determine of the option exists.
|
__inline bool | Has (const PString &key) const |
__inline bool | Has (const PCaselessString &key) const |
__inline bool | Has (const PCaselessString &(*key)()) const |
__inline PString | Get (const char *key, const char *dflt=NULL) const |
| Get the option value.
|
__inline PString | Get (const PString &key, const char *dflt=NULL) const |
__inline PString | Get (const PCaselessString &key, const char *dflt=NULL) const |
__inline PString | Get (const PCaselessString &(*key)(), const char *dflt=NULL) const |
__inline PString | Get (const char *key, const PString &dflt) const |
__inline PString | Get (const PString &key, const PString &dflt) const |
__inline PString | Get (const PCaselessString &key, const PString &dflt) const |
__inline PString | Get (const PCaselessString &(*key)(), const PString &dflt) const |
__inline bool | Set (const char *key, const PString &value) |
| Set the option value.
|
__inline bool | Set (const PString &key, const PString &value) |
__inline bool | Set (const PCaselessString &key, const PString &value) |
__inline bool | Set (const PCaselessString &(*key)(), const PString &value) |
__inline void | Remove (const char *key) |
| Remove option value.
|
__inline void | Remove (const PString &key) |
__inline void | Remove (const PCaselessString &key) |
__inline void | Remove (const PCaselessString &(*key)()) |
char ** | ToCharArray (bool withEqualSign, PCharArray *storage=NULL) const |
| Create an array of C strings.
|
| PStringToString (PINDEX count, const Initialiser *init, PBoolean caselessKeys=false, PBoolean caselessValues=false) |
| Initialise the string dictionary of strings from the static array.
|
| PStringDictionary () |
| Create a new, empty, dictionary.
|
virtual PObject * | Clone () const |
| Make a complete duplicate of the dictionary.
|
const PString & | operator[] (const K &key) const |
| Get the string contained in the dictionary at the key position.
|
PString | operator() (const K &key, const char *dflt=NULL) const |
| Get the string contained in the dictionary at the key position.
|
PBoolean | Contains (const K &key) const |
| Determine if the value of the object is contained in the hash table.
|
virtual PString * | RemoveAt (const K &key) |
| Remove an object at the specified key.
|
virtual PString * | GetAt (const K &key) const |
| Get the object at the specified key position.
|
virtual PBoolean | SetDataAt (PINDEX index, const PString &str) |
| Set the data at the specified ordinal index position in the dictionary.
|
virtual PBoolean | SetAt (const K &key, const PString &str) |
| Add a new object to the collection.
|
const K & | GetKeyAt (PINDEX index) const |
| Get the key in the dictionary at the ordinal index position.
|
PString & | GetDataAt (PINDEX index) const |
| Get the data in the dictionary at the ordinal index position.
|
PINLINE | PAbstractDictionary () |
| Create a new, empty, dictionary.
|
virtual PINDEX | Insert (const PObject &key, PObject *obj) |
| Insert a new object into the dictionary.
|
virtual PINDEX | InsertAt (PINDEX index, PObject *obj) |
| Insert a new object at the specified index.
|
virtual PObject * | RemoveAt (PINDEX index) |
| Remove an object at the specified index.
|
virtual PBoolean | SetAt (PINDEX index, PObject *val) |
| Set the object at the specified index to the new value.
|
virtual PObject * | GetAt (PINDEX index) const |
| Get the object at the specified index 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.
|
virtual PBoolean | SetDataAt (PINDEX index, PObject *obj) |
| Set the data at the specified ordinal index position in the dictionary.
|
virtual PBoolean | AbstractSetAt (const PObject &key, PObject *obj) |
| Add a new object to the collection.
|
virtual PObject & | GetRefAt (const PObject &key) const |
| Get the object at the specified key position.
|
virtual PObject * | AbstractGetAt (const PObject &key) const |
| Get the object at the specified key position.
|
virtual void | AbstractGetKeys (PArrayObjects &keys) const |
| Get an array containing all the keys for the dictionary.
|
| PHashTable () |
| Create a new, empty, hash table.
|
virtual Comparison | Compare (const PObject &obj) const |
| Get the relative rank of the two hash tables.
|
virtual PBoolean | SetSize (PINDEX newSize) |
| This function is meaningless for hash table.
|
PINLINE PBoolean | AbstractContains (const PObject &key) const |
| Determine if the value of the object is contained in the hash table.
|
virtual const PObject & | AbstractGetKeyAt (PINDEX index) const |
| Get the key in the hash table at the ordinal index position.
|
virtual PObject & | AbstractGetDataAt (PINDEX index) const |
| Get the data in the hash table at the ordinal index position.
|
| PCollection (PINDEX initialSize=0) |
| Create a new collection.
|
virtual PINDEX | Append (PObject *obj)=0 |
| Append a new object to the collection.
|
virtual PBoolean | Remove (const PObject *obj)=0 |
| Remove the object from the collection.
|
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.
|