#include <pstring.h>
Inheritance diagram for PStringToString:
Public Member Functions | |
Overrides from class PObject | |
virtual void | ReadFrom (istream &strm) |
Classes | |
struct | Initialiser |
Structure for static array initialiser for class. More... |
In addition some addition functions are added that take a const PString# reference instead of a pointer as most standard collection functions do. This is more convenient for when string expressions are used as parameters to function in the collection.
See the PAbstractDictionary# and PStringDictionary# classes and PDECLARE_DICTIONARY# and PDECLARE_STRING_DICTIONARY# macros for more information.
PStringToString::PStringToString | ( | PINDEX | count, | |
const Initialiser * | init, | |||
BOOL | caselessKeys = FALSE , |
|||
BOOL | caselessValues = FALSE | |||
) |
Initialise the string dictionary of strings from the static array.
count | Count of strings in initialiser array |
init | Array of Initialiser structures |
caselessKeys | New keys are to be PCaselessStrings |
caselessValues | New values are to be PCaselessStrings |
PStringToString::PStringToString | ( | PINDEX | count, | |
const Initialiser * | init, | |||
BOOL | caselessKeys = FALSE , |
|||
BOOL | caselessValues = FALSE | |||
) |
Initialise the string dictionary of strings from the static array.
count | Count of strings in initialiser array |
init | Array of Initialiser structures |
caselessKeys | New keys are to be PCaselessStrings |
caselessValues | New values are to be PCaselessStrings |
virtual void PStringToString::ReadFrom | ( | istream & | strm | ) | [virtual] |
Input the contents of the object from the stream. This is primarily used by the standard operator>># function.
The default behaviour reads '
' separated strings until !strm.good().
Reimplemented in PMIMEInfo.