Protected Member Functions |
| bool | readStartElement (WPXInputStream &input) |
| | reads an startElement
|
| bool | readEndElement (WPXInputStream &input) |
| | reads an endElement
|
| bool | readCharacters (WPXInputStream &input) |
| | reads a set of characters
|
| bool | readProperty (WPXInputStream &input, WPXPropertyList &list) |
| | low level: reads a property and its value, adds it to list
|
| bool | readString (WPXInputStream &input, std::string &s) |
| | low level: reads a string : size and string
|
Internal: the property decoder.
In order to be read by writerperfect, we must code document consisting in tag and propertyList in an intermediar format:
- [string:s]: an int length(s) follow by the length(s) characters of string s
- [startElement:name proplist:prop]: char 'S', [string] name, int #properties, 2#prop*string )
- [endElement:name ]: char 'E', [string] name
- [characters:s ]: char 'T', [string] s
- if len(s)==0, we write nothing
- the string is written as is (ie. we do not escaped any characters).